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
630
エアコンの操作についての話
ダイキンエアコンのリモート操作Appの仕様が2021年6月28日に変更になったのを受けて、自分で直接エアコン操作ができるようにした話
Yukimitsu Izawa
August 21, 2021
Tweet
Share
More Decks by Yukimitsu Izawa
See All by Yukimitsu Izawa
軽くて強い素材を求めて(DCFのススメ)
izawa
1
82
指紋認証でsshログイン
izawa
0
270
展示会に出展してみた
izawa
0
150
SlackにZoomの使用状況を表示したい
izawa
0
180
Kindleページめくり君 Ver.2
izawa
0
200
災害グッズとして見たときのキャンプ用品
izawa
0
270
アレクサがカメラ女子になった日
izawa
0
290
2019年上半期のキャンプお買い物ベスト8
izawa
0
300
LT配信システムを作ったはなし
izawa
0
290
Other Decks in How-to & DIY
See All in How-to & DIY
[너구리랑! 회고 밋업 2023] 비전공자 PM의 우당탕탕 2023년 // 의현 님
develop_neoguri
0
110
わたしと技術コミュニティとキャリア
kotomin_m
2
200
AWS User Community - JAWS-UG/AWS ユーザーコミュニティのご紹介
awsjcpm
1
140
チームビルディングを受けてみた
harukahosokawa
2
120
drumstick_jacket.pdf
lyh125
1
540
HCIのデモに役立つ映像活用アイデア集 #WISS2024 ナイトセッション #HCIVideoCulture
bonsaistudiojp
2
390
APCのAWS認定マスターたちに聞いてみた
masuchoku
0
110
Using AWS to build a launchable knowledge rocket 👉 Organize knowledge, accelerate learning and understand AI in the process
dwchiang
0
150
一番やさしいDJ入門 2024
stefafafan
6
1.8k
How to get hundreds of organic backlinks through statistics link building
ronishehu
1
180
BVEと連動する誤自宅運転台のススメ!
usashirou
0
630
銀座線・半蔵門線から、ふりかえりカンファレンス2024現地会場への行き方
pokotyamu
0
240
Featured
See All Featured
Site-Speed That Sticks
csswizardry
2
190
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
Code Reviewing Like a Champion
maltzj
520
39k
Embracing the Ebb and Flow
colly
84
4.5k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
Documentation Writing (for coders)
carmenintech
66
4.5k
How GitHub (no longer) Works
holman
311
140k
Typedesign – Prime Four
hannesfritz
40
2.4k
Making Projects Easy
brettharned
116
5.9k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Become a Pro
speakerdeck
PRO
26
5k
Designing Experiences People Love
moore
138
23k
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ΞμϓλΛ͚͓͚ͭͯ ➤ ͍͖ͳΓվѱ͞Εͯٽ͔ͣʹؤுΕͳΜͱͳ͔ͳΔ ➤ μΠΩϯɺ͓લ΄Μͱڐ͞Μ͔Βͳʂ