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
210
睡眠をエンジニアリングする
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
140
GKEでは StackDriver Loggingに どうやってログを送っているか
ytakky2014
3
5.3k
Auralization of Tech News +Change in technology interest for my 4 years.
ytakky2014
0
86
Webメディアでのdataflow活用
ytakky2014
1
500
PHP7+Laravel5.3 on Google App Engine
ytakky2014
0
1.2k
DevOps In All About
ytakky2014
0
3.5k
Other Decks in Technology
See All in Technology
Accessibility Inspectorを活用した アプリのアクセシビリティ向上方法
hinakko
0
180
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
6
54k
re:Invent2024 KeynoteのAmazon Q Developer考察
yusukeshimizu
1
150
駆け出しリーダーとしての第一歩〜開発チームとの新しい関わり方〜 / Beginning Journey as Team Leader
kaonavi
0
120
今年一年で頑張ること / What I will do my best this year
pauli
1
220
実践! ソフトウェアエンジニアリングの価値の計測 ── Effort、Output、Outcome、Impact
nomuson
0
2.1k
I could be Wrong!! - Learning from Agile Experts
kawaguti
PRO
8
3.4k
信頼されるためにやったこと、 やらなかったこと。/What we did to be trusted, What we did not do.
bitkey
PRO
0
2.2k
Goで実践するBFP
hiroyaterui
1
120
Alignment and Autonomy in Cybozu - 300人の開発組織でアラインメントと自律性を両立させるアジャイルな組織運営 / RSGT2025
ama_ch
1
2.4k
JAWS-UG20250116_iOSアプリエンジニアがAWSreInventに行ってきた(真面目編)
totokit4
0
140
デジタルアイデンティティ人材育成推進ワーキンググループ 翻訳サブワーキンググループ 活動報告 / 20250114-OIDF-J-EduWG-TranslationSWG
oidfj
0
530
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
182
22k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Building Adaptive Systems
keathley
38
2.4k
The Invisible Side of Design
smashingmag
299
50k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.8k
Producing Creativity
orderedlist
PRO
343
39k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
Git: the NoSQL Database
bkeepers
PRO
427
64k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
173
51k
The World Runs on Bad Software
bkeepers
PRO
66
11k
Rails Girls Zürich Keynote
gr2m
94
13k
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/