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.6k
Python(+α)でスマートプラグを制御してみた
サポーターズ学生ライトニングトーク ~2022春の始まり編~
Sora Arakawa
March 01, 2022
Tweet
Share
More Decks by Sora Arakawa
See All by Sora Arakawa
非root化Androidスマホでも動く仮想マシンアプリを試してみた
arkw
0
630
技術島の指定ツール「LaTeX」で同人誌を作ろう
arkw
2
240
ポスト・パソコン時代のジャンク遊び スマートデバイス編
arkw
0
150
ジャンカーよ、車も買え ~10分でわかる!? 中古車選び入門~
arkw
1
150
arkw vs. サーバ移転 -2024年1月版-
arkw
0
310
なれる! 村上さん Misskeyサーバ構築入門
arkw
0
580
Cloudflare Tunnelで自宅サーバを公開してみた
arkw
0
1.6k
5分でわかる!? 7セグメントLED制御
arkw
0
77
ヤフオクで原付買った話
arkw
0
230
Other Decks in Programming
See All in Programming
複雑化したリポジトリをなんとかした話 pipenvからuvによるモノレポ構成への移行
satoshi256kbyte
1
770
Чего вы не знали о строках в Python – Василий Рябов, PythoNN
sobolevn
0
160
CSC509 Lecture 05
javiergs
PRO
0
290
Go Conference 2025: Goで体感するMultipath TCP ― Go 1.24 時代の MPTCP Listener を理解する
takehaya
7
1.6k
大規模アプリのDIフレームワーク刷新戦略 ~過去最大規模の並行開発を止めずにアプリ全体に導入するまで~
mot_techtalk
0
380
『毎日の移動』を支えるGoバックエンド内製開発
yutautsugi
2
180
CSC509 Lecture 01
javiergs
PRO
1
430
LLMとPlaywright/reg-suitを活用した jQueryリファクタリングの実際
kinocoboy2
4
670
overlayPreferenceValue で実現する ピュア SwiftUI な AdMob ネイティブ広告
uhucream
0
110
開発者への寄付をアプリ内課金として実装する時の気の使いどころ
ski
0
350
Breaking Up with Big ViewModels — Without Breaking Your Architecture (droidcon Berlin 2025)
steliosf
PRO
1
330
そのpreloadは必要?見過ごされたpreloadが技術的負債として爆発した日
mugitti9
2
3k
Featured
See All Featured
Making Projects Easy
brettharned
119
6.4k
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.9k
Why Our Code Smells
bkeepers
PRO
339
57k
Side Projects
sachag
455
43k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
850
Agile that works and the tools we love
rasmusluckow
331
21k
Statistics for Hackers
jakevdp
799
220k
The Straight Up "How To Draw Better" Workshop
denniskardys
237
140k
Speed Design
sergeychernyshev
32
1.1k
Designing for humans not robots
tammielis
254
25k
How to Think Like a Performance Engineer
csswizardry
27
2k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
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