This commit is contained in:
parent
a781083e20
commit
0ff662a8b5
13 changed files with 1534 additions and 0 deletions
21
python/currentcostdatastore.py
Normal file
21
python/currentcostdatastore.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Stores your CurrentCost data
|
||||
#
|
||||
# Okay, so this doesn't really store data.
|
||||
#
|
||||
# These are really just stubs, replace them functions which store the data
|
||||
# the way you like
|
||||
# I'm a big fan of pysqlite, but you can use anything you like.
|
||||
#
|
||||
# Dale Lane (http://dalelane.co.uk/blog)
|
||||
#
|
||||
|
||||
class CurrentCostDataStore():
|
||||
|
||||
def StoreHourData (self, updatetimestamp, ccvalue):
|
||||
print "2-HOUR :: " + str(updatetimestamp) + " = " + str(ccvalue) + "kWh"
|
||||
|
||||
def StoreDayData (self, updatetimestamp, ccvalue):
|
||||
print "DAY :: " + str(updatetimestamp) + " = " + str(ccvalue) + "kWh"
|
||||
|
||||
def StoreMonthData (self, updatetimestamp, ccvalue):
|
||||
print "MONTH :: " + str(updatetimestamp) + " = " + str(ccvalue) + "kWh"
|
Loading…
Add table
Add a link
Reference in a new issue