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
260
睡眠をエンジニアリングする
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
170
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
540
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
ソフトウェアエンジニアの生成AI活用と、これから
lycorptech_jp
PRO
0
860
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
5
43k
Behind Postgres 18: The People, the Code, & the Invisible Work | Claire Giordano | PGConfEU 2025
clairegiordano
0
110
コンパウンド組織のCRE #cre_meetup
layerx
PRO
1
250
ヘンリー会社紹介資料(エンジニア向け) / company deck for engineer
henryofficial
0
340
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
9k
Observability — Extending Into Incident Response
nari_ex
1
100
AIとともに歩んでいくデザイナーの役割の変化
lycorptech_jp
PRO
0
840
Linux カーネルが支えるコンテナの仕組み / LF Japan Community Days 2025 Osaka
tenforward
1
120
GraphRAG グラフDBを使ったLLM生成(自作漫画DBを用いた具体例を用いて)
seaturt1e
1
120
Introduction to Sansan Meishi Maker Development Engineer
sansan33
PRO
0
310
OSSで50の競合と戦うためにやったこと
yamadashy
3
960
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.7k
Making Projects Easy
brettharned
120
6.4k
The Invisible Side of Design
smashingmag
302
51k
Faster Mobile Websites
deanohume
310
31k
Unsuck your backbone
ammeep
671
58k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Stop Working from a Prison Cell
hatefulcrawdad
272
21k
Balancing Empowerment & Direction
lara
5
700
Side Projects
sachag
455
43k
Rails Girls Zürich Keynote
gr2m
95
14k
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/