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
睡眠をエンジニアリングする
Search
Takumi Yoshida
January 13, 2017
Technology
0
230
睡眠をエンジニアリングする
IRkitとMeshやRaspberry Piを組み合わせてエアコンのON/OFFを室温によって調整する
Takumi Yoshida
January 13, 2017
Tweet
Share
More Decks by Takumi Yoshida
See All by Takumi Yoshida
golangで作るslackbot
ytakky2014
0
150
GKEでは StackDriver Loggingに どうやってログを送っているか
ytakky2014
3
5.4k
Auralization of Tech News +Change in technology interest for my 4 years.
ytakky2014
0
110
Webメディアでのdataflow活用
ytakky2014
1
530
PHP7+Laravel5.3 on Google App Engine
ytakky2014
0
1.2k
DevOps In All About
ytakky2014
0
3.6k
Other Decks in Technology
See All in Technology
衛星運用をソフトウェアエンジニアに依頼したときにできあがるもの
sankichi92
1
160
タイミーのデータモデリング事例と今後のチャレンジ
ttccddtoki
6
2.5k
VS CodeとGitHub Copilotで爆速開発!アップデートの波に乗るおさらい会 / Rapid Development with VS Code and GitHub Copilot: Catch the Latest Wave
yamachu
2
190
Glacierだからってコストあきらめてない? / JAWS Meet Glacier Cost
taishin
1
170
Rethinking Incident Response: Context-Aware AI in Practice
rrreeeyyy
1
130
american aa airlines®️ USA Contact Numbers: Complete 2025 Support Guide
aaguide
0
390
AIの全社活用を推進するための安全なレールを敷いた話
shoheimitani
2
560
shake-upを科学する
rsakata
7
800
面倒な作業はAIにおまかせ。Flutter開発をスマートに効率化
ruideengineer
0
400
成長し続けるアプリのためのテストと設計の関係、そして意思決定の記録。
sansantech
PRO
0
130
「クラウドコスト絶対削減」を支える技術—FinOpsを超えた徹底的なクラウドコスト削減の実践論
delta_tech
4
180
Reach American Airlines®️ Instantly: 19 Calling Methods for Fast Support in the USA
flyamerican
1
180
Featured
See All Featured
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
GraphQLとの向き合い方2022年版
quramy
49
14k
4 Signs Your Business is Dying
shpigford
184
22k
Intergalactic Javascript Robots from Outer Space
tanoku
271
27k
Testing 201, or: Great Expectations
jmmastey
43
7.6k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
20k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
Code Review Best Practice
trishagee
69
19k
Git: the NoSQL Database
bkeepers
PRO
430
65k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
5.9k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
Designing for humans not robots
tammielis
253
25k
Transcript
ਭΛΤϯδχΞϦϯά͢Δ y.takky2014
ࣗݾհ !Z@UBLLZ ZUBLLZ ϒϩάIUUQZUBDLZIBUFOBCMPHDPN
None
ਭڥΛΤϯδχΞϦϯά ͢Δͷ໋Ͱ͋Δ
Έ • ΤΞίϯ͚ͭͬͺͳ͠Ͱ৸Δͷ ͕ΒΕΔ • ిؾ͔͔Δ • ΤϯδχΞͳΒΤΞίϯΛ੍ޚ͖ͩ͢
IOTͰͳΜͱ͔͢Δ ԹܭͱΤΞίϯͷϦϞίϯΛ ͳΜͱ͔͢Ε͍͚ͦ͏
ΤΞίϯΛԿͱ͔͢Δ ιϦϡʔγϣϯ
IRKIT
None
IRKITͱ • ֎ઢֶशϦϞίϯσόΠε • API͕ެ։͞Ε͍ͯΔ • ֎෦͔Βୟ͚Δ Internet HTTP API
• εϚϗ͔ΒcurlͰ֎ग़தʹ ΤΞίϯ͕͚ΒΕΔ!!!
IRKITͷઃఆ • ެࣜHP௨Γʹ͍͚ͬͯͰ͖Δ • http://getirkit.com/ • GET /messagesͰΤΞίϯͷ ONͱOFFͷ֎ઢ৴߸ύλʔϯΛऔಘɹ ϝϞ͓ͬͯ͘
ԹΛऔಘ͢Δ ιϦϡʔγϣϯ
MESH
MESHͱ • SONY͕࡞ͬͨBluetoothͰͭͳ͕Δిࢠλά • Android/iOSΞϓϦͰϒϩοΫΛܨ͛Δ͚ͩ Ͱಈ࡞ͤ͞ΒΕΔ • IFTTTͱͷ࿈ܞ • SDKͰࣗ࡞ϒϩοΫͷ࡞
None
࡞ͬͨϨγϐ • ԹͷมԽΛΩʔʹ25Ҏ্ͳΒ1 15ҎԼͳΒ0Λgoogle εϓϨουγʔτʹૹΔΑ͏ ʹ • Google App ScriptͰIRKITʹϦΫΤετΛૹΓ
ON/OFF (25ͰOFF / 15ͰON) • ιʔε https://github.com/ytakky2014/gas-temperature
None
MESH·ͱΊ • ؆୯ʹԹ/࣪ͷଌఆͱԹ/࣪ͷมԽΛ Ωʔʹͯ͠IFTTT࿈ܞ͕Ͱ͖Δ • ؆୯ʹઃఆग़དྷΔͷͰڭҭతʹ͍͍ • ଓ͕݁ߏΕ͍͢ɻ ͍҆Tabletങͬͯৗ࣌ଓ͠ͱ͘ͱྑ͍͔ɻ
Raspberry pi3 + Թηϯα
Raspberrypi3 • ؆қίϯϐϡʔλ • 3Ͱwifi/Bluetooth͕ΦϯϘʔυͰࡌ • GPIO(൚༻ೖग़ྗ)Λඋ͍͑ͯΔ • GPIOʹηϯαͷೖྗΛͰ͖Δ
ࣸਅ
Rasberrypi3+Թηϯα • ؆୯ͳγΣϧεΫϦϓτ+cronͰ ؒଳ͚ͩԹऔಘ+ פ͚Ε(15ҎԼ)ON /ॵ͚Ε(25Ҏ্)OFFΛࣗಈԽ • https://github.com/ytakky2014/raspi- temperature
ࣸਅ
MackerelͰࣨԹࢹ • Mackerel : αʔόࢹπʔϧ • ΧελϜϝτϦοΫεʢҙͷʣΛ ߘՄೳ • ιʔε:
https://github.com/ytakky2014/ mackerel_temp
None
Raspberrypi3·ͱΊ • ϥζύΠ༷ʑͳηϯαՃग़དྷΔͷͰ֦ுੑ ͕Α͍ • ֦ுੑΛߟ͑ΔͱMESH(¥6980)ΑΓ͍҆ • ຊମ ¥5780+microSD+micro USBॆిث
• খܕίϯϐϡʔλͳͷͰ༷ʑͳγεςϜͱ࿈ܞ • ࣗ༻։ൃڥͱͯ͠
·ͱΊ • IOTָ͍͠ • IOTͷ͕ͬͯདྷ͍ͯΔ • ळ༿ݪͷઍੴి2߸ళͱ͔IOTڭҭ͚ͷύʔπ ͷऔѻ͕૿͍͑ͯΔؾ͕͢Δ • MESH͔ͳΓ؆୯ʹ࣮ߦͰ͖Δ
• ͕ΤϯδχΞͰগ͠Γͳ͞Λײ͡Δ͔
APPENDIX • github : https://github.com/ytakky2014 • irkit : http://getirkit.com/ •
Raspberry Pi3 : https://www.raspberrypi.org/ • ୈ18ճʮϥζϕϦʔύΠͰख࡞ΓԹܭʂʯ http://deviceplus.jp/hobby/raspberrypi_entry_018/ • MESH • http://meshprj.com/jp/