IR-Station icon indicating copy to clipboard operation
IR-Station copied to clipboard

Feature alexa

Open Mizuho32 opened this issue 4 years ago • 5 comments

Alexa対応

なんかrebaseしたらpushできなかったので一旦ブランチ削除したら https://github.com/kerikun11/IR-Station/pull/19 閉じちゃった😅 まだmasterにはマージしないほうがいいかも? (なんかスケジュールまわりにバグが有る?)

主な変更点

  1. Alexa対応(無効化可能)、https://github.com/kerikun11/IR-Station/commit/c667e3e54f9102b51bb491c2b3fed22da913e3a1 ~ https://github.com/kerikun11/IR-Station/commit/220e6df92067d47fe4f33f2fc4aae7c186eecc9d
  2. sinatraプロキシ(html以外をESPから横流しすることでhtmlの変更を素早く確認できる)、https://github.com/kerikun11/IR-Station/commit/fffec71d3527e7c517393fbabe1ee51a8802e8a7 https://github.com/kerikun11/IR-Station/commit/fdce747ffb09f14b4cae20ef4ceef7a42016c9b1 あたり
  3. スケジュールの時刻指定のフォーム変更、https://github.com/kerikun11/IR-Station/commit/9964da3a171c0349ebae33540133aaf6fab02891
  4. リセットボタンの挙動変更(長押しでリセット、500msecでAlexaモード切替(Alexaもポート80番が要るらしい)) https://github.com/kerikun11/IR-Station/pull/20/commits/6d06ac8c347654ba6a2ecd6de51e455cbcfc2331

Mizuho32 avatar Apr 19 '20 13:04 Mizuho32

Alexaデバイス追加の重要な機能忘れてた(今コードにベタ書きしてる) 取り下げるわ

Mizuho32 avatar Apr 19 '20 14:04 Mizuho32

Alexaデバイス追加削除機能のちゃんとした実装。 ただ、問題がある模様

  1. デバイスを複数登録するとWebサーバー・Alexaのスイッチがうまくいかない?。要調査
  2. JSONに登録してあるシグナルが倍になってJSONにsaveされる増殖バグがある(発動条件不明。スケジュール追加だったりAlexaだったりで現れた。)

Mizuho32 avatar Apr 20 '20 11:04 Mizuho32

@Mizuho32 https://github.com/Mizuho32/IR-Station/commit/96812487d6fa4622151263d3a4c3dff0181bfa1c について,ディレクトリ名変えちゃって,SPIFFSアップロードできるの?

kerikun11 avatar Apr 23 '20 14:04 kerikun11

@kerikun11 $ ws.rb deploy すると、webUI/data 以下の .js, .css( .erb はテンプレートが描画されて) data/ (がなければ自動的に作られて)に出力される。 ので大丈夫。

Mizuho32 avatar Apr 24 '20 08:04 Mizuho32

Alexa対応 (https://github.com/kerikun11/IR-Station/pull/20/commits/e6e80834611bb1b59f3652df97c4b89c7293f4d7)

今の時点での主な変更点

  1. Alexa対応(AsyncWebServerだと共存できる) https://github.com/kerikun11/IR-Station/pull/20/commits/e723bacbc254b361cfd96d087875981602bba0f6 https://github.com/kerikun11/IR-Station/pull/20/commits/928f6c232b85291ce7c265597dd9b18beafe7f1e
  2. 1.に関連して、ESP8266WebServerからESPAsyncWebServerに変更。
  3. sinatraプロキシ(html以外をESPから横流しすることでhtmlの変更を素早く確認できる)、https://github.com/kerikun11/IR-Station/commit/fffec71d3527e7c517393fbabe1ee51a8802e8a7 https://github.com/kerikun11/IR-Station/commit/fdce747ffb09f14b4cae20ef4ceef7a42016c9b1 あたり
  4. スケジュールの時刻指定のフォーム変更、https://github.com/kerikun11/IR-Station/commit/9964da3a171c0349ebae33540133aaf6fab02891
  5. リセットボタンの挙動変更(長押しでリセット、500msecでESP.reset()) https://github.com/kerikun11/IR-Station/pull/20/commits/485e925e3ad9d94a5822113748b766cad3a7d40e

Mizuho32 avatar Apr 24 '20 11:04 Mizuho32

html の作成の際に erb を挟むのが嫌だったので close します。ごめんね。

kerikun11 avatar Dec 28 '22 12:12 kerikun11

了解。まぁテンプレートなんて何でもいいが...

Mizuho32 avatar Dec 28 '22 12:12 Mizuho32