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
部屋をナイトシフトする in おうちハック
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Shingo Tamaki
June 19, 2016
Technology
800
4
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
部屋をナイトシフトする 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
360
Let's make an Immersive Video with APMP
tamaki
0
87
Firebase Studioで始めるモバイルアプリ開発入門
tamaki
0
81
Introduction to Claude Code Action
tamaki
0
840
AIエージェントを使ったiOSアプリ開発を試してみた
tamaki
0
230
沖縄モバイルアプリ開発勉強会#1
tamaki
0
200
iOSアプリ開発を始めよう
tamaki
0
280
詳解xcresult.pdf
tamaki
0
500
メルペイでのリグレッションテスト自動化推進のこれまでとこれから
tamaki
0
880
Other Decks in Technology
See All in Technology
Reactの設計論
uhyo
24
13k
GoにおけるFFIのこれまでとこれから
goccy
5
3.5k
AIネイティブプロダクトで顧客価値を最大化するプロダクトエンジニアとFDEの協働
righttouch
PRO
0
310
OpenTelemetryのメトリクスをCloudWatchに送ってPromQLで見てみた
ota1022
0
150
AI 時代のスタートアップエコシステ厶から考究する技術的負債との向き合い方
m3m0r7
PRO
2
2.1k
研究開発部の紹介 / Sansan R&D Profile
sansan33
PRO
5
25k
空間オーディオで過去の 自分(ゴースト)と競うランニング 〜HealthKitのルートを足音に変える実装〜
nao_randd
0
220
あるけみー式LTスライド作成術
alchemy1115
1
210
LLMに渡さなかった仕事
nanaism
0
170
事業課題から技術的負債に向き合う
sansantech
PRO
2
1.8k
aws-iot-platform-architecture-use-cases.pdf
ma2shita
0
170
山手線を徒歩で一周してわかった、 位置情報アプリは「足」が最強のデバッガー
hinakko
0
160
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
870
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
450
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
330
Making the Leap to Tech Lead
cromwellryan
135
10k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
910
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
540
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.9k
Test your architecture with Archunit
thirion
2
2.4k
4 Signs Your Business is Dying
shpigford
187
23k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.6k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
57k
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Λૢ࡞͢Δ
Ҏ্