Created
January 14, 2020 11:23
-
-
Save kou029w/258d3c17d1d58510ffa626436674b1b5 to your computer and use it in GitHub Desktop.
tottori-iot.netlify.com 設定例抜粋
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
speechAgent: { | |
enable: true, | |
notifyWhen: () => { | |
const hours = new Date().getHours(); | |
return 7 <= hours && hours < 19; | |
}, | |
notifyScript: ({ temperature, eTVOC }) => { | |
return [ | |
temperature <= 18 ? "暖房を入れましょう" : null, | |
28 <= temperature ? "暖房を切りましょう" : null, | |
600 <= eTVOC ? "換気をしましょう" : null | |
].join("、"); | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
別のサンプル https://git.io/JvL4q