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
410
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
440
会社の受付システムを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
820
スマートスピーカーミーティング 20200130 / ssmtg-200130
gaomar
0
560
Other Decks in Programming
See All in Programming
AWSに止められる覚悟してますか?
morizo_1984
2
490
更なる可用性を求めて、5年間運用したKotlinのアプリケーションをGoでリプレイスする話
ken_tunc
0
410
パズルゲームの作り方 / how to make puzzle games
kaityo256
PRO
2
250
UnityでSystem.Net.WebSocketsなWebSocketサーバが動かないのでUnity Monoのコードを覗いてみた / about implementing websocket server with unity mono
drumath2237
1
510
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
150
The Rails Doctrine Decade
koic
2
420
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
510
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
280
ハーネス設計入門 〜 基礎知識の整理から実務へのステップアップ 〜
kinopeee
19
19k
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1k
モデルのリファクタリングが難しいと思ったら、そもそも複雑だったのはビジネス仕様だった ? / is-the-business-domain-the-real-complexity
hatsu38
0
430
世界の中心で、AI(App Intents)をさけぶ ー App Intents中心設計の実践ガイド
touyou
0
730
Featured
See All Featured
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Designing for Timeless Needs
cassininazir
1
510
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
Being A Developer After 40
akosma
91
590k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.3k
Mobile First: as difficult as doing things right
swwweet
225
10k
Rails Girls Zürich Keynote
gr2m
96
14k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
620
Deep Space Network (abreviated)
tonyrice
0
350
4 Signs Your Business is Dying
shpigford
187
23k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.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
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠