docker-vue's Introduction
docker-vue's People
docker-vue's Issues
Logデータの取得とrealtimeの取得が共存できない
Logのグラフ単体では実行できるがrealtimeのコンポーネントを挿入するとLogのグラフが表示されなくなる
yarn start error
npm WARN lifecycle The node binary used for scripts is /tmp/yarn--1588554678764-0.7983480303522339/node but npm is using /usr/local/bin/node itself. Use the --scripts-prepend-node-path
option to include the path for the node binary npm was executed with.
[email protected] dev /code
webpack-dev-server --inline --progress --config build/webpack.dev.conf.js
94% asset optimization
ERROR Failed to compile with 1 errors 1:11:20 AM
Module build failed: Error: No ESLint configuration found.
at Config.getLocalConfigHierarchy (/code/node_modules/eslint/lib/config.js:255:39)
at Config.getConfigHierarchy (/code/node_modules/eslint/lib/config.js:179:43)
at Config.getConfigVector (/code/node_modules/eslint/lib/config.js:286:21)
at Config.getConfig (/code/node_modules/eslint/lib/config.js:329:29)
at processText (/code/node_modules/eslint/lib/cli-engine.js:163:33)
at CLIEngine.executeOnText (/code/node_modules/eslint/lib/cli-engine.js:620:17)
at lint (/code/node_modules/eslint-loader/index.js:218:17)
at Object.module.exports (/code/node_modules/eslint-loader/index.js:213:21)
then節でdataの変数へアクセスできない
https://forum.vuejs.org/t/access-vue-data-object-from-inside-catch-promise/17293
アロー関数を用いてthisを固定することでアクセスできる
コンポーネントに温度やデバイス情報を持たせたい
現状のReactive.vueを用いると
親のコンポーネントから温度、デバイス情報の引数を渡すことでデータベースのログデータを表示することができる。
しかし、複数のログデータを表示しようとしたときにはコンポーネントごとの変数を親コンポーネントが保持する必要があるので問題となる。
methodsの処理の中でdataを参照できないエラー
GETとPOSTのAPI応答を変えたい
GET時は時間と値のみ
POST時はdeviceなどの情報を送りたい
参考になりそうなとこ
http://sakataharumi.hatenablog.jp/entry/2018/10/20/010806
https://stackoverflow.com/questions/34989915/write-only-read-only-fields-in-django-rest-framework
Cannot read property 'refresh'
chartjsでx軸にtimeを利用するとrefleshのプロパティが要求される。
realtimeのプラグインのエラーなのでrealtimeを使用しないでx軸にtimeを利用する場合にはoptionにてrealtimeのプラグインを無効にする
API認証
管理の仕方を検討する
djangoのmysqlサポート要件
Version support¶
Django supports MySQL 5.6 and higher.
Django’s inspectdb feature uses the information_schema database, which contains detailed data on all database schemas.
Django expects the database to support Unicode (UTF-8 encoding) and delegates to it the task of enforcing transactions and referential integrity. It is important to be aware of the fact that the two latter ones aren’t actually enforced by MySQL when using the MyISAM storage engine, see the next section.
https://docs.djangoproject.com/en/3.0/ref/databases/#mysql-notes
データベースのポスト処理で一度にデータを送りたい
振動センサーを取り付けるにあたりサンプリングレートが高いので1データづつ送ると処理が非常に重くなる問題がある。
そのため、バッチ処理でPOST要求をしたいが、まとめてデータをポストする方法が不明で現時点では1データづつしか処理できない。
createdの後mounted
vueの動作としてcreatedを実行後にmountedが実行されるが
createdにてapiアクセスなどによる非同期処理により時間がかかると処理が終了する前にmountedが実行される。
そのためapi通信処理後にvueのインスタンス変数が更新されるためmounted時にはインスタンス変数はnullになってしまう。
初回のdocker-compose up時にmanage.pyの実行がエラーになる
グラフの更新
通常はchartjsのjson データを書き換えただけでは表示が更新されないそのため
chartjsのmixinを利用して変更をキャッチする
カレンダによる日付の追加を実装する
mountedの関数内部でcreatedで実行したAPIのデータが参照できない
mysqlのデータ数が増えたことによってクエリ処理が重くなった。
そのため、おそらくマウント時にデータ取得が終了していないのでデータを参照できなかった。
API処理をmounted関数内部に記述することで対応した。
vueで環境変数が読み込まれない
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.