$30 off During Our Annual Pro Sale. View Details »
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
230
Let's make an Immersive Video with APMP
tamaki
0
35
Firebase Studioで始めるモバイルアプリ開発入門
tamaki
0
27
Introduction to Claude Code Action
tamaki
0
730
AIエージェントを使ったiOSアプリ開発を試してみた
tamaki
0
150
沖縄モバイルアプリ開発勉強会#1
tamaki
0
130
iOSアプリ開発を始めよう
tamaki
0
210
詳解xcresult.pdf
tamaki
0
410
メルペイでのリグレッションテスト自動化推進のこれまでとこれから
tamaki
0
800
Other Decks in Technology
See All in Technology
MySQLとPostgreSQLのコレーション / Collation of MySQL and PostgreSQL
tmtms
1
1.1k
多様なデジタルアイデンティティを攻撃からどうやって守るのか / 20251212
ayokura
0
500
AIプラットフォームにおけるMLflowの利用について
lycorptech_jp
PRO
1
180
re:Invent2025 3つの Frontier Agents を紹介 / introducing-3-frontier-agents
tomoki10
0
300
Agent Skillsがハーネスの垣根を超える日
gotalab555
3
1.3k
普段使ってるClaude Skillsの紹介(by Notebooklm)
zerebom
0
120
mairuでつくるクレデンシャルレス開発環境 / Credential-less development environment using Mailru
mirakui
5
570
エンジニアリングをやめたくないので問い続ける
estie
2
1.2k
2025年 開発生産「可能」性向上報告 サイロ解消からチームが能動性を獲得するまで/ 20251216 Naoki Takahashi
shift_evolve
PRO
2
210
AI駆動開発の実践とその未来
eltociear
1
400
Jakarta Agentic AI Specification - Status and Future
reza_rahman
0
110
Connection-based OAuthから学ぶOAuth for AI Agents
flatt_security
0
140
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
340
57k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
1
860
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
0
26
First, design no harm
axbom
PRO
1
1k
Exploring anti-patterns in Rails
aemeredith
2
200
The browser strikes back
jonoalderson
0
64
Designing Experiences People Love
moore
143
24k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
11
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
57
37k
Building Applications with DynamoDB
mza
96
6.8k
How GitHub (no longer) Works
holman
316
140k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.3k
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Λૢ࡞͢Δ
Ҏ্