Garden Solar Light Logger - Daily Counts.

This page includes gbookFSolarCell.js which stores the Blog using:

<script language="JavaScript" type="text/javascript" 
src="http://ccgi.dougrice.plus.com/gb/gbookFSolarCell.js"
></script>

The blog entries are in gbF() and this page extracts the data. Copy and paste the output into a text file called data.csv.

data.csv can then be opened in a spread sheet ( Excel ) for plotting, possible after being cleansed of duff data.

Here is a plot of the data, with some cleansing. Quite frankly, they are not very good.


// The function below is called once per guestbook entry. 
// You write this function to do what you want!!

// Example of log being looked for
// Only the first block in HEX is wanted.
//
// the single line, shows the next row to be written to, so lines before are valid.:
// 44,*
\ // The postedOn date is the date of the last valid line // // We therefore want to work down the list until we reach this value. // // The blog may also have a similar block in decimal // // The values below are the log of daily times. //
;	MMcntTimeH,MMcntSolarCellH,MMcntBrightH,MMcntDimH,MMcntVbattH
; Every day the counts are stored and backed up, in the order:
;	MMcntTimeH,MMcntSolarCellH,MMcntBrightH,MMcntDimH,MMcntVbattH
;
44,*
08,,5460,2FC2,FF00,0000,0380,*
12,,5460,303D,0000,0000,0000,*
1C,,5460,2502,0000,0000,246B,*
26,,5460,2720,0042,0059,1D0C,*
30,,5460,2309,02C2,01D3,1545,*
3A,,5460,315B,0000,0000,0000,*
44,,5460,2AEB,0000,0000,195F,*
4E,,5460,2DD9,0000,0000,0400,*
58,,5460,2752,0000,0000,0E2D,*
62,,5460,22E6,00D7,00FF,0EE1,*
6C,,5460,2737,0009,0013,0FF5,,*
*
*
,,Date,MMcntTimeH,MMcntSolarCellH,MMcntBrightH,MMcntDimH,MMcntVbattH,pointer,,MMcntTimeH,MMcntSolarCellH,MMcntBrightH,MMcntDimH,MMcntVbattH,*,\n


Using FLOT

FLOT @ http://code.google.com/p/flot/

Graphs plotted using pnggraph.php

pnggraph.php details

pnggraph.php takes the values passed in the query string and plots the graphs.
The following is all on one line.

http://ccgi.dougrice.plus.com/pnggraph.php?
  key=V1,V2,V3,V4&
  title=title&
  xScale=small+text&
  yScale=small+text&
  xLabel=LabelText&
  yLabel=LabelText&
  yValues=1.3,2,3,4,5&
  yValues1=1.4,2,3,4,5&
  yValues2=0.5,2,3,4,5&
  yValues3=4.5,2,3,4,5&
  yValues4=1,2,3,4,5&
  yValues6=1,2,3,4,5&
 
There is a limit to the amount of data allowed by the max length of the query string.
http://ccgi.dougrice.plus.com/pnggraph.php? key=yValues,yValues1,yValues2,yValues3,yValues4,yValues5& title=title& xScale=small+text& yScale=small+text& xLabel=LabelText& yLabel=LabelText& yValues=1.3,2,1,1.2,4.5& yValues1=1.4,3.1,2.3,4.1,5& yValues2=0.5,2,3,4,5& yValues3=4.5,2,3,1.4,1.1& yValues4=1,2.9,1.3,4.5,2.5& yValues5=3,4,3.5,4.5,2.5

produces:
pnggraph.php


Show:

image