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
Python(+α)でスマートプラグを制御してみた
Search
Sora Arakawa
March 01, 2022
Programming
0
1.4k
Python(+α)でスマートプラグを制御してみた
サポーターズ学生ライトニングトーク ~2022春の始まり編~
Sora Arakawa
March 01, 2022
Tweet
Share
More Decks by Sora Arakawa
See All by Sora Arakawa
非root化Androidスマホでも動く仮想マシンアプリを試してみた
arkw
0
120
技術島の指定ツール「LaTeX」で同人誌を作ろう
arkw
2
130
ポスト・パソコン時代のジャンク遊び スマートデバイス編
arkw
0
110
ジャンカーよ、車も買え ~10分でわかる!? 中古車選び入門~
arkw
1
97
arkw vs. サーバ移転 -2024年1月版-
arkw
0
280
なれる! 村上さん Misskeyサーバ構築入門
arkw
0
500
Cloudflare Tunnelで自宅サーバを公開してみた
arkw
0
1.4k
5分でわかる!? 7セグメントLED制御
arkw
0
68
ヤフオクで原付買った話
arkw
0
210
Other Decks in Programming
See All in Programming
fieldalignmentから見るGoの構造体
kuro_kurorrr
0
140
ぽちぽち選択するだけでOSSを読めるVSCode拡張機能
ymbigo
14
6.2k
flutter_kaigi_mini_4.pdf
nobu74658
0
150
ニーリーQAのこれまでとこれから
nealle
2
770
データと事例で振り返るDevin導入の"リアル" / The Realities of Devin Reflected in Data and Case Studies
rkaga
1
970
UMAPをざっくりと理解 / Overview of UMAP
kaityo256
PRO
3
1.5k
カウシェで Four Keys の改善を試みた理由
ike002jp
1
130
監視 やばい
syossan27
12
10k
Beyond_the_Prompt__Evaluating__Testing__and_Securing_LLM_Applications.pdf
meteatamel
0
110
The Nature of Complexity in John Ousterhout’s Philosophy of Software Design
philipschwarz
PRO
0
170
note の Elasticsearch 更新系を支える技術
tchov
9
3.6k
Boost Your Performance and Developer Productivity with Jakarta EE 11
ivargrimstad
0
850
Featured
See All Featured
How GitHub (no longer) Works
holman
314
140k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Making the Leap to Tech Lead
cromwellryan
133
9.3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.8k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
790
Code Reviewing Like a Champion
maltzj
523
40k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Build your cross-platform service in a week with App Engine
jlugia
230
18k
Building Adaptive Systems
keathley
41
2.5k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
45
7.2k
Why You Should Never Use an ORM
jnunemaker
PRO
56
9.4k
[RailsConf 2023] Rails as a piece of cake
palkan
54
5.5k
Transcript
Python +α Sora Arakawa (arkw) 2022/03/01 LT@ CAMP
Sora Arakawa arkw • B2 →B3 • etc… • →
• Android 940 • Alexa 915 • … • https://arkw.net/
• • Windows GitHub arkwnet/LTTimer
IoT
Internet of Things
IoT Internet of Things • https://aws.amazon.com/jp/iot/what-is-the-internet-of-things/
None
• TP-Link Tapo P105 1000 1500W 1
• TP-Link Tapo
• N W OK NG N W
!
• • 20% ON 80% OFF
• Tapo P100 PyP100 https://github.com/fishbigger/TapoP100
Python
Python
• Python • pip3 install PyP100
from PyP100 import PyP100 p105 = PyP100.P100("192.168.X.X", "
[email protected]
", "password") p105.handshake()
p105.login() p105.turnOn()
from PyP100 import PyP100 p105 = PyP100.P100("192.168.X.X", "
[email protected]
", "password") p105.handshake()
p105.login() p105.turnOn() # IP TP-Link ID
• → →IP
• IP
from PyP100 import PyP100 p105 = PyP100.P100("192.168.X.X", "
[email protected]
", "password") p105.handshake()
p105.login() p105.turnOff()
from PyP100 import PyP100 p105 = PyP100.P100("192.168.X.X", "
[email protected]
", "password") p105.handshake()
p105.login() setup_args = p105.getDeviceInfo() print(setup_args)
print(setup_args)
print(setup_args['result']['device_on'])
• 5 API •
GUI
Python
C#
(Python) GUI (C#)
None
None
(Linux+Python) Android (Java) 20% ON 80% OFF •
• IoT • • TP-Link Python • IP
• GitHub https://github.com/arkwnet/tapo-p105
None