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
技術島の指定ツール「LaTeX」で同人誌を作ろう
arkw
2
85
ポスト・パソコン時代のジャンク遊び スマートデバイス編
arkw
0
68
ジャンカーよ、車も買え ~10分でわかる!? 中古車選び入門~
arkw
1
75
arkw vs. サーバ移転 -2024年1月版-
arkw
0
240
なれる! 村上さん Misskeyサーバ構築入門
arkw
0
440
Cloudflare Tunnelで自宅サーバを公開してみた
arkw
0
1.3k
5分でわかる!? 7セグメントLED制御
arkw
0
61
ヤフオクで原付買った話
arkw
0
180
パソコンの消費電力と省エネ化のおはなし
arkw
0
280
Other Decks in Programming
See All in Programming
仕様変更に耐えるための"今の"DRY原則を考える
mkmk884
9
3.2k
Flutter × Firebase Genkit で加速する生成 AI アプリ開発
coborinai
0
170
Djangoアプリケーション 運用のリアル 〜問題発生から可視化、最適化への道〜 #pyconshizu
kashewnuts
1
260
Introduction to kotlinx.rpc
arawn
0
760
一休.com のログイン体験を支える技術 〜Web Components x Vue.js 活用事例と最適化について〜
atsumim
0
950
GoとPHPのインターフェイスの違い
shimabox
2
210
ソフトウェアエンジニアの成長
masuda220
PRO
12
2.1k
データの整合性を保つ非同期処理アーキテクチャパターン / Async Architecture Patterns
mokuo
54
19k
Rails 1.0 のコードで学ぶ find_by* と method_missing の仕組み / Learn how find_by_* and method_missing work in Rails 1.0 code
maimux2x
1
200
CDK開発におけるコーディング規約の運用
yamanashi_ren01
2
250
CSS Linter による Baseline サポートの仕組み
ryo_manba
1
150
1年目の私に伝えたい!テストコードを怖がらなくなるためのヒント/Tips for not being afraid of test code
push_gawa
1
560
Featured
See All Featured
Done Done
chrislema
182
16k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
46
2.3k
4 Signs Your Business is Dying
shpigford
182
22k
Optimizing for Happiness
mojombo
376
70k
Building Adaptive Systems
keathley
40
2.4k
Why Our Code Smells
bkeepers
PRO
336
57k
Code Reviewing Like a Champion
maltzj
521
39k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Gamification - CAS2011
davidbonilla
80
5.2k
Typedesign – Prime Four
hannesfritz
40
2.5k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
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