With all the blogject/tweetject activity going on with James Taylor, Chris Hodgins, Nick O’Leary and of course Andy-SC, and with Nick’s excellent guide to getting the data and creating custom graphs, I thought it would be good to blog about the actual xml data, and in doing so create a reference article for new people joining the currentcost foray! I do not know what all the data stands for, and this article will get updated as and when I am told/I work it out!
Updated: XML notations have been updated in line with comments to blog post. Thank you to everyone for helping with this!
<msg> <date> <dsb>00030</dsb> // This is the 'days since birth' <hr>00</hr><min>20</min><sec>11</sec> // The Time </date> <src> <name>CC02</name> // The name of the device <id>00077</id> // Communication channel for device <type>1</type> // Hardware version of the device. <sver>1.06</sver> // Software version </src> <ch1> <watts>00168</watts> // Value from the 1st channel clamp </ch1> <ch2> <watts>00000</watts> // Value from the 2nd channel clamp </ch2> <ch3> <watts>00000</watts> // Value from the 3rd channel clamp </ch3> <tmpr>25.6</tmpr> // Current Temperature as recorded by unit <hist> <hrs> // Total Kwh used in 2 hour blocks <h02>000.3</h02> .... <h26>003.1</h26> </hrs> <days> // Total Kwh used per day(s) <d01>0014</d01> .... <d31>0000</d31> </days> <mths> // Total Kwh used per month(s) <m01>0000</m01> .... <m12>0000</m12> </mths> <yrs> // Total Kwh used per year(s) <y1>0000000</y1> .... <y4>0000000</y4> </yrs> </hist> </msg>
Questions that I would like answered.
- Is the data stored in persistent memory? Answered by AndySC. Yes it is flash memory 🙂
- What does DSB stand for? Answered by Nick in comments below and xml above