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.7k
Python(+α)でスマートプラグを制御してみた
サポーターズ学生ライトニングトーク ~2022春の始まり編~
Sora Arakawa
March 01, 2022
Tweet
Share
More Decks by Sora Arakawa
See All by Sora Arakawa
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
580
お前も同人作家にならないか? 技術系同人誌制作入門
arkw
3
60
非root化Androidスマホでも動く仮想マシンアプリを試してみた
arkw
0
1.1k
技術島の指定ツール「LaTeX」で同人誌を作ろう
arkw
2
370
ポスト・パソコン時代のジャンク遊び スマートデバイス編
arkw
0
190
ジャンカーよ、車も買え ~10分でわかる!? 中古車選び入門~
arkw
2
200
arkw vs. サーバ移転 -2024年1月版-
arkw
0
350
なれる! 村上さん Misskeyサーバ構築入門
arkw
0
650
Cloudflare Tunnelで自宅サーバを公開してみた
arkw
0
1.9k
Other Decks in Programming
See All in Programming
Claude Code の Skill で複雑な既存仕様をすっきり整理しよう
yuichirokato
1
360
AI時代のシステム設計:ドメインモデルで変更しやすさを守る設計戦略
masuda220
PRO
4
640
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
500
TipKitTips
ktcryomm
0
160
AI活用のコスパを最大化する方法
ochtum
0
130
maplibre-gl-layers - 地図に移動体たくさん表示したい
kekyo
PRO
0
240
「やめとこ」がなくなった — 1月にZennを始めて22本書いた AI共創開発のリアル
atani14
0
370
TROCCOで実現するkintone+BigQueryによるオペレーション改善
ssxota
0
170
CSC307 Lecture 14
javiergs
PRO
0
470
今更考える「単一責任原則」 / Thinking about the Single Responsibility Principle
tooppoo
3
1.6k
Railsの気持ちを考えながらコントローラとビューを整頓する/tidying-rails-controllers-and-views-as-rails-think
moro
5
390
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
480
Featured
See All Featured
The Cost Of JavaScript in 2023
addyosmani
55
9.8k
エンジニアに許された特別な時間の終わり
watany
106
240k
Skip the Path - Find Your Career Trail
mkilby
1
75
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
460
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
200
Odyssey Design
rkendrick25
PRO
2
540
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
150
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
5
760
Technical Leadership for Architectural Decision Making
baasie
3
280
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
630
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
470
How to Talk to Developers About Accessibility
jct
2
150
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