A couple of CC128 Energy Monitor graph/table definitions
Posted: Thu Apr 01, 2010 5:40 pm
People with a Cost Control CC128 Energy Monitor might be interested in a couple of definitions that I've been using.
Meteoplug records CC128 data as watt values. Both definitions combine use of average watts across a certain 'time bucket' with a factor to convert the value into an equivalent kWh figure, e.g. (average watts over an hour) * 0.001 gives the kWh for the hour, and (average watts over a day) * 0.024 gives the kWh for the day.
The first definition is an Interactive chart showing the kWh usage for each hour across a week (with default zoom view of a single day).
The second definition produces a table showing the overall daily kWh usage for each of the last 7 days. N.B. The table makes used of the daily average value, so the figures for "today" is only an estimate of the whole day's usage based on the day so far.
Meteoplug records CC128 data as watt values. Both definitions combine use of average watts across a certain 'time bucket' with a factor to convert the value into an equivalent kWh figure, e.g. (average watts over an hour) * 0.001 gives the kWh for the hour, and (average watts over a day) * 0.024 gives the kWh for the day.
The first definition is an Interactive chart showing the kWh usage for each hour across a week (with default zoom view of a single day).
The second definition produces a table showing the overall daily kWh usage for each of the last 7 days. N.B. The table makes used of the daily average value, so the figures for "today" is only an estimate of the whole day's usage based on the day so far.
Code: Select all
timeframe=168H # 1 week as hours
res=hour1
zoom=1D # select actual day
gtitle=Electricity # name of graph
gheight=400 # height in pixels of graph
gwidth=550 # width in pixels of graph
glunit=kWh # unit of left y-axis
gtype=bar # type of graph
gtrim=0
sid0=data16 sname0=Stg ssel0=val sfactor0=0.001 scolor0=FF0000
sid1=data18 sname1=24Hr ssel1=val sfactor1=0.001 scolor1=009900
sid2=data17 sname2=Water ssel2=val sfactor2=0.001 scolor2=0000FF
sid3=data11 sname3=Dom ssel3=val sfactor3=0.001 scolor3=9900FF
Code: Select all
timeframe=7D
res=day1
zoom=7D
gtitle=Electricity # name of graph
gheight=400 # height in pixels of graph
gwidth=550 # width in pixels of graph
gtype=table # type of graph
glunit=Date
grunit=%F
gtrim=0
gtablestyle=style="border:1px_#000000_solid"
gtdheadstyle=style="border:1px_#000000_solid"
gtdstyle=style="border:1px_#000000_solid"
sid0=data16 sname0=Stg ssel0=val sfactor0=0.024 scolor0=FF0000
sid1=data17 sname1=Water ssel1=val sfactor1=0.024 scolor1=0000FF
sid2=data18 sname2=24Hr ssel2=val sfactor2=0.024 scolor2=009900
sid3=data11 sname3=Dom ssel3=val sfactor3=0.024 scolor3=9900FF