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
部屋をナイトシフトする in おうちハック
Search
Shingo Tamaki
June 19, 2016
Technology
4
780
部屋をナイトシフトする in おうちハック
homebridge + Node-RED + irMagicianを使って部屋の照明を調光してナイトシフトを実現してみました。
Shingo Tamaki
June 19, 2016
Tweet
Share
More Decks by Shingo Tamaki
See All by Shingo Tamaki
Use Gemini CLI from Claude Code as part of Sub Agent
tamaki
1
180
Let's make an Immersive Video with APMP
tamaki
0
22
Firebase Studioで始めるモバイルアプリ開発入門
tamaki
0
20
Introduction to Claude Code Action
tamaki
0
700
AIエージェントを使ったiOSアプリ開発を試してみた
tamaki
0
130
沖縄モバイルアプリ開発勉強会#1
tamaki
0
120
iOSアプリ開発を始めよう
tamaki
0
200
詳解xcresult.pdf
tamaki
0
390
メルペイでのリグレッションテスト自動化推進のこれまでとこれから
tamaki
0
770
Other Decks in Technology
See All in Technology
だいたい分かった気になる 『SREの知識地図』 / introduction-to-sre-knowledge-map-book
katsuhisa91
PRO
0
160
「改善」ってこれでいいんだっけ?
ukigmo_hiro
0
380
「最速」で Gemini CLI を使いこなそう! 〜Cloud Shell/Cloud Run の活用〜 / The Fastest Way to Master the Gemini CLI — with Cloud Shell and Cloud Run
aoto
PRO
0
140
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
940
[OCI Skill Mapping] AWSユーザーのためのOCI – IaaS編(Compute/Storage/Networking) (2025年10月8日開催)
oracle4engineer
PRO
1
110
データ戦略部門 紹介資料
sansan33
PRO
1
3.8k
混合雲環境整合異質工作流程工具運行關鍵業務 Job 的經驗分享
yaosiang
0
110
[Codex Meetup Japan #1] Codex-Powered Mobile Apps Development
korodroid
2
1k
Introduction to Sansan Meishi Maker Development Engineer
sansan33
PRO
0
310
ニッポンの人に知ってもらいたいGISスポット
sakaik
0
190
生成AI時代のセキュアコーディングとDevSecOps
yuriemori
0
140
現場データから見える、開発生産性の変化コード生成AI導入・運用のリアル〜 / Changes in Development Productivity and Operational Challenges Following the Introduction of Code Generation AI
nttcom
1
400
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
The Straight Up "How To Draw Better" Workshop
denniskardys
238
140k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
285
14k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
9
920
Code Reviewing Like a Champion
maltzj
526
40k
Rails Girls Zürich Keynote
gr2m
95
14k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.5k
Statistics for Hackers
jakevdp
799
220k
The Power of CSS Pseudo Elements
geoffreycrofte
79
6k
Transcript
෦ΛNightShift͢Δ
ࣗݾհ ۄ ৴ޛ • iOS ΤϯδχΞ • ͖ͳiOSͷϑϨʔϜϫʔΫ HomeKit •
ΨδΣοτ͖ • ిࢠ࡞࢝Ί·ͨ͠ɻRaspberry PiɺArduinoɺEdison
HomeKitͬͯ·͔͢ʁ
ͱݴ͏͔
ͬͯ·͔͢ʁ
HomeKit is Կʁ HomeKitɺAppleͷHomeKit Accessory ProtocolʹରԠͨ͠ ϗʔϜΦʔτϝʔγϣϯػثͱ௨৴͠ɺ͜ΕΛ੍ޚ͢ΔͨΊͷ ϑϨʔϜϫʔΫͰ͢ɻ(HomeKit Developer GuideΑΓൈਮ)
HomeKitରԠΞϓϦ։ൃͷ • ରԠ͕গͳ͍ • ֹ͕ۚߴ͍! • HomeKit Accessory SimulatorͰຯؾͳ͍
homebridge
homebridge is Կʁ • HomeKitͷԾσόΠεΛΤϛϡϨʔγϣϯ • Node.js͕ಈ͘Λར༻ՄೳɺRaspberry PiEdison͕͑ Δ ͓͏ͪϋοΫAdvent
CalendarͰॳΊͯΓ·ͨ͠ɻ SiriͰ෦தͷՈిΛૢ࡞Ͱ͖ΔΑ͏ʹͯ͠ະདྷͷ͓෦Λ࡞ͬ ͯΈͨ http://senyoltw.hatenablog.jp/entry/2015/12/07/052951 Raspberry Pi + HomeKit + IRKit = SiriͰՈిΛԻૢ࡞Ͱ͖ΔΑ
homebridge-cmd ಛఆͷίϚϯυΛ࣮ߦͤ͞Δࣄ͕Ͱ͖ΔϓϥάΠ ϯ ͜ΕʹΑΓSiriܦ༝ͰΠϕϯτΛτϦΨͤͯ͞ޙ ࣗͷ͖ͳίϚϯυΛ࣮ߦͰ͖·͢ https://github.com/senyoltw/ homebridge-cmd
IRKitΛ͏ͱมΘΓө͑͠ͳ͍
!
!
irMagician
irMagicianͱʁ • PCରԠܕͷ֎ઢϦϞίϯγεςϜ • ϗετͱͷଓUSB • ΤΞίϯͷϦϞίϯͷֶश͕Մೳ • CDC-ACMΛ࠾༻͠ɺओཁͳOS(Windows, MacOSX,
Linux, ͦͷଞ)ʹରԠ • ٕज़ࢿྉΛެ։͍ͯ͠ΔʢΦʔϓϯιʔεԽʣ http://www.omiya-giken.com/?page_id=837
ʮ͔͔ͤͬͩ͘ΒԶ ͜ͷখ͍͞ํͷ ֎ઢϦϞίϯΛબͿͥʯ
γʔϦϯάϥΠτ(ௐޫػೳ͖)
!
!
! Night Shift !
iOS9ͰNight Shiftػೳ͕ग़དྷΔΑ͏ ʹͳΓ·ͨ͠Ͷʁ ͷग़ɾͷೖΓΛײ͠ɺؒʹͳΔͱࣗಈͰϒϧʔϥΠτ Λܰݮͯ͘͠ΕΔ͜ͷػೳɺϒϧʔϥΠτͷਭٴ΅͢Ө ڹͷ؇ɺʹ͔͔Δෛ୲Λܰݮͯ͘͠ΕΔޮՌ͕ظ͞Ε ͍ͯ·͢ɻ
·͔͞ͷӷথ͕ تΕΔ࣌Ͱ͢
ͦ͜Ͱ
γʔϦϯάϥΠτͷ৭Թ ௐޫػೳΛͬͯ φΠτγϑτΛ࣮ݱͯ͠ Έ·ͨ͠ɻ
irMagicianΛૢ࡞͢ΔͨΊͷ ϞδϡʔϧΛNode.jsͰ࡞Γ·ͨ͠ɻ https://www.npmjs.com/package/irmagician CLIπʔϧͱͯ͠irMagicianΛૢ࡞͢Δࣄ͕Ͱ͖·͢ɻ
Node-REDӽ͠ʹϞδϡʔϧΛ ૢ࡞͢ΔͨΊͷΧελϜϊʔυΛ࡞Γ·ͨ͠ https://www.npmjs.com/package/node-red-contrib-irmagician
Node-RED is Կʁ • Node-REDϋʔυΣΞσόΠε/ API͓ΑͼΦϯϥΠϯαʔϏεΛଓ ͢ΔͨΊͷπʔϧͰ͢ɻ(https:// nodered.jp/ ΑΓൈਮ)
None
Demo
ࠓޙͷ༧ఆ • homebridge-irMagicianͷ։ൃ • SwiftʹΑΔγϦΞϧ௨৴ͰirMagicianΛૢ࡞͢Δ
Ҏ্