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
ドメイン駆動設計とXPで支える子どもの未来 / Domain-Driven Design and XP Supporting Children's Future
nrslib
0
170
Optimizing JRuby 10
headius
0
590
LRパーサーはいいぞ
ydah
7
1.3k
AWS Summit Hong Kong 2025: Reinventing Programming - How AI Transforms Our Enterprise Coding Approach
dwchiang
0
140
生成AI時代のフルスタック開発
kenn
3
380
Contribute to Comunities | React Tokyo Meetup #4 LT
sasagar
0
600
Laravel × Clean Architecture
bumptakayuki
PRO
0
150
Rubyの!メソッドをちゃんと理解する
alstrocrack
1
280
はじめてのPDFKit.pdf
shomakato
0
100
実践Webフロントパフォーマンスチューニング
cp20
45
10k
MySQL初心者が311個のカラムにNot NULL制約を追加していってALTER TABLEについて学んだ話
hatsu38
2
120
データと事例で振り返るDevin導入の"リアル" / The Realities of Devin Reflected in Data and Case Studies
rkaga
1
980
Featured
See All Featured
Music & Morning Musume
bryan
47
6.5k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
120
52k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.6k
Facilitating Awesome Meetings
lara
54
6.3k
Why You Should Never Use an ORM
jnunemaker
PRO
56
9.4k
Producing Creativity
orderedlist
PRO
344
40k
Fantastic passwords and where to find them - at NoRuKo
philnash
51
3.2k
For a Future-Friendly Web
brad_frost
177
9.7k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
14
1.5k
How STYLIGHT went responsive
nonsquared
100
5.5k
Reflections from 52 weeks, 52 projects
jeffersonlam
349
20k
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