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
HoloLens、Firebase、Node.js、irMagicianでテレビを操作してみた
Search
gaomar
November 17, 2017
Programming
420
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
HoloLens、Firebase、Node.js、irMagicianでテレビを操作してみた
HoloLens、Firebase、Node.js、irMagicianでテレビを操作してみた
gaomar
November 17, 2017
More Decks by gaomar
See All by gaomar
PAD・enebular・Lexで 交通費を確認してみた / enebular-200902
gaomar
0
260
よくあるご質問をノーコードで試してみた / enebular-210210
gaomar
0
270
enebularで湯婆婆をノーコードで実装してみた / enebular-201201
gaomar
0
1.2k
CLOVA OCRをenebularで連携してみた / yurufuwaml-201104
gaomar
0
450
会社の受付システムをenebularでやってみる / 0yenRPA-201006
gaomar
0
280
ゆるふわマシンラーニング vol.4 / yurufuwaml-200702
gaomar
0
320
Makecode Arcadeハンズオン資料 / makecodearcade-0625
gaomar
2
590
M5StickCをLINE Beacon化してみた / m5stack-200207
gaomar
0
830
スマートスピーカーミーティング 20200130 / ssmtg-200130
gaomar
0
560
Other Decks in Programming
See All in Programming
エージェントを使い続けるためのメタワーク / Meta-work for keeping using the agent
rkaga
3
1.3k
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
170
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
140
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Kaigi on Rails 2026, Tokyo, Japan
marcoroth
2
310
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
360
當我們開始不讀 Code - AI Agent 時代,Code Review 與 Clean Code 還剩下什麼?
jame2408
1
280
Atomic Design, Enforced: Scaling Mobile Design Systems (next.app devCon / droidCon Berlin 2026)
steliosf
PRO
0
180
golang-bob.pdf
iwatsukayura
0
130
JAWS-UG 東京支部が始める、JAWS-UG支部コラボ / JAWS-UG lunchtime LT Collaboration
y0hgi
0
290
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
130
R8 の設定見直しでアプリサイズ削減
andpad
0
220
Featured
See All Featured
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
540
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
530
Faster Mobile Websites
deanohume
310
32k
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
940
Navigating Weather and Climate Data
rabernat
0
560
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
300
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
1
860
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Docker and Python
trallard
47
4.2k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.6k
Transcript
93ϛʔςΟϯά
ࣗݾհ ॴଐɿגࣜձࣾΞΠΤϯλʔ ɹɹɹ3%ɹೖࣾ ۀɿ)PMP-FOTݚڀ։ൃ ɹɹɹυϩʔϯɺ.3ɺ73ݚڀ χϡʔεɿࢁ͞Μʹ৮ൃ͞Ε (PPHMF)PNFΛങ͏ ߴഅɹయ !HBPNBS
࠷ۙͬͨϗϩ׆ wɹϩϘοτετϦʔτग़ల wɹԬͰ)PMP-FOTʹؔ͢Δొஃ
ࡶஊ (PPHMF)PNFങ͍·ͨ͠ʂ
ࡶஊ ͕͜͜ศརͩΑ(PPHMF)PNF *'555ͱͷ࿈ܞ ϥδί͕ௌ͚Δ ͰϝϞग़དྷΔ ങ͏ͷϦετ
ࡶஊ (PPHMF)PNFͬͯ ϥΠτૢ࡞͍ͯ͠Δਓ͕͍ͨ
)PMP-FOT͔Βૢ࡞ͯ͠ΈΑ͏
͜Μͳײ͡
3BTQCFSSZ1JʹJS.BHJDJBOͷ ϞδϡʔϧΛೖΕΔ $npm install irmagician
JS.BHJDJBOʹϦϞίϯͷ֎ઢΛ ֶशͤ͞Δ $irMagician capture
ֶशͨ͠֎ઢใΛEVNQ͢Δ $irMagician dump hoge.json
JS.BHJDJBOʹ֎ઢใΛॻ͖ࠐΉ $irMagician write hoge.json
JS.BHJDJBO͔ΒϦϞίϯͷ ֎ઢΛൃࣹ $irMagician play
)PMP-FOT͔Β'JSFCBTFʹ 8FC)PPLͰߋ৽͢Δ
public class TouchAction : MonoBehaviour, IInputClickHandler { string fb_url =
“https://xxxxxxxx.firebaseio.com/googlehome/word.json"; public void OnInputClicked(InputClickedEventData eventData) { StartCoroutine(Put(fb_url, "\"tv Φϯ\"")); } public IEnumerator Put(string url, string jsonStr) { var request = new UnityWebRequest(); request.url = url; byte[] body = Encoding.UTF8.GetBytes(jsonStr); request.uploadHandler = new UploadHandlerRaw(body); request.downloadHandler = new DownloadHandlerBuffer(); request.SetRequestHeader("Content-Type", "application/json; charset=UTF-8"); request.method = UnityWebRequest.kHttpVerbPUT; yield return request.Send(); if (!request.isNetworkError) { if (request.responseCode == 200) { Debug.Log("success"); Debug.Log(request.downloadHandler.text); } else { Debug.Log("failed"); } } } }
'JSFCBTF͕ߋ৽͞ΕΔͱ /PEFKTʹߋ৽ͨ͠ใ͕དྷΔ
ߋ৽ใ͕དྷͨΒγΣϧΛ࣮ߦ #json༗ແνΣοΫ if test -e ./json/hoge.json; then #Ωϟϓνϟ͓͍ͯͨ͠֎ઢ৴߸Λϩʔυ irMagician write
./json/hoge.json #֎ઢ৴߸ૹ৴ irMagician play else echo ͦΜͳઃఆͳ͍Αʂ fi
)PMP-FOT։ൃ࣮ )PMP8FCIPPL IUUQTZPVUVCFK4*V., ςϨϏ੍ޚΞϓϦ
ۙڑ͗ͯ݁͢ہϦϞίϯ ͬͨํ͕ૣ͍͆
'JSFCBTFʹߋ৽͢ΔͷͰ ֎ग़ઌͰϦϞίϯૢ࡞͕Մೳ
)PMP-FOTY*P5 ৄࡉ2JJUBʹهड़ͯ͋͠Γ·͢ IUUQTRJJUBDPNIUBLBVNBJUFNTCGBGCCGF
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠