Slide 1

Slide 1 text

Python +α Sora Arakawa (arkw) 2022/03/01 LT@ CAMP

Slide 2

Slide 2 text

Sora Arakawa arkw • B2 →B3 • etc… • → • Android 940 • Alexa 915 • … • https://arkw.net/

Slide 3

Slide 3 text

• • Windows GitHub arkwnet/LTTimer

Slide 4

Slide 4 text

IoT

Slide 5

Slide 5 text

Internet of Things

Slide 6

Slide 6 text

IoT Internet of Things • https://aws.amazon.com/jp/iot/what-is-the-internet-of-things/

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

• TP-Link Tapo P105 1000 1500W 1

Slide 9

Slide 9 text

• TP-Link Tapo

Slide 10

Slide 10 text

• N W OK NG N W

Slide 11

Slide 11 text

!

Slide 12

Slide 12 text

• • 20% ON 80% OFF

Slide 13

Slide 13 text

• Tapo P100 PyP100 https://github.com/fishbigger/TapoP100

Slide 14

Slide 14 text

Python

Slide 15

Slide 15 text

Python

Slide 16

Slide 16 text

• Python • pip3 install PyP100

Slide 17

Slide 17 text

from PyP100 import PyP100 p105 = PyP100.P100("192.168.X.X", "[email protected]", "password") p105.handshake() p105.login() p105.turnOn()

Slide 18

Slide 18 text

from PyP100 import PyP100 p105 = PyP100.P100("192.168.X.X", "[email protected]", "password") p105.handshake() p105.login() p105.turnOn() # IP TP-Link ID

Slide 19

Slide 19 text

• → →IP

Slide 20

Slide 20 text

• IP

Slide 21

Slide 21 text

from PyP100 import PyP100 p105 = PyP100.P100("192.168.X.X", "[email protected]", "password") p105.handshake() p105.login() p105.turnOff()

Slide 22

Slide 22 text

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)

Slide 23

Slide 23 text

print(setup_args)

Slide 24

Slide 24 text

print(setup_args['result']['device_on'])

Slide 25

Slide 25 text

• 5 API •

Slide 26

Slide 26 text

GUI

Slide 27

Slide 27 text

Python

Slide 28

Slide 28 text

C#

Slide 29

Slide 29 text

(Python) GUI (C#)

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

(Linux+Python) Android (Java) 20% ON 80% OFF •

Slide 33

Slide 33 text

• IoT • • TP-Link Python • IP

Slide 34

Slide 34 text

• GitHub https://github.com/arkwnet/tapo-p105

Slide 35

Slide 35 text

No content