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
エアコンの操作についての話
Search
Yukimitsu Izawa
August 21, 2021
How-to & DIY
0
570
エアコンの操作についての話
ダイキンエアコンのリモート操作Appの仕様が2021年6月28日に変更になったのを受けて、自分で直接エアコン操作ができるようにした話
Yukimitsu Izawa
August 21, 2021
Tweet
Share
More Decks by Yukimitsu Izawa
See All by Yukimitsu Izawa
軽くて強い素材を求めて(DCFのススメ)
izawa
1
56
指紋認証でsshログイン
izawa
0
210
展示会に出展してみた
izawa
0
130
SlackにZoomの使用状況を表示したい
izawa
0
160
Kindleページめくり君 Ver.2
izawa
0
180
災害グッズとして見たときのキャンプ用品
izawa
0
250
アレクサがカメラ女子になった日
izawa
0
260
2019年上半期のキャンプお買い物ベスト8
izawa
0
280
LT配信システムを作ったはなし
izawa
0
260
Other Decks in How-to & DIY
See All in How-to & DIY
ブックマークチームでアクセシビリティを広める際に直面した問題と、如何にして立て直していったか
lunastera
0
740
銀座線・半蔵門線から、ふりかえりカンファレンス2024現地会場への行き方
pokotyamu
0
200
IoTLT vol100 #NT金沢 #iotlt
n0bisuke2
0
300
【技術カンファレンス運営の裏側】Iwaken Lab 技術好き学生の近況報告 & ことみんさんに技術カンファレンス運営の裏側を聞いちゃう会
kotomin_m
3
190
それっぽいポッドキャストの作り方
khirata
2
230
miiboとamiibo繋げてみた。 #miibo #amiibo #iotlt
n0bisuke2
0
250
JAWS-UG東北[秋田] -東北エンジニアの祭典- AWSとJAWS-UG
awsjcpm
0
1.4k
Fraxinus1k Assembly Instructions (English, v. 0.9)
fukumay
0
1.2k
こんなにあるの? 最近のIPAトレンドを ざっくりまとめてみた
watany
1
520
IoTスタバBotを作って店員さんと話してみた
scbc1167
0
110
リアル登壇だから気をつけたい「マイクの使い方」のコツ
shirayanagiryuji
0
160
ジョインして1ヶ月 緊急リリースを3度体験した話 〜そして改善へ〜
shibatadaiki
0
420
Featured
See All Featured
Designing on Purpose - Digital PM Summit 2013
jponch
114
6.8k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
227
52k
For a Future-Friendly Web
brad_frost
174
9.3k
Debugging Ruby Performance
tmm1
72
12k
The World Runs on Bad Software
bkeepers
PRO
64
11k
Statistics for Hackers
jakevdp
794
220k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
0
120
Designing the Hi-DPI Web
ddemaree
278
34k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
326
21k
Building a Modern Day E-commerce SEO Strategy
aleyda
36
6.8k
KATA
mclloyd
27
13k
What the flash - Photography Introduction
edds
67
11k
Transcript
ΤΞίϯͷ ૢ࡞ʹ͍ͭͯͷ ҪᖒΏ͖Έͭ 20218݄21 Kanazawa.rb meetup #108
ࣗݾհ ➤ YouTuber ➤ My Outdoor Life (https://kanazawa.camp/) ➤ ത࢜(ใՊֶ)
➤ ΠϯλʔωοτΛͬͨૄ݁߹ࢄγεςϜͷݚڀΛ͍ͯ͠·͢ ➤ גࣜձࣾΫϧΟοτ औకCOO ݉ ࢧࣾ ➤ Code for Kanazawa ཧࣄ ➤ ిࢠ࡞ͱφΠϑΛࣗ࡞͢Δͷ͕झຯͰ͢
৸ࣨͷΤΞίϯ ग़య: https://www.daikinaircon.com/roomaircon/products/r_series/index.html#spec?tab=18 ΑΓ
εϚϗ͔Βૢ࡞Ͱ͖Δศརػೳ͖ ग़య: https://www.daikinaircon.com/roomaircon/products/r_series/index.html#spec?tab=18 ΑΓ
൵ܶಥવʹ
ηΩϡϦςΟରԠ……ʁ
ωοτͰ൵໐͕͕͋Δ
զ͕ՈͷηΩϡϦςΟϙϦγతʹΞτ ➤ ͷIoTػثΠϯλʔωοτଆ͔ΒϦʔνϟϒϧʹ͠ͳ͍ ➤ DAIKINΫϥυ͕ؕམͨ͠Βզ͕ՈͷΤΞίϯͷૢ࡞ݖ͕ୣऔ͞ΕΔϦεΫ ➤ ΤΞίϯͷૢ࡞ਓʹةΛՃ͑ΔखஈͱͳΓ͑Δ(தͳͲɺಛʹਓ) ίϯτϩʔϥʔ͙Β͍؆୯ʹ࡞ΕΔͬ͠ΐ
άάΔͱ͍Ζ͍Ζͱใ͕ग़ͯ͘Δ ➤ port 80 Ͱ Web API͕ޱΛ։͚͍ͯΔ ➤ GET ϝιουͰશ෦݁Ͱ͖ͦ͏
➤ ΤϯυϙΠϯτͷURLάάΔͱग़͖ͯͨ ➤ ͭ·ΓcurlఔͰ݁ͦ͠͏͡ΌͶʁ
API END POINT ➤ /common/basic_info جຊతͳใ ➤ /aircon/get_sensor_info ηϯαใ ➤
/aircon/get_control_info ઃఆऔಘ ➤ /aircon/set_control_info ઃఆมߋ
/COMMON/BASIC_INFO % curl http://192.168.100.9/common/basic_info ret=OK,type=aircon,reg=jp,dst=1,ver=3_5_3,pow=0,err=0,location=0, name=%e5%af%9d%e5%ae%a4,icon=0,method=home only,port=30050,id=,pw=, lpw_flag=0,adp_kind=2,pv=3.01,cpv=3,cpv_minor=01,led=1,en_setzone=0, mac=60F189B45044,adp_mode=run,en_hol=0,enlver=1.00,grp_name=,en_grp=0
/AIRCON/GET_SENSOR_INFO % curl http://192.168.100.9/aircon/get_sensor_info ret=OK,htemp=26.0,hhum=85,otemp=28.0,err=0,cmpfreq=0,mompow=1
/AIRCON/GET_CONTROL_INFO % curl http://192.168.100.9/aircon/get_control_info ret=OK,pow=0,mode=0,adv=,stemp=M,shum=AUTO_L,dt1=M,dt2=M,dt3=25.0,dt4=25. 0,dt5=25.0,dt7=M,dh1=AUTO_L,dh2=55,dh3=0,dh4=0,dh5=0,dh7=AUTO_L,dhh=50,b_ mode=0,b_stemp=M,b_shum=AUTO_L,alert=16,stemp_a=0,dt1_a=0,dt7_a=0,b_stemp _a=0 pow: ిݯঢ়ଶ:
(0→ఀࢭ, 1→Քಇத) mode: ӡసϞʔυ: (0,1,7→ࣗಈ, 2→আ࣪, 3→ྫྷ, 4→ஆ, 6→ૹ෩) stemp: target ͱ͢ΔԹ shum: targetͱ͢Δ࣪
/AIRCON/SET_CONTROL_INFO % curl http://192.168.100.9/aircon/set_control_info pow=1,mode=0,adv=,stemp=M,shum=AUTO_L,dt1=M,dt2=M,dt3=25.0,dt4=25.0,dt5=2 5.0,dt7=M,dh1=AUTO_L,dh2=55,dh3=0,dh4=0,dh5=0,dh7=AUTO_L,dhh=50,b_mode=0, b_stemp=M,b_shum=AUTO_L,alert=16,stemp_a=0,dt1_a=0,dt7_a=0,b_stemp_a=0 % curl http://192.168.100.9/aircon/set_control_info?
pow=1&mode=0&adv=&stemp=M&shum=AUTO_L&dt1=M&dt2=M&dt3=25.0&dt4=25.0&dt5=2 5.0&dt7=M&dh1=AUTO_L&dh2=55&dh3=0&dh4=0&dh5=0&dh7=AUTO_L&dhh=50&b_mode=0& b_stemp=M&b_shum=AUTO_L&alert=16&stemp_a=0&dt1_a=0&dt7_a=0&b_stemp_a=0 , を & に変換してURLパラメータ化 get_control_infoͰऔಘͨ͠ύϥϝʔλΛݩʹͯ͠Ұ෦Λॻ͖͑Δ
ղܾʂ ➤ GETϝιουͰୟ͚ΔͷͰɺͦΕͧΕͷURLΛεϚϗͷϒϥβʹbookmarkͯ͠ ྃʂ
݁ ➤ ΤΞίϯʹແઢLANΞμϓλΛ͚͓͚ͭͯ ➤ ͍͖ͳΓվѱ͞Εͯٽ͔ͣʹؤுΕͳΜͱͳ͔ͳΔ ➤ μΠΩϯɺ͓લ΄Μͱڐ͞Μ͔Βͳʂ