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
790
4
Share
部屋をナイトシフトする in おうちハック
homebridge + Node-RED + irMagicianを使って部屋の照明を調光してナイトシフトを実現してみました。
Shingo Tamaki
June 19, 2016
More Decks by Shingo Tamaki
See All by Shingo Tamaki
Use Gemini CLI from Claude Code as part of Sub Agent
tamaki
0
300
Let's make an Immersive Video with APMP
tamaki
0
56
Firebase Studioで始めるモバイルアプリ開発入門
tamaki
0
47
Introduction to Claude Code Action
tamaki
0
780
AIエージェントを使ったiOSアプリ開発を試してみた
tamaki
0
190
沖縄モバイルアプリ開発勉強会#1
tamaki
0
150
iOSアプリ開発を始めよう
tamaki
0
250
詳解xcresult.pdf
tamaki
0
430
メルペイでのリグレッションテスト自動化推進のこれまでとこれから
tamaki
0
820
Other Decks in Technology
See All in Technology
プロンプトエンジニアリングを超えて:自由と統制のあいだでつくる Platform × Context Engineering
yuriemori
0
160
ASTのGitHub CopilotとCopilot CLIの現在地をお話しします/How AST Operates GitHub Copilot and Copilot CLI
aeonpeople
1
210
Hello UUID
mimifuwacc
0
130
組織的なAI活用を阻む 最大のハードルは コンテキストデザインだった
ixbox
6
1.6k
申請待ちゼロへ!AWS × Entra IDで実現した「権限付与」のセルフサービス化
mhrtech
1
280
ZOZOTOWNリプレイスでのSkills導入までの流れとこれから
zozotech
PRO
4
3.3k
AIペネトレーションテスト・ セキュリティ検証「AgenticSec」ご紹介資料
laysakura
0
1.6k
システムは「動く」だけでは足りない 実装編 - 非機能要件・分散システム・トレードオフをコードで見る
nwiizo
2
310
Data Enabling Team立ち上げました
sansantech
PRO
0
300
Strands Agents × Amazon Bedrock AgentCoreで パーソナルAIエージェントを作ろう
yokomachi
2
260
20260410 - CNTUG meetup #72 - DiskImage Builder 介紹:以 Kubespray CI 打造 RockyLinux 10 Cloud Image 為例
tico88612
0
120
サイバーフィジカル社会とは何か / What Is a Cyber-Physical Society?
ks91
PRO
0
160
Featured
See All Featured
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
110
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
97
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
430
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
1
480
Joys of Absence: A Defence of Solitary Play
codingconduct
1
340
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
170
AI: The stuff that nobody shows you
jnunemaker
PRO
5
530
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
231
23k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.7k
Building the Perfect Custom Keyboard
takai
2
720
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
200
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
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Λૢ࡞͢Δ
Ҏ্