Closed Blackcell closed 5 years ago
What's your code look like?
The ideal way to run it would be:
from sense_energy import Senseable
or
import sense_energy
Just trying to tinker with it I ran sense_api.py. I haven't imported it into any code yet.
Ah running it directly probably won't work. Maybe we can include some test files
The example usage on the README probably needs to be updated as well. I'm writing something to import it(success) and attempting to figure out how to instantiate it. This is just a python growing pain, though.
Edit: I got it. If you guys want, I can help update the documentation? Just let me know, @kbickar.
Sure submit a PR.
FYI, here's a small test I've used:
from sense_energy import Senseable
username = "user"
password = "pass"
sense = Senseable(wss_timeout=2)
sense.authenticate(username, password)
sense.get_realtime()
print ("Active:",sense.active_power,"W")
I'm relatively new to Python. I've only written a small py to read temp from a sensor I built on a Raspberry Pi.
I want to explore your Sense API because it looks promising. I am running into this issue.
I am confident this is nothing to do with the code, but my environment setup and config. I wanted to document as an issue here for any behind me to find assistance if experiencing the same issue.
I'm running Windows 10, Python 3.7.2 and pip 19.0.2.
Thanks.