Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not handle negative values #2

Open
csilvers opened this issue May 30, 2021 · 0 comments
Open

Does not handle negative values #2

csilvers opened this issue May 30, 2021 · 0 comments

Comments

@csilvers
Copy link

csilvers commented May 30, 2021

Due to solar, my instantaneous usage is negative. But:

>>> api.get_instantaneous_demand().reading
4294960.749

The solution is to use:

    ctypes.c_int(self.demand).value

when calculating reading. Probably this is true for some of the other API calls too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant