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
0
250
Let's make an Immersive Video with APMP
tamaki
0
38
Firebase Studioで始めるモバイルアプリ開発入門
tamaki
0
30
Introduction to Claude Code Action
tamaki
0
740
AIエージェントを使ったiOSアプリ開発を試してみた
tamaki
0
160
沖縄モバイルアプリ開発勉強会#1
tamaki
0
130
iOSアプリ開発を始めよう
tamaki
0
220
詳解xcresult.pdf
tamaki
0
410
メルペイでのリグレッションテスト自動化推進のこれまでとこれから
tamaki
0
800
Other Decks in Technology
See All in Technology
Agentic AIが変革するAWSの開発・運用・セキュリティ ~Frontier Agentsを試してみた~ / Agentic AI transforms AWS development, operations, and security I tried Frontier Agents
yuj1osm
0
210
ソフトウェアエンジニアとAIエンジニアの役割分担についてのある事例
kworkdev
PRO
1
370
SES向け、生成AI時代におけるエンジニアリングとセキュリティ
longbowxxx
0
300
プロンプトエンジニアリングを超えて:自由と統制のあいだでつくる Platform × Context Engineering
yuriemori
0
160
AWS re:Inventre:cap ~AmazonNova 2 Omniのワークショップを体験してきた~
nrinetcom
PRO
0
130
コールドスタンバイ構成でCDは可能か
hiramax
0
130
Bill One 開発エンジニア 紹介資料
sansan33
PRO
4
17k
Oracle Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
3
260
20251225_たのしい出張報告&IgniteRecap!
ponponmikankan
0
110
小さく、早く、可能性を多産する。生成AIプロジェクト / prAIrie-dog
visional_engineering_and_design
0
330
「駆動」って言葉、なんかカッコイイ_Mitz
comucal
PRO
0
130
Scrum Guide Expansion Pack が示す現代プロダクト開発への補完的視点
sonjin
0
410
Featured
See All Featured
The untapped power of vector embeddings
frankvandijk
1
1.5k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
74
Mobile First: as difficult as doing things right
swwweet
225
10k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
180
How to Ace a Technical Interview
jacobian
281
24k
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
44
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.9k
It's Worth the Effort
3n
187
29k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
Evolving SEO for Evolving Search Engines
ryanjones
0
93
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
270
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
180
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Λૢ࡞͢Δ
Ҏ্