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.5k
Python(+α)でスマートプラグを制御してみた
サポーターズ学生ライトニングトーク ~2022春の始まり編~
Sora Arakawa
March 01, 2022
Tweet
Share
More Decks by Sora Arakawa
See All by Sora Arakawa
非root化Androidスマホでも動く仮想マシンアプリを試してみた
arkw
0
180
技術島の指定ツール「LaTeX」で同人誌を作ろう
arkw
2
160
ポスト・パソコン時代のジャンク遊び スマートデバイス編
arkw
0
120
ジャンカーよ、車も買え ~10分でわかる!? 中古車選び入門~
arkw
1
110
arkw vs. サーバ移転 -2024年1月版-
arkw
0
290
なれる! 村上さん Misskeyサーバ構築入門
arkw
0
520
Cloudflare Tunnelで自宅サーバを公開してみた
arkw
0
1.5k
5分でわかる!? 7セグメントLED制御
arkw
0
72
ヤフオクで原付買った話
arkw
0
220
Other Decks in Programming
See All in Programming
KotlinConf 2025 現地で感じたServer-Side Kotlin
n_takehata
1
200
Cline指示通りに動かない? AI小説エージェントで学ぶ指示書の書き方と自動アップデートの仕組み
kamomeashizawa
1
450
Passkeys for Java Developers
ynojima
3
850
AIエージェントによるテストフレームワーク Arbigent
takahirom
0
370
FormFlow - Build Stunning Multistep Forms
yceruto
1
160
A comprehensive view of refactoring
marabesi
0
120
iOSアプリ開発で 関数型プログラミングを実現する The Composable Architectureの紹介
yimajo
2
210
Bytecode Manipulation 으로 생산성 높이기
bigstark
1
290
Go Modules: From Basics to Beyond / Go Modulesの基本とその先へ
kuro_kurorrr
0
110
Perlで痩せる
yuukis
1
680
ReadMoreTextView
fornewid
1
360
Benchmark
sysong
0
140
Featured
See All Featured
Writing Fast Ruby
sferik
628
61k
Thoughts on Productivity
jonyablonski
69
4.7k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.2k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
30
5.8k
Why You Should Never Use an ORM
jnunemaker
PRO
56
9.4k
Fireside Chat
paigeccino
37
3.5k
4 Signs Your Business is Dying
shpigford
184
22k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Building Adaptive Systems
keathley
43
2.6k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
2.8k
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