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
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
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
目の前の楽しいが人生を変える - コミュニティの螺旋の歩き方と楽しむコツ / change your life
soudai
PRO
4
600
【技術的負債conf】事業成長に伴う技術的負債の説明責任とAIによるモニタリング、認知的負債について
i35_267
2
1.6k
アクセスキーこわい やめかたと漏らさない工夫
sassssan68
1
210
バイブコーディング時代のWebアプリ開発入門~Cloud Runで学ぶセキュアなビルドとデプロイ
waiwai2111
1
120
映像変換サーバーなしで端末内でHLSを生成してライブ配信
hikarusato
0
110
Claude Codeを「使うほど育つ」AI秘書にするノウハウ
minorun365
PRO
27
20k
安心して変更できるWebフロントエンドの作り方
pirosikick
4
2.5k
顧客に向き合う開発組織へ。リアーキテクチャとフィーチャーチーム化で挑む組織改革
safie
0
1.9k
積み重なった技術負債への挑戦 〜初手としての全社ゴト化〜
techtekt
PRO
0
1.2k
日経電子版を支えていく Kasane Design System/fec_fukuoka
nikkei_engineer_recruiting
0
1.5k
ユーザー価値を届け続けるためにウォンテッドリーが大切にしている文化
kotaminato
0
160
OpenTelemetryのメトリクスをCloudWatchに送ってPromQLで見てみた
ota1022
0
150
Featured
See All Featured
Bioeconomy Workshop: Dr. Julius Ecuru, Opportunities for a Bioeconomy in West Africa
akademiya2063
PRO
1
360
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
440
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
New Earth Scene 8
popppiees
4
2.6k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Ethics towards AI in product and experience design
skipperchong
2
370
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
370
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
The Cost Of JavaScript in 2023
addyosmani
55
10k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
690
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ʹ ͍͍ײ͡ͷڧԽ͕དྷΔͱ ྑ͍Ͱ͢Ͷʂ
Ҏ্