Skip to content

Instantly share code, notes, and snippets.

@bonnieking
Last active December 17, 2015 05:49

Revisions

  1. bonnieking revised this gist May 11, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    wattsused = 0
    whused = 0
    kwhused = 0


    for history in sensorhistories.sensorhistories:
  2. bonnieking revised this gist May 11, 2013. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    whused = 0
    kwhused = 0


    for history in sensorhistories.sensorhistories:
    wattsused += history.avgwattover5min()
    whused += history.dayswatthr
  3. bonnieking created this gist May 11, 2013.
    3 changes: 3 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    for history in sensorhistories.sensorhistories:
    wattsused += history.avgwattover5min()
    whused += history.dayswatthr