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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Sora Arakawa
March 01, 2022
Programming
1.7k
0
Share
Python(+α)でスマートプラグを制御してみた
サポーターズ学生ライトニングトーク ~2022春の始まり編~
Sora Arakawa
March 01, 2022
More Decks by Sora Arakawa
See All by Sora Arakawa
今からFlash開発できるわけないじゃん、ムリムリ! (※ムリじゃなかった!?)
arkw
0
200
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
650
お前も同人作家にならないか? 技術系同人誌制作入門
arkw
3
81
非root化Androidスマホでも動く仮想マシンアプリを試してみた
arkw
0
1.2k
技術島の指定ツール「LaTeX」で同人誌を作ろう
arkw
2
420
ポスト・パソコン時代のジャンク遊び スマートデバイス編
arkw
0
210
ジャンカーよ、車も買え ~10分でわかる!? 中古車選び入門~
arkw
2
210
arkw vs. サーバ移転 -2024年1月版-
arkw
0
370
なれる! 村上さん Misskeyサーバ構築入門
arkw
0
680
Other Decks in Programming
See All in Programming
CursorとClaudeCodeとCodexとOpenCodeを実際に比較してみた
terisuke
1
520
エラー処理の温故知新 / history of error handling technic
ryotanakaya
7
1.8k
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
1
190
How Swift's Type System Guides AI Agents
koher
0
330
過去のレビュー知見をSkillsで資産化した話
pkshadeck
PRO
0
300
【26新卒研修資料】TDD実装演習
dip_tech
PRO
0
160
PHPでローカル環境用のSSL/TLS証明書を発行することはできるのか? #phpconkagawa
akase244
0
310
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
730
The Less-Told Story of Socket Timeouts
coe401_
3
930
Surviving Black Friday: 329 billion requests with Falcon!
ioquatix
0
2.6k
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
when storing skills in S3 file
watany
2
440
Featured
See All Featured
Designing for humans not robots
tammielis
254
26k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.5k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
330
Statistics for Hackers
jakevdp
799
230k
Ruling the World: When Life Gets Gamed
codingconduct
0
220
Making Projects Easy
brettharned
120
6.6k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
1k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
290
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.2k
BBQ
matthewcrist
89
10k
Utilizing Notion as your number one productivity tool
mfonobong
4
300
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