TapoP100 icon indicating copy to clipboard operation
TapoP100 copied to clipboard

How do I set it up..?

Open ShakerGryphon30 opened this issue 1 year ago • 1 comments

Hello all, this isn't really a problem, but I am having trouble will setting this up. I ssh'ed into the pi and pasted the command line to install everything, and that worked perfectly. Now I don't know what to do to get this working. after that I don't know what to do. I paste it into putty and it says that syntax error near unexpected token (' and syntax error near unexpected token p110.getEnergyData'. I have no idea whether im supposed to paste it in a config file on mainsail, or if im supposed to create a file through terminal and paste it in there. Any help would be greatly appreciated.

Cheers

`from PyP100 import PyP110

110 = PyP110.P110("myip", “myemail”, "mypassword")

#The P110 has all the same basic functions as the plugs and additionally allow for energy monitoring. p110.getEnergyUsage() # Returns dict with all of the energy usage of the connected plug p110.getEnergyData(1706825847, 1708643847, MeasureInterval.DAYS) # Returns power consumption per day since 1st Feb 24`

ShakerGryphon30 avatar Jul 22 '24 09:07 ShakerGryphon30

paste it in a file like "hello.py"

then run the py file with python3 hello.py

solipsist01 avatar Sep 06 '24 07:09 solipsist01