Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pi Zero IoT Workshop @ High School
Search
Kohei Watanabe
November 19, 2019
Education
0
88
Pi Zero IoT Workshop @ High School
Kohei Watanabe
November 19, 2019
Tweet
Share
Other Decks in Education
See All in Education
Library Prefects 2024-2025
cbtlibrary
0
110
1030
cbtlibrary
0
300
Canva
matleenalaakso
0
430
The Blockchain Game
jscottmo
0
3.7k
オープンソース防災教育ARアプリの開発と地域防災での活用
nro2daisuke
0
170
JavaScript - Lecture 6 - Web Technologies (1019888BNR)
signer
PRO
0
2.5k
"数学" をプログラミングしてもらう際に気をつけていること / Key Considerations When Programming "Mathematics"
guvalif
0
550
HCI and Interaction Design - Lecture 2 - Human-Computer Interaction (1023841ANR)
signer
PRO
0
810
Adobe Analytics入門講座【株式会社ニジボックス】
nbkouhou
0
19k
cbt2324
cbtlibrary
0
110
Web 2.0 Patterns and Technologies - Lecture 8 - Web Technologies (1019888BNR)
signer
PRO
0
2.4k
Zoom-ohjeet
matleenalaakso
7
7.2k
Featured
See All Featured
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
How to Think Like a Performance Engineer
csswizardry
20
1.1k
What's new in Ruby 2.0
geeforr
343
31k
Building an army of robots
kneath
302
43k
The Invisible Side of Design
smashingmag
298
50k
Designing the Hi-DPI Web
ddemaree
280
34k
Six Lessons from altMBA
skipperchong
27
3.5k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
Scaling GitHub
holman
458
140k
Building Applications with DynamoDB
mza
90
6.1k
Documentation Writing (for coders)
carmenintech
65
4.4k
Transcript
None
None
• 新しい設定ファイル形式への移行 • wifi.txt → bootWifiConfig.js • config.js • 新しい機能
• 計測値の画面表示 • 計測値の読み上げ
None
RX501NC_242D,50015610 module.exports = [ {ssid:"RX501NC_242D", passphrase:"50015610"} ]
RX501NC_242D,50015610 module.exports = [ {ssid:"RX501NC_242D", passphrase:"50015610"} ] ✓ ✓ ✓
✓
module.exports = { NAME:"Rbt", ADDRESS:"FB29A990F24B", INTERVAL_MILLISEC:60000, RECORDS:["CSV","MACHINIST"], MACHINIST_API_KEY:"9df97…", MACHINIST_MULTIPLE: 1
}; module.exports = [ { intervalMillisec: 60000, omron2jcieBu01Name: "Rbt", omron2jcieBu01Address: "FB29A990F24B", csvFilename: "data.csv", machinistApiKey: "9df97…", machinistAgent: "beef…", machinistBatchQuantity: 1, } ]
module.exports = { NAME:"Rbt", ADDRESS:"FB29A990F24B", INTERVAL_MILLISEC:60000, RECORDS:["CSV","MACHINIST"], MACHINIST_API_KEY:"9df97…", MACHINIST_MULTIPLE: 1
}; module.exports = [ { intervalMillisec: 60000, omron2jcieBu01Name: "Rbt", omron2jcieBu01Address: "FB29A990F24B", csvFilename: "data.csv", machinistApiKey: "9df97…", machinistAgent: "beef…", machinistBatchQuantity: 1, } ] ✓ ✓ ✓ ✓ ✓
None
• 測定値を画面上に表示する • 条件に応じて音声合成で読み上げる
module.exports = [ { intervalMillisec: 60000, omron2jcieBu01Name: "Rbt", omron2jcieBu01Address: "FB29A990F24B",
csvFilename: "data.csv", webAgent: { enable: true, notifyWhen: ({ temperature }) => temperature > 25 } }]
module.exports = [ { intervalMillisec: 60000, omron2jcieBu01Name: "Rbt", omron2jcieBu01Address: "FB29A990F24B",
csvFilename: "data.csv", speechAgent: { enable: true, notifyWhen: ({ temperature }) => temperature > 25 notifyScript: ({ temperature }) => ` ${temperature} ` } }]
notifyWhen: ({ temperature }) => temperature > 25 temperature notifyWhen:
({ temperature: t, relativeHumidity: h }) => ((0.81*t + 0.01*h*(0.99*t - 14.3) + 46.3) >= 85) notifyWhen: ({ relativeHumidity, eTVOC }) => ((relativeHumidity >= 60) && (eTVOC >= 150))
notifyScript: ({ temperature }) => ` ${temperature} ` temperature notifyScript:
({ temperature: t, relativeHumidity: h }) => ` ${(0.81*t + 0.01*h*(0.99*t - 14.3) + 46.3)} ` notifyScript: () => ` `
temperature relativeHumidity barometricPressure ambientLight soundNoise eTVOC eCO2
None