Skip to content

Conversation

gtfierro
Copy link
Contributor

Hooks in to the new /aggregate endpoint. Currently server is hardcoded for aggregates to the day, but it should handle summing meters properly per site so the output table is characterized by (site, day)

from power import CampusPower, day_range
ucb = CampusPower('https://campus-export.xbos.io')
v = ucb.view(building, 'Building_Power_Demand_Sensor')
v.aggregate(day_range('2020-01-01', '2020-12-31'))

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

Successfully merging this pull request may close these issues.

1 participant