Upgrade to PRO for Only $50/Year—Limited-Time Offer! 🔥
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Python(+α)でスマートプラグを制御してみた
Search
Sora Arakawa
March 01, 2022
Programming
0
1.6k
Python(+α)でスマートプラグを制御してみた
サポーターズ学生ライトニングトーク ~2022春の始まり編~
Sora Arakawa
March 01, 2022
Tweet
Share
More Decks by Sora Arakawa
See All by Sora Arakawa
令和最新版Android Studioで化石デバイス向けアプリを作る
arkw
0
110
お前も同人作家にならないか? 技術系同人誌制作入門
arkw
2
15
非root化Androidスマホでも動く仮想マシンアプリを試してみた
arkw
0
830
技術島の指定ツール「LaTeX」で同人誌を作ろう
arkw
2
300
ポスト・パソコン時代のジャンク遊び スマートデバイス編
arkw
0
160
ジャンカーよ、車も買え ~10分でわかる!? 中古車選び入門~
arkw
1
160
arkw vs. サーバ移転 -2024年1月版-
arkw
0
320
なれる! 村上さん Misskeyサーバ構築入門
arkw
0
610
Cloudflare Tunnelで自宅サーバを公開してみた
arkw
0
1.7k
Other Decks in Programming
See All in Programming
全員アーキテクトで挑む、 巨大で高密度なドメインの紐解き方
agatan
8
18k
『実践MLOps』から学ぶ DevOps for ML
nsakki55
2
550
WebRTC と Rust と8K 60fps
tnoho
2
1.9k
WebRTC、 綺麗に見るか滑らかに見るか
sublimer
1
140
AWS CDKの推しポイントN選
akihisaikeda
1
240
Media Capture and Streams: W3C仕様と現場での知見
nowaki28
0
130
認証・認可の基本を学ぼう前編
kouyuume
0
150
DSPy Meetup Tokyo #1 - はじめてのDSPy
masahiro_nishimi
1
150
AIコーディングエージェント(skywork)
kondai24
0
110
CSC509 Lecture 14
javiergs
PRO
0
220
Socio-Technical Evolution: Growing an Architecture and Its Organization for Fast Flow
cer
PRO
0
260
目的で駆動する、AI時代のアーキテクチャ設計 / purpose-driven-architecture
minodriven
11
3.9k
Featured
See All Featured
Docker and Python
trallard
46
3.7k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
The Invisible Side of Design
smashingmag
302
51k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
54k
Designing Experiences People Love
moore
142
24k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
GraphQLの誤解/rethinking-graphql
sonatard
73
11k
Building an army of robots
kneath
306
46k
The Power of CSS Pseudo Elements
geoffreycrofte
80
6.1k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
31
2.7k
Stop Working from a Prison Cell
hatefulcrawdad
273
21k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3k
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