A couple of CC128 Energy Monitor graph/table definitions

Discussion about generation of graphs and tables
Post Reply
skyewright
Posts: 69
Joined: Tue Mar 16, 2010 12:05 pm
Location: Isle of Skye
Contact:

A couple of CC128 Energy Monitor graph/table definitions

Post by skyewright » 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.

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
David

oliverb
Posts: 38
Joined: Wed Mar 31, 2010 8:38 am
Location: Kenley Surey UK
Contact:

Re: A couple of CC128 Energy Monitor graph/table definitions

Post by oliverb » Thu Apr 01, 2010 6:20 pm

Thanks for the charts. They work great. I have used sensors data0 and data1.

What current cost set up do you have? Do you have individual appliance sensors or clamp meter type or maybe something else?
Brett.

skyewright
Posts: 69
Joined: Tue Mar 16, 2010 12:05 pm
Location: Isle of Skye
Contact:

Re: A couple of CC128 Energy Monitor graph/table definitions

Post by skyewright » Fri Apr 02, 2010 10:05 am

oliverb wrote:What current cost set up do you have? Do you have individual appliance sensors or clamp meter type or maybe something else?
I have 2 of the 'standard' transmitters, and on each of those I also have 2 extra 12mm clamps plugged in to the other sockets on the transmitters. That works out okay for me as we use the "Total Control" tariff, so at the distribution board I can clip onto domestic, storage, water and "on demand heating" wires. That leaves the two hard wired 27mm clamps effectively spare, so I have those on "all the cheap rate" and "all electricity" wires just for comparison.
David

oliverb
Posts: 38
Joined: Wed Mar 31, 2010 8:38 am
Location: Kenley Surey UK
Contact:

Re: A couple of CC128 Energy Monitor graph/table definitions

Post by oliverb » Sat Apr 03, 2010 5:47 am

I have played around with your graph definitions and knocked up a web page so I can keep an eye on my power from my Blackberry.
My Blackberry does not work with Flash as yet so I set the graph type to GPxxx . I have made a link page with a number of buttons to generate a graph from Meteoplug.
Buttons linked to Meteoplug graph definitions
Buttons linked to Meteoplug graph definitions
Black1.jpg (56.43 KiB) Viewed 14250 times
This shows the advantage of Meteoplug over my Meteohub system where I have to set-up a graph and upload it or rely on access to my Meteohub live via dyndns.
Either way this is a saving in traffic over my slow home connection.
Meteoplug generated graph on my mobile
Meteoplug generated graph on my mobile
Black2.jpg (47.14 KiB) Viewed 14250 times

Thanks again for uploading the definitions I find it so much easier to work from working examples.
Brett.
edit bad spelling

User avatar
admin
Site Admin
Posts: 332
Joined: Sun Feb 07, 2010 9:22 pm

Re: A couple of CC128 Energy Monitor graph/table definitions

Post by admin » Sun Apr 04, 2010 6:20 pm

Thanks for sharing this application example. The graph looks very cool inside a blackberry.

gibsonmb
Posts: 12
Joined: Thu Apr 22, 2010 8:30 pm

Re: A couple of CC128 Energy Monitor graph/table definitions

Post by gibsonmb » Thu Apr 22, 2010 8:37 pm

Guess I must be thick, where do I specify in these examples the sensors that are providing the data, my total cc128 power figure is reported on sensor ID 'data0' for the red phase which supplies most of the house. 'data1' and 'data2' are the blue and yellow phases which ony come into play when I run three phase machines in the workshop. 'data3' is a subset of 'data0' for the office only. For now I'd like to test the graphs just using 'data0' as the sensor?


Got it now.... data 16-18...... change to data0-3 in my case

skyewright
Posts: 69
Joined: Tue Mar 16, 2010 12:05 pm
Location: Isle of Skye
Contact:

Re: A couple of CC128 Energy Monitor graph/table definitions

Post by skyewright » Fri Apr 23, 2010 9:10 am

gibsonmb wrote:Got it now.... data 16-18...... change to data0-3 in my case
Yes, that sounds very likely. My choice of 16-18 as the data numbers is probably a bit idiosyncratic. ;)

The clues are the "s" and "ch" numbers on the Sensors page in Meteoplug. e.g.

Code: Select all

s0:ch1:power	0
refers to Channel 1 on Sensor0.

The terminology may take a bit of getting used to (i.e. what CC call a "Sensor" is what I think of as a "Transmitter" and what CC call a "Channel" is what I think of as a "Sensor"), but that's how CC decided to do it so that's how it is. :)
David

oliverb
Posts: 38
Joined: Wed Mar 31, 2010 8:38 am
Location: Kenley Surey UK
Contact:

Re: A couple of CC128 Energy Monitor graph/table definitions

Post by oliverb » Sat Jun 04, 2011 8:21 pm

I have been playing around with a Current Cost Analogue Development Board £5.00 from ebay http://cgi.ebay.co.uk/Current-Cost-Anal ... 27ba699044 and am attempting to use it via meteohub to record my gas usage.

I now have a working sensor that detects every 0.01cu M of gas. The sensor then pulses the Current Cost Analogue Development Board which outputs direct to my CC128 energy monitor and meteohub.

I will use skyewrights graph definitions to display my gas usage once I have got my head around the conversions.

Note the sensor I use does not inter-fear with the gas meter in anyway and uses the magnetic pulse from the meter to drive a Hall Effect transistor.

If anyone is interested I can post some diagrams of the sensor.

skyewright
Posts: 69
Joined: Tue Mar 16, 2010 12:05 pm
Location: Isle of Skye
Contact:

Re: A couple of CC128 Energy Monitor graph/table definitions

Post by skyewright » Sun Jun 05, 2011 12:36 pm

oliverb wrote:If anyone is interested I can post some diagrams of the sensor.
Sounds good.

I've no use for it myself, but I know someone else who might be interested. He's not a Meteoplug user yet, but maybe this might be enough to whet his appetite? :)
David

Post Reply