Skip to content

webdino/enocean-console-demo

Repository files navigation

enocean-console-demo

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件のみのデータ

開発用サーバの起動(localhost:8080でアクセス)

npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published