You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
#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`
The text was updated successfully, but these errors were encountered:
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`
The text was updated successfully, but these errors were encountered: