Skip to content

Does not handle negative values #2

@csilvers

Description

@csilvers

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.

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