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
部屋をNightShiftする
Search
Shingo Tamaki
May 15, 2016
Technology
0
220
部屋をNightShiftする
irMagicianとNode-REDを使って部屋の照明をナイトシフトさせてみました。
Shingo Tamaki
May 15, 2016
Tweet
Share
More Decks by Shingo Tamaki
See All by Shingo Tamaki
沖縄モバイルアプリ開発勉強会#1
tamaki
0
82
iOSアプリ開発を始めよう
tamaki
0
120
詳解xcresult.pdf
tamaki
0
290
メルペイでのリグレッションテスト自動化推進のこれまでとこれから
tamaki
0
680
What do you want to test with UI Test v2
tamaki
2
840
JPQRによって変わる日本のQRコード決済
tamaki
0
240
What's New in Testing
tamaki
1
58
What do you want to test with UI Test
tamaki
5
1.8k
How to control state in UI Test
tamaki
4
2.5k
Other Decks in Technology
See All in Technology
Platform Engineering for Software Developers and Architects
syntasso
1
520
OCI Vault 概要
oracle4engineer
PRO
0
9.7k
強いチームと開発生産性
onk
PRO
34
11k
EventHub Startup CTO of the year 2024 ピッチ資料
eventhub
0
120
いざ、BSC討伐の旅
nikinusu
2
780
Why App Signing Matters for Your Android Apps - Android Bangkok Conference 2024
akexorcist
0
130
TanStack Routerに移行するのかい しないのかい、どっちなんだい! / Are you going to migrate to TanStack Router or not? Which one is it?
kaminashi
0
590
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
3.8k
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
470
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
190
BLADE: An Attempt to Automate Penetration Testing Using Autonomous AI Agents
bbrbbq
0
310
iOS/Androidで同じUI体験をネ イティブで作成する際に気をつ けたい落とし穴
fumiyasac0921
1
110
Featured
See All Featured
Code Review Best Practice
trishagee
64
17k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Unsuck your backbone
ammeep
668
57k
Git: the NoSQL Database
bkeepers
PRO
427
64k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
364
24k
Teambox: Starting and Learning
jrom
133
8.8k
Adopting Sorbet at Scale
ufuk
73
9.1k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
What's new in Ruby 2.0
geeforr
343
31k
Become a Pro
speakerdeck
PRO
25
5k
A Tale of Four Properties
chriscoyier
156
23k
Transcript
෦ΛNightShift͢Δ
ࣗݾհ ۄ ৴ޛ • डୗܥ iOS ΤϯδχΞ • Raspberry Piɺిࢠ࡞ΛझຯͰνϣϩνϣϩͱ
͋ɺ͍͖ͳΓiPhoneͷ ͍͍ͯ͠Ͱ͔͢ʁ
iOS9ͰNight Shiftػೳ͕ग़དྷΔΑ͏ ʹͳΓ·ͨ͠ɻ ͷग़ɾͷೖΓΛײ͠ɺؒʹͳΔͱࣗಈͰϒϧʔϥΠτ Λܰݮͯ͘͠ΕΔ͜ͷػೳɺϒϧʔϥΠτͷਭٴ΅͢Ө ڹͷ؇ɺʹ͔͔Δෛ୲Λܰݮͯ͘͠ΕΔޮՌ͕ظ͞Ε ͍ͯ·͢ɻ
ʔɺӷথʹ͢Δͱت ΕΔͷ͔ʔ
ͦΜͳࣄΛ΅ΜΓߟ͍͑ͯ·ͨ͠ɻ
ͻΐΜͳ͜ͱ͔ΒirMagicianΛΓ· ͨ͠ɻ
irMagicianͱʁ
͏આ໌͍Βͳ͍ΑͶʁ
͔ͤͬ͘खʹೖͬ ͨͷͰࣗͷՈి Ͱૢ࡞ͯ͠ΈΑ ͏͔ͳ
͜Ε͔͠ͳ͔ͬͨ • ࠷ۙҾͬӽͯ͠TVࣺͯ·ͨ͠ • Ҿͬӽ͠ઌͷΤΞίϯૢ࡞͕·͔͞ͷ༗ઢϦϞίϯͰͨ͠
!
! Night Shift !
·ͣirMagicianΛૢ࡞͢ΔͨΊͷϞ δϡʔϧΛ࡞Γ·ͨ͠ɻ ※ ίʔυ·ͩެ։͞Εͯ·ͤΜ
࣍ʹNode-REDӽ͠ʹϞδϡʔϧΛૢ ࡞Ͱ͖ΔΑ͏ʹ͠·ͨ͠ɻ ※ ίʔυ·ͩެ։͞Εͯ·ͤΜ
Node-RED is Կʁ • Node-REDϋʔυΣΞσόΠε/ API͓ΑͼΦϯϥΠϯαʔϏεΛଓ ͢ΔͨΊͷπʔϧͰ͢ɻ(https:// nodered.jp/ ΑΓൈਮ)
͏গ͠ࡉ͔͘ • Φʔϓϯιʔε • Node.js͕ج൫ • Node.jsͷϥΠϒϥϦͳͲ׆༻ Մೳ • ϒϥβ্ͰGUIΛૢ࡞ͯ͠ΞϓϦ
έʔγϣϯΛ࡞Մೳ • IoT͚ʹ࡞ΒΕ͍ͯΔͨΊɺ Raspberry PiBagleBoneBlackͳͲ Ͱ༻Մೳ
͋ͱτϥٕࢀর
Demo
͞ΒʹhomebridgeͱΈ߹Θͤͯ SiriͰૢ࡞͢Δ
ࠓޙͷ՝ • Raspberry PiͰಈ࡞֬ೝ͢Δ(ΦΠ • NodeϞδϡʔϧΛnpmʹެ։ • ΧελϜϊʔυΛnpmʹެ։
Ҏ্