Skip to content

How do I set it up..? #31

Description

@ShakerGryphon30

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`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions