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.1k
Python(+α)でスマートプラグを制御してみた
サポーターズ学生ライトニングトーク ~2022春の始まり編~
Sora Arakawa
March 01, 2022
Tweet
Share
More Decks by Sora Arakawa
See All by Sora Arakawa
arkw vs. サーバ移転 -2024年1月版-
arkw
0
100
なれる! 村上さん Misskeyサーバ構築入門
arkw
0
260
Cloudflare Tunnelで自宅サーバを公開してみた
arkw
0
920
5分でわかる!? 7セグメントLED制御
arkw
0
52
ヤフオクで原付買った話
arkw
0
160
パソコンの消費電力と省エネ化のおはなし
arkw
0
250
"成果物"を作ろう(提案)
arkw
0
230
学情絶叫ウェブシステムGX
arkw
0
120
C++とDXライブラリでLTタイマーを作った話
arkw
0
320
Other Decks in Programming
See All in Programming
CSC307 Lecture 10
javiergs
PRO
0
310
Cloudflare Workers x AWS Lambdaの組み合わせユースケース / Cloudflare Workers x AWS Lambda Combination Use Case
seike460
PRO
2
310
初心者がおさえておきたいAWS CDKのベストプラクティス 2024
konokenj
15
7.3k
I/O Extended Android in Korea 2024 ~ Whats new in Android development tools
pluu
0
250
유연한 Composable 설계
l2hyunwoo
0
380
CSC307 Lecture 14
javiergs
PRO
0
220
はしめてのプログラミングとロボット制御
watawatavoltage
0
290
Advanced App Shrinking Techniques
cbeyls
2
150
CSC307 Lecture 07
javiergs
PRO
0
220
20240706_CDKConf
takuyay0ne
0
1.2k
CSC307 Lecture 11
javiergs
PRO
0
240
CSC307 Lecture 13
javiergs
PRO
0
150
Featured
See All Featured
Side Projects
sachag
451
42k
Building Applications with DynamoDB
mza
89
5.8k
Imperfection Machines: The Place of Print at Facebook
scottboms
262
13k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
129
32k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
13
430
Atom: Resistance is Futile
akmur
261
25k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
18
1.2k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
78
15k
Gamification - CAS2011
davidbonilla
78
4.9k
Done Done
chrislema
179
15k
Being A Developer After 40
akosma
72
580k
In The Pink: A Labor of Love
frogandcode
139
22k
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