Skip to content

more code help needed. #96

@jacksnodgrass

Description

@jacksnodgrass

I want to minimize my access to the EmporiaVue mothership. I have 16 or circuits that I monitor with my EmporiaVue but for most of my API stuff, I only care about:
Main 1,2,3 - Net Usage
and
one of my circuits that I call Solar Battery.
I don't care about the other 15 circuits I monitor.

I do:

now = datetime.datetime.now(datetime.timezone(datetime.timedelta(hours=-5))) # This is my timezone, yours may vary
usageDict = vue.get_device_list_usage(device_gids, now, Scale.SECOND.value, Unit.KWH.value)
for (gid, usageDevice) in usageDict.items():
    for (channelNum, usageChannel) in usageDevice.channels.items():
        process the data and print out the results. 

and that gets data for ALL of my 16 circuits. Is there a way to JUST get data for 2 things?
Main (a.k.a. Net Usage)
Solar Battery
in order to get less data from the API.

or should I not worry about the extra data?

I want to pull this data ( Main and Solar Battery ) every couple of minutes. I have stuff that I need to turn on and off based on the values from Main and Solar Battery.

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