Sorry, I got side tracked working on the graphs. I will have a crack this afternoon. Unfortunately the PiMiner code was not written by me and is in Python, my Phthon is worse than my JavaScript .
Neil
It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
14 echo $row['datetime'] . "\t";
15 // echo strtotime($row['datetime']) . "\t";
11 tooltip: {
12 enabled: true,
13 formatter: function() {
14 return ''+ this.series.name +'
'+
15 Highcharts.dateFormat('%a %d %b %Y %H:%M:%S', this.x) +'
'+
16 Highcharts.numberFormat(this.y,3,',','.');
17 }
18 },
...
55 yAxis: [{
56 min: 0,
57 title: {
58 text: 'HashRate GH/s'
59 },
...
112 DeviceTemp = [];
113 try {
114 // split the data return into lines and parse them
115 tsv = tsv.split(/\n/g);
116 jQuery.each(tsv, function (i, line) {
117 line = line.split(/\t/);
118 //date = Date.parse(line[0] + ' UTC');
119 //date = Date.parse(line[0]);
120 var t = line[0].split(/[- :]/);
121 var d = Date.UTC(t[0], t[1]-1, t[2], t[3], t[4], t[5]);
122 //d = Date.UTC(d);
123 GHAvg.push([
124 d,
125 //date,
126 //line[0],
127 parseFloat(line[1].replace(',', ''), 10) / 1000, ]);
128 GHActual.push([
129 d,
130 //date,
131 //line[0],
132 parseFloat(line[2].replace(',', ''), 10) / 1000, ]);
133 DeviceTemp.push([
134 d,
135 //date,
136 //line[0],
137 parseFloat(line[3].replace(',', ''), 10), ]);
138 });
139 } catch (e) {}
106 var d = new Date(t[0], t[1]-1, t[2], t[3], t[4], t[5]);
107 d = Date.parse(d)+3600000;
108 GHAvg.push([ d, parseFloat(line[1].replace(',', ''), 10) / 1000, ]);
...
18 var d = new Date();
119 chart.xAxis[0].setExtremes(Date.UTC(d.getFullYear(), d.getMonth(), d.getDate() - 1, d.getHours()+1, d.getMinutes()), Date.UTC(d.getFullYear(), d.getMonth(), d.getDate(), d.getHours()+1, d.getMinutes()));
120 // javascript is stupid (or I am) why cant the above line be between Now() - 1 day and Now() ?????
121 chart.showResetZoom();