raystream
Newbie
Offline
Activity: 8
Merit: 0
|
|
February 07, 2014, 06:51:25 AM Last edit: February 07, 2014, 07:19:11 AM by raystream |
|
105 var t = line[0].split(/[- :]/); 106 var d = new Date(t[0], t[1]-1, t[2], t[3], t[4], t[5]); 107 d = Date.parse(d);
beside inserting line 107 in /opt/minepeon/http/js/charts.js i changed the following in this file to get the units of the charts correct: 41 yAxis: [{ 42 min: 0, 43 title: { 44 text: 'HashRate GH/s' 45 }, 46 }, { .... 60 series: [{ 61 name: 'GH/s Average', 62 color: '#FF0000', 63 type: 'spline', 64 lineWidth: 2, 65 zIndex: 10, 66 yAxis: 0 67 }, { 68 name: 'GH/s Acutal', 69 color: '#E8ADAA', 70 type: 'spline', 71 lineWidth: 1, 72 zIndex: 0, 73 yAxis: 0 74 }, { ... 107 d = Date.parse(d); 108 GHAvg.push([ d, parseFloat(line[1].replace(',', ''), 10) / 1000, ]); 109 GHActual.push([ d, parseFloat(line[2].replace(',', ''), 10) / 1000, ]); 110 DeviceTemp.push([ d, parseFloat(line[3].replace(',', ''), 10), ]);
beside i am a really javascript noob but i think this will do it.
|
|
|
|
|
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
|
|
raystream
Newbie
Offline
Activity: 8
Merit: 0
|
|
February 07, 2014, 07:18:54 AM |
|
an i had to change the following to get the time into the right timezone. it is not a good change more a quick and dirty hack. /opt/minepeon/http/js/chart.js 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();
just added 3600000 milliseconds to the d variable and 1 for the hours int the setExtrems for adding another hour
|
|
|
|
raystream
Newbie
Offline
Activity: 8
Merit: 0
|
|
February 07, 2014, 08:12:18 AM |
|
i just did a git pull and now i cannot get the graph back to work. it shows all data but with a wrong timestamp. the axys is from 23:59:59.0-8 to 00:00:00.792 an when hovering over a line point i get a date 01 Jan 1970
the system time is set (server time on the site is correct)
|
|
|
|
ct1aic
|
|
February 07, 2014, 10:17:23 AM |
|
After last git pull, from some minutes ago, the graphics are now "not zoomed" and with date "Sat 17 Jan 1970" in my 3 RPI's with MinePeon Pi 0.2.5 pr2.
Hmm, can I get a screen shot of that ct1aic? It is not something I have seen before and I will see if I can replicate it. Neil Image (it's now the same with my 4 RPI's):
|
Rui Costa, Portugal - BTC : 1ct1aicGoUVpZeovsw3cCcPJZJHV5JXtW
|
|
|
raystream
Newbie
Offline
Activity: 8
Merit: 0
|
|
February 07, 2014, 11:30:31 AM |
|
now i have got it working again: /opt/minepeon/http/summary.php 14 echo $row['datetime'] . "\t"; 15 // echo strtotime($row['datetime']) . "\t";
/opt/minepeon/http/js/chart.js 11 tooltip: { 12 enabled: true, 13 formatter: function() { 14 return '<b>'+ this.series.name +'</b><br/>'+ 15 Highcharts.dateFormat('%a %d %b %Y %H:%M:%S', this.x) +'<br/>'+ 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) {}
|
|
|
|
tripppn
|
|
February 09, 2014, 04:05:02 AM |
|
I'm back to not being able to get piminer to work again with pr2. Here's what I put in to install: First update minepeon with: cd /opt/minepeon/ git pull then: cd ~/ rm -rf minepeon-plugin-PiMiner git clone https://github.com/MineForeman/minepeon-plugin-PiMiner.gitcd minepeon-plugin-PiMiner ./install.sh Everything looks normal but after the screen puts out the IP it gets stuck on "connecting to miner..." I've installed it every way I can think of including "sudo pacman -Syu python i2c-tools" before updating minepeon. Any thoughts? If i push the up button it says "format error" then back to connecting for all the other screens except the btc price one which does show the mt gox price which is of course useless these days
|
“You can't be a real country unless you have a beer and an airline - it helps if you have some kind of football team, or some nuclear weapons, but in the very least you need a beer.” ― Frank Zappa
|
|
|
MineForeman.com (OP)
Legendary
Offline
Activity: 896
Merit: 1000
|
|
February 09, 2014, 06:51:40 AM |
|
Any thoughts?
If i push the up button it says "format error" then back to connecting for all the other screens except the btc price one which does show the mt gox price which is of course useless these days
Mine seems to be working. I do need to do some work to it though, as you say, MtGOX prices are next to useless these days. Neil
|
|
|
|
tripppn
|
|
February 09, 2014, 07:09:49 AM |
|
Any thoughts?
If i push the up button it says "format error" then back to connecting for all the other screens except the btc price one which does show the mt gox price which is of course useless these days
Mine seems to be working. I do need to do some work to it though, as you say, MtGOX prices are next to useless these days. Neil When you install it from a fresh img what is the exact sequence of commands you use in ssh?
|
“You can't be a real country unless you have a beer and an airline - it helps if you have some kind of football team, or some nuclear weapons, but in the very least you need a beer.” ― Frank Zappa
|
|
|
MineForeman.com (OP)
Legendary
Offline
Activity: 896
Merit: 1000
|
|
February 10, 2014, 12:19:55 AM |
|
When you install it from a fresh img what is the exact sequence of commands you use in ssh?
I think I might have spotted the problem. Arch now comes with Python 3.3 by default and you may not have the required 2.7 install. I have updated the install script to install the dependencies, can you try it now (you will need to re-download the plugin as per instructions). Neil
|
|
|
|
tripppn
|
|
February 10, 2014, 01:09:40 AM |
|
When you install it from a fresh img what is the exact sequence of commands you use in ssh?
I think I might have spotted the problem. Arch now comes with Python 3.3 by default and you may not have the required 2.7 install. I have updated the install script to install the dependencies, can you try it now (you will need to re-download the plugin as per instructions). Neil Same thing. Here's the command sequence I put in from a fresh img. cd /opt/minepeon/ git pull rm -rf minepeon-plugin-PiMiner git clone https://github.com/MineForeman/minepeon-plugin-PiMiner.gitcd minepeon-plugin-PiMiner ./install.sh
|
“You can't be a real country unless you have a beer and an airline - it helps if you have some kind of football team, or some nuclear weapons, but in the very least you need a beer.” ― Frank Zappa
|
|
|
MineForeman.com (OP)
Legendary
Offline
Activity: 896
Merit: 1000
|
|
February 10, 2014, 01:51:41 AM |
|
When you install it from a fresh img what is the exact sequence of commands you use in ssh?
I think I might have spotted the problem. Arch now comes with Python 3.3 by default and you may not have the required 2.7 install. I have updated the install script to install the dependencies, can you try it now (you will need to re-download the plugin as per instructions). Neil Same thing. Here's the command sequence I put in from a fresh img. cd /opt/minepeon/ git pull rm -rf minepeon-plugin-PiMiner git clone https://github.com/MineForeman/minepeon-plugin-PiMiner.gitcd minepeon-plugin-PiMiner ./install.sh Can you do it all again and;- sudo systemctl piminer status And post it back? I am looking at my none running right now. Neil
|
|
|
|
tripppn
|
|
February 10, 2014, 02:21:00 AM |
|
[minepeon@minepeon minepeon-plugin-PiMiner]$ sudo systemctl piminer status Unknown operation 'piminer'.
|
“You can't be a real country unless you have a beer and an airline - it helps if you have some kind of football team, or some nuclear weapons, but in the very least you need a beer.” ― Frank Zappa
|
|
|
MineForeman.com (OP)
Legendary
Offline
Activity: 896
Merit: 1000
|
|
February 10, 2014, 02:25:04 AM |
|
Derp;-
sudo systemctl status piminer
My bad sorry.
Neil
|
|
|
|
tripppn
|
|
February 10, 2014, 02:33:56 AM |
|
Much more useful:
[minepeon@minepeon ~]$ sudo systemctl status piminer [sudo] password for minepeon: piminer.service - PiMiner Loaded: loaded (/usr/lib/systemd/system/piminer.service; enabled) Active: active (running) since Sun 2014-02-09 19:32:30 MST; 32s ago Main PID: 307 (python2.7) CGroup: /system.slice/piminer.service `-307 /usr/bin/python2.7 /opt/minepeon/plugin/PiMiner/PiMiner.py
Feb 09 19:32:30 minepeon systemd[1]: Starting PiMiner... Feb 09 19:32:30 minepeon systemd[1]: Started PiMiner. [minepeon@minepeon ~]$
|
“You can't be a real country unless you have a beer and an airline - it helps if you have some kind of football team, or some nuclear weapons, but in the very least you need a beer.” ― Frank Zappa
|
|
|
MineForeman.com (OP)
Legendary
Offline
Activity: 896
Merit: 1000
|
|
February 10, 2014, 02:39:47 AM |
|
Hmm.... it says it is up and running,
Have you played with the contrast nob (the yellow thing on the PCB that takes a phillips screwdriver)?
Neil
|
|
|
|
tripppn
|
|
February 10, 2014, 02:51:11 AM |
|
Hmm.... it says it is up and running,
Have you played with the contrast nob (the yellow thing on the PCB that takes a phillips screwdriver)?
Neil
Ya. That's not it. The screen does come on and spits out its IP and then just sits there saying connecting to miner... It seems like it's not getting it's info from bfgminer
|
“You can't be a real country unless you have a beer and an airline - it helps if you have some kind of football team, or some nuclear weapons, but in the very least you need a beer.” ― Frank Zappa
|
|
|
tripppn
|
|
February 10, 2014, 04:20:57 AM |
|
2 different RPis and 2 different screens... same thing.
Would it matter if I did
sudo -i
before starting the whole install process???
|
“You can't be a real country unless you have a beer and an airline - it helps if you have some kind of football team, or some nuclear weapons, but in the very least you need a beer.” ― Frank Zappa
|
|
|
MineForeman.com (OP)
Legendary
Offline
Activity: 896
Merit: 1000
|
|
February 10, 2014, 04:36:24 AM |
|
Ya. That's not it. The screen does come on and spits out its IP and then just sits there saying connecting to miner...
It seems like it's not getting it's info from bfgminer
You handing out information in bits and pieces to keep me on my toes?? That make a difference, I will see if I can reproduce the error when I get home, perchance does it work with cgminer? Neil
|
|
|
|
tripppn
|
|
February 10, 2014, 04:43:32 AM |
|
Ya. That's not it. The screen does come on and spits out its IP and then just sits there saying connecting to miner...
It seems like it's not getting it's info from bfgminer
You handing out information in bits and pieces to keep me on my toes?? That make a difference, I will see if I can reproduce the error when I get home, perchance does it work with cgminer? Neil Tried booting up with cgminer and same thing. When you get home and get a chance to play with it let me know exactly what commands you put into ssh for the install on a fresh image from start to finish... maybe I'm just missing one or something.
|
“You can't be a real country unless you have a beer and an airline - it helps if you have some kind of football team, or some nuclear weapons, but in the very least you need a beer.” ― Frank Zappa
|
|
|
tripppn
|
|
February 11, 2014, 02:57:45 AM |
|
You get a chance to play with it at all?
|
“You can't be a real country unless you have a beer and an airline - it helps if you have some kind of football team, or some nuclear weapons, but in the very least you need a beer.” ― Frank Zappa
|
|
|
|