Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
部屋をナイトシフトする
Search
Shingo Tamaki
May 30, 2016
Technology
810
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
部屋をナイトシフトする
homebridge+Node-RED+irMagicianで部屋の照明をコントロールしてみました。
Shingo Tamaki
May 30, 2016
More Decks by Shingo Tamaki
See All by Shingo Tamaki
Use Gemini CLI from Claude Code as part of Sub Agent
tamaki
0
360
Let's make an Immersive Video with APMP
tamaki
0
92
Firebase Studioで始めるモバイルアプリ開発入門
tamaki
0
81
Introduction to Claude Code Action
tamaki
0
860
AIエージェントを使ったiOSアプリ開発を試してみた
tamaki
0
240
沖縄モバイルアプリ開発勉強会#1
tamaki
0
210
iOSアプリ開発を始めよう
tamaki
0
290
詳解xcresult.pdf
tamaki
0
500
メルペイでのリグレッションテスト自動化推進のこれまでとこれから
tamaki
0
880
Other Decks in Technology
See All in Technology
FinOps Agentが生んだ技術負債:コスト自動調査の落とし穴と解消までの道のり
oasis1994liveforever
1
100
Metadata - Section 1: HTML Basics
mohab1
0
120
Browser Spec: Testing Hotwire with Ruby
takahashim
1
130
継続的なAIコスト最適化
bgpat
1
350
「事実」を「計測」して、「解釈」する 〜AWS Lambdaのメモリ最適解の見つけ方〜
maimyyym
0
170
JAWSUG TOHOKU 青森支部 「LoGoチャット」のAWS移行で 乗り越えたこと
taketakekaho
0
340
AI導入は済んだ。次は統制を作り替える番だ_AI×開発組織 Summit 2026
techtekt
PRO
0
300
フロントエンドカンファレンス関西2026 - 速すぎるUIに、待ち時間を
teamlab
PRO
0
180
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
170
パスキーの自動テストはどこまでいけるのか
teamlab
PRO
0
270
大型犬好きによるPugの紹介
yamanoku
1
160
WasmをRustにする
sansantech
PRO
0
260
Featured
See All Featured
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
Why Our Code Smells
bkeepers
PRO
340
58k
GitHub's CSS Performance
jonrohan
1033
470k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
Deep Space Network (abreviated)
tonyrice
0
370
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
570
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Abbi's Birthday
coloredviolet
4
10k
Context Engineering - Making Every Token Count
addyosmani
9
1.2k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
1
450
Transcript
෦ΛNightShift͢Δ
ࣗݾհ ۄ ৴ޛ • iOS ΤϯδχΞ • ΨδΣοτ͖ • ిࢠ࡞࢝Ί·ͨ͠ɻRaspberry
PiɺArduinoɺEdison
ࠓͷൃදʹ Swift ग़·ͤΜm(_ _)m
HomeKitͬͯ·͔͢ʁ
HomeKit is Կʁ HomeKitɺAppleͷHomeKit Accessory ProtocolʹରԠͨ͠ ϗʔϜΦʔτϝʔγϣϯػثͱ௨৴͠ɺ͜ΕΛ੍ޚ͢ΔͨΊͷ ϑϨʔϜϫʔΫͰ͢ɻ(HomeKit Developer GuideΑΓ)
༻ޠͷ͓͞Β͍ • ϗʔϜ • ϧʔϜ • ΞΫηαϦ • αʔϏε •
γʔϯ
༻ޠͷ͓͞Β͍ • ϗʔϜ • ϧʔϜ • ΞΫηαϦ • αʔϏε •
γʔϯ
HomeKitରԠΞϓϦ։ൃͷ • ରԠ͕গͳ͍ • ֹ͕ۚߴ͍! • HomeKit Accessory SimulatorͰຯؾͳ͍
homebridge
homebridge is Կʁ • HomeKitͷԾσόΠεΛΤϛϡϨʔγϣϯ • Node.js • Node.js͕ಈ͘ͳΒHomeKitͷͱͯ͠ϖΞϦϯάͰ ͖Δɹ
→ Raspberry PiEdison͕͑Δ
homebridge-ifttt IoTܥDIYBotͰΑ͘ΘΕΔIFTTTͷϓϥάΠ ϯɺ͍ΖΜͳWebαʔϏεͱ࿈ܞʂ https://github.com/ilcato/homebridge- ifttt
homebridge-cmd ಛఆͷίϚϯυΛ࣮ߦͤ͞Δࣄ͕Ͱ͖ΔϓϥάΠ ϯ ͜ΕʹΑΓSiriܦ༝ͰΠϕϯτΛτϦΨͤͯ͞ޙ ࣗͷ͖ͳίϚϯυΛઃఆͰ͖ͪΌ͍·͢ɻ https://github.com/senyoltw/ homebridge-cmd
homebridgeΛͬͨޙɺ વԿ͔ՈిΛૢ࡞ͯ͠Έ͍ͨͱࢥ͍ ·͢ΑͶʁ
irMagician
irMagicianͱʁ • PCରԠܕͷ֎ઢϦϞίϯγεςϜ • ϗετͱͷଓUSB • ΤΞίϯͷϦϞίϯͷֶश͕Մೳ • CDC-ACMΛ࠾༻͠ɺओཁͳOS(Windows, MacOSX,
Linux, ͦͷଞ)ʹରԠ • ٕज़ࢿྉΛެ։͍ͯ͠ΔʢΦʔϓϯιʔεԽʣ http://www.omiya-giken.com/?page_id=837
IRKitʁ
!
͔͔ͤͬͩ͘ΒԶ ͜ͷখ͍͞ํͷ ֎ઢϦϞίϯΛબͿͥ
ૢ࡞Ͱ͖ͦ͏ͳՈిΛՈ Ͱ୳ͯ͠Έ·ͨ͠ɻ
γʔϦϯάϥΠτ ೦ͳ͕Βɺࣗʹ͜ΕҎ֎֎ઢϦϞίϯର Ԡͯ͠Δػց͋Γ·ͤΜͰͨ͠ɻ • TVɹˠɹࣺͯͨ • ΤΞίϯɹˠɹ·͔͞ͷ༗ઢϦϞίϯͰͨ͠ ͤΊͯՆʹ͚ͯΤΞίϯͷૢ࡞͔ͨͬͨ͠ ͳ...
!
!
! Night Shift !
iOS9ͰNight Shiftػೳ͕ग़དྷΔΑ͏ ʹͳΓ·ͨ͠Ͷʁ ͷग़ɾͷೖΓΛײ͠ɺؒʹͳΔͱࣗಈͰϒϧʔϥΠτ Λܰݮͯ͘͠ΕΔ͜ͷػೳɺϒϧʔϥΠτͷਭٴ΅͢Ө ڹͷ؇ɺʹ͔͔Δෛ୲Λܰݮͯ͘͠ΕΔޮՌ͕ظ͞Ε ͍ͯ·͢ɻ
·͔͞ͷӷথ͕ تΕΔ࣌Ͱ͢
irMagicianΛૢ࡞͢ΔͨΊͷ ϞδϡʔϧΛNode.jsͰ࡞Γ·ͨ͠ɻ ※ SwiftͰ͋Γ·ͤΜ
࣍ʹNode-REDӽ͠ʹϞδϡʔϧΛ ૢ࡞Ͱ͖ΔΑ͏ʹ͠·ͨ͠ɻ ※ ͍ͭ͜͠Α͏Ͱ͕͢SwiftͰ͋Γ·ͤΜ
Node-RED is Կʁ • Node-REDϋʔυΣΞσόΠε/ API͓ΑͼΦϯϥΠϯαʔϏεΛଓ ͢ΔͨΊͷπʔϧͰ͢ɻ(https:// nodered.jp/ ΑΓൈਮ)
͏গ͠ࡉ͔͘ • Φʔϓϯιʔε • Node.js͕ج൫ • Node.jsͷϥΠϒϥϦͳͲ׆༻ Մೳ • ϒϥβ্ͰGUIΛૢ࡞ͯ͠ΞϓϦ
έʔγϣϯΛ࡞Մೳ • IoT͚ʹ࡞ΒΕ͍ͯΔͨΊɺ Raspberry PiBagleBoneBlackͳͲ Ͱ༻Մೳ
None
Demo
ࠓޙͷ༧ఆ • irMagician.jsͷެ։ • node-red-contrib-irMagiciansREDͷެ։ • homebridge-irMagicianͷ։ൃ • SwiftʹΑΔγϦΞϧ௨৴ͰirMagicianΛૢ࡞͢Δ
WWDCͰHomeKitʹ ͍͍ײ͡ͷڧԽ͕དྷΔͱ ྑ͍Ͱ͢Ͷʂ
Ҏ্