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
220
睡眠をエンジニアリングする
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
89
Webメディアでのdataflow活用
ytakky2014
1
510
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
Snowflake ML モデルを dbt データパイプラインに組み込む
estie
0
100
AIエージェント時代のエンジニアになろう #jawsug #jawsdays2025 / 20250301 Agentic AI Engineering
yoshidashingo
8
3.7k
EMConf JP 2025 懇親会LT / EMConf JP 2025 social gathering
sugamasao
2
190
Iceberg Meetup Japan #1 : Iceberg and Databricks
databricksjapan
0
370
(機械学習システムでも) SLO から始める信頼性構築 - ゆる SRE#9 2025/02/21
daigo0927
0
270
Change Managerを活用して本番環境へのセキュアなGUIアクセスを統制する / Control Secure GUI Access to the Production Environment with Change Manager
yuj1osm
0
100
EDRの検知の仕組みと検知回避について
chayakonanaika
12
4.9k
Apache Iceberg Case Study in LY Corporation
lycorptech_jp
PRO
0
320
AWSではじめる Web APIテスト実践ガイド / A practical guide to testing Web APIs on AWS
yokawasa
8
690
ディスプレイ広告(Yahoo!広告・LINE広告)におけるバックエンド開発
lycorptech_jp
PRO
0
360
Autonomous Database Serverless 技術詳細 / adb-s_technical_detail_jp
oracle4engineer
PRO
17
45k
Goで作って学ぶWebSocket
ryuichi1208
3
2.8k
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
The Cult of Friendly URLs
andyhume
78
6.2k
Designing for Performance
lara
604
68k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
4
370
How to Think Like a Performance Engineer
csswizardry
22
1.4k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
160
15k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Making Projects Easy
brettharned
116
6k
Writing Fast Ruby
sferik
628
61k
What's in a price? How to price your products and services
michaelherold
244
12k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.3k
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/