RZ/G1ボード等でのデモンストレーション用アプリケーションです
サーバは別のrepositoryにあります -> https://github.com/epli2/enocean-console-demo-server
初回起動時に最初のデータを受け取るまで表示がおかしくなる
npm install
npm run build
コマンドを実行するとdist/以下にindex.htmlとjs, cssをビルドします
cp -f dist/index.html "サーバのリポジトリをクローンしたパス"/enocean-console-demo-server/templates && cp -r -f dist/static "サーバのリポジトリをクローンしたパス"/enocean-console-demo-server/
というふうにファイルをサーバのディレクトリのtemplates/以下にindex.htmlを、static/にjs/とcss/をコピーしてください
http://localhost:8080/?demodata_100.jsonのように?に続けてファイル名を指定
- demodata.json 1000件の実際にセンサで取得したデータ(デフォルト)
- demodata_100.json 100件の実際にセンサで取得したデータ
- demodata_month.json 気象庁のデータを加工した1ヶ月分のデータ, 音量データはランダム値
- demodata_min.json 1件のみのデータ
npm run dev