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
1.8k
0
Share
Python(+α)でスマートプラグを制御してみた
サポーターズ学生ライトニングトーク ~2022春の始まり編~
Sora Arakawa
March 01, 2022
More Decks by Sora Arakawa
See All by Sora Arakawa
OSもどきOS
arkw
0
400
オープンソース電車運転ゲーム「もっと! 地下鉄 大名古屋」の紹介
arkw
0
21
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
250
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
680
お前も同人作家にならないか? 技術系同人誌制作入門
arkw
3
91
非root化Androidスマホでも動く仮想マシンアプリを試してみた
arkw
0
1.3k
技術島の指定ツール「LaTeX」で同人誌を作ろう
arkw
2
430
ポスト・パソコン時代のジャンク遊び スマートデバイス編
arkw
0
230
ジャンカーよ、車も買え ~10分でわかる!? 中古車選び入門~
arkw
2
220
Other Decks in Programming
See All in Programming
[2026年度第1回ORセミナー] 計画最適化ベンチャーと競技プログラミング人材
terryu16
0
240
Inside Stream API
skrb
1
620
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
3
750
Make SRE Operations Easier with Azure SRE Agent
kkamegawa
0
3.3k
DynamoDBには集計系のクエリがないけどなんとかしたい
musan
1
130
JavaDoc 再入門
nagise
0
260
Technical Debt: Understanding it Rightly, Engaging it Rightly #LaravelLiveJP
shogogg
0
190
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
12k
運用エージェントは "作る" から "育てる" へ - 記憶と自己進化の3層設計パターン / self-evolving-agents-three-layer-agent-design
gawa
12
3.4k
権限チェックの一貫性を型で守る TypeScript による多層防御
mnch
4
1.1k
GitHub Copilot CLIのいいところ
htkym
2
1.2k
The NotImplementedError Problem in Ruby
koic
0
290
Featured
See All Featured
Facilitating Awesome Meetings
lara
57
6.9k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
250
Skip the Path - Find Your Career Trail
mkilby
1
140
Claude Code のすすめ
schroneko
67
220k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.8k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.8k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.9k
So, you think you're a good person
axbom
PRO
2
2k
Navigating Weather and Climate Data
rabernat
0
210
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
200
Making the Leap to Tech Lead
cromwellryan
135
9.9k
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