Skip to content

Instantly share code, notes, and snippets.

@bonnieking
Last active December 17, 2015 05:49
Show Gist options
  • Save bonnieking/5560947 to your computer and use it in GitHub Desktop.
Save bonnieking/5560947 to your computer and use it in GitHub Desktop.
wattsused = {}
whused = {}
for history in sensorhistories.sensorhistories:
wattsused[history.sensornum] = history.avgwattover5min()
whused[history.sensornum] = history.dayswatthr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment