Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
HoloLens、Firebase、Node.js、irMagicianでテレビを操作してみた
Search
gaomar
November 17, 2017
Programming
0
390
HoloLens、Firebase、Node.js、irMagicianでテレビを操作してみた
HoloLens、Firebase、Node.js、irMagicianでテレビを操作してみた
gaomar
November 17, 2017
Tweet
Share
More Decks by gaomar
See All by gaomar
PAD・enebular・Lexで 交通費を確認してみた / enebular-200902
gaomar
0
190
よくあるご質問をノーコードで試してみた / enebular-210210
gaomar
0
190
enebularで湯婆婆をノーコードで実装してみた / enebular-201201
gaomar
0
1k
CLOVA OCRをenebularで連携してみた / yurufuwaml-201104
gaomar
0
380
会社の受付システムをenebularでやってみる / 0yenRPA-201006
gaomar
0
220
ゆるふわマシンラーニング vol.4 / yurufuwaml-200702
gaomar
0
270
Makecode Arcadeハンズオン資料 / makecodearcade-0625
gaomar
2
500
M5StickCをLINE Beacon化してみた / m5stack-200207
gaomar
0
740
スマートスピーカーミーティング 20200130 / ssmtg-200130
gaomar
0
470
Other Decks in Programming
See All in Programming
Infer入門
riru
4
1.6k
SOCI Index Manifest v2が出たので調べてみた / Introduction to SOCI Index Manifest v2
tkikuc
1
110
TROCCO×dbtで実現する人にもAIにもやさしいデータ基盤
nealle
0
380
AIレビュアーをスケールさせるには / Scaling AI Reviewers
technuma
2
230
開発チーム・開発組織の設計改善スキルの向上
masuda220
PRO
17
9.2k
Claude Codeで挑むOSSコントリビュート
eycjur
0
190
testingを眺める
matumoto
1
130
Updates on MLS on Ruby (and maybe more)
sylph01
1
160
RDoc meets YARD
okuramasafumi
4
160
MLH State of the League: 2026 Season
theycallmeswift
0
180
[FEConf 2025] 모노레포 절망편, 14개 레포로 부활하기까지 걸린 1년
mmmaxkim
0
1.3k
ワープロって実は計算機で
pepepper
2
1.4k
Featured
See All Featured
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
185
54k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
The Cost Of JavaScript in 2023
addyosmani
53
8.9k
How STYLIGHT went responsive
nonsquared
100
5.8k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
284
13k
The Power of CSS Pseudo Elements
geoffreycrofte
77
5.9k
jQuery: Nuts, Bolts and Bling
dougneiner
64
7.9k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
3.1k
Building Applications with DynamoDB
mza
96
6.6k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
161
15k
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
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠