Steve0320 / Emu-Api

Library for interfacing with an EMU-2 device using Python 3
MIT License
4 stars 3 forks source link

Reference code #1

Open gose opened 3 years ago

gose commented 3 years ago

I was trying to read my EMU-2 and found your repository. Unfortunately, I'm getting the following error:

Traceback (most recent call last):
  File "test.py", line 2, in <module>
    from emu_power.response_entities import InstantaneousUsage
ImportError: cannot import name 'InstantaneousUsage' from 'emu_power.response_entities' (/home/ubuntu/.local/lib/python3.8/site-packages/emu_power/response_entities.py)

For others who might find this repo, there is a working code sample here:

https://github.com/smakonin/RAEdataset/blob/master/EMU2_reader.py

csilvers commented 3 years ago

It looks like the docs are wrong, and it should be InstantaneousDemand, not InstantaneousUsage.