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.2k
Python(+α)でスマートプラグを制御してみた
サポーターズ学生ライトニングトーク ~2022春の始まり編~
Sora Arakawa
March 01, 2022
Tweet
Share
More Decks by Sora Arakawa
See All by Sora Arakawa
ジャンカーよ、車も買え ~10分でわかる!? 中古車選び入門~
arkw
1
22
arkw vs. サーバ移転 -2024年1月版-
arkw
0
150
なれる! 村上さん Misskeyサーバ構築入門
arkw
0
350
Cloudflare Tunnelで自宅サーバを公開してみた
arkw
0
1.1k
5分でわかる!? 7セグメントLED制御
arkw
0
55
ヤフオクで原付買った話
arkw
0
170
パソコンの消費電力と省エネ化のおはなし
arkw
0
270
"成果物"を作ろう(提案)
arkw
0
240
学情絶叫ウェブシステムGX
arkw
0
120
Other Decks in Programming
See All in Programming
はじめてみよう量子プログラミング
itokoichi01
0
280
ROS 2のZenoh対応とZenohのROS 2対応
takasehideki
2
220
色んなオートローダーを覗き見る #phpcon_okinawa
o0h
PRO
5
350
M5Stackボードの選び方
tanakamasayuki
0
200
個人開発のおいしさと続け方
3l4l5
1
240
API Platform for Laravel
dunglas
1
1.2k
Beyond the RuboCop Defaults
koic
2
460
"noncopyable types" の使いどころについて考えてみた
andpad
0
110
実践Dash - 手を抜きながら本気で作るデータApplicationの基本と応用 / Dash for Python and Baseball
shinyorke
2
210
pytest プラグインを開発して DRY に自動テストを書こう
inuatsu
2
220
ECS向けのドリフト検知機構を実装してみた
tkikuc
0
250
CSC305 Lecture 01
javiergs
PRO
1
140
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
408
22k
Speed Design
sergeychernyshev
22
460
StorybookのUI Testing Handbookを読んだ
zakiyama
26
5.1k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
503
140k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
Rails Girls Zürich Keynote
gr2m
93
13k
Reflections from 52 weeks, 52 projects
jeffersonlam
346
20k
Ruby is Unlike a Banana
tanoku
96
11k
Happy Clients
brianwarren
96
6.6k
The Straight Up "How To Draw Better" Workshop
denniskardys
231
130k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
109
6.9k
Build The Right Thing And Hit Your Dates
maggiecrowley
30
2.3k
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