Pages:
Author

Topic: Linux mining distro for the Raspberry PI - MinePeon - page 21. (Read 685133 times)

legendary
Activity: 896
Merit: 1000
You get a chance to play with it at all?

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 Tongue .

Neil
hero member
Activity: 756
Merit: 500
You get a chance to play with it at all?
hero member
Activity: 756
Merit: 500
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?? Tongue

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.
legendary
Activity: 896
Merit: 1000
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?? Tongue

That make a difference, I will see if I can reproduce the error when I get home, perchance does it work with cgminer?

Neil
hero member
Activity: 756
Merit: 500
2 different RPis and 2 different screens... same thing. 

Would it matter if I did

sudo -i

before starting the whole install process???
hero member
Activity: 756
Merit: 500
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
legendary
Activity: 896
Merit: 1000
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
hero member
Activity: 756
Merit: 500
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 ~]$
legendary
Activity: 896
Merit: 1000
Derp;-

sudo systemctl status piminer

My bad sorry.

Neil
hero member
Activity: 756
Merit: 500
[minepeon@minepeon minepeon-plugin-PiMiner]$ sudo systemctl piminer status
Unknown operation 'piminer'.
legendary
Activity: 896
Merit: 1000
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.git

cd 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
hero member
Activity: 756
Merit: 500
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.git

cd minepeon-plugin-PiMiner

./install.sh

legendary
Activity: 896
Merit: 1000
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

hero member
Activity: 756
Merit: 500
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?
legendary
Activity: 896
Merit: 1000
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
hero member
Activity: 756
Merit: 500
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.git
cd 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
newbie
Activity: 8
Merit: 0
now i have got it working again:

/opt/minepeon/http/summary.php
Code:
 14         echo $row['datetime'] . "\t";
 15 //      echo strtotime($row['datetime']) . "\t";

/opt/minepeon/http/js/chart.js
Code:
 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) {}
hero member
Activity: 714
Merit: 500
Are ฿itcoins Radioactive?
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):

newbie
Activity: 8
Merit: 0
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)
newbie
Activity: 8
Merit: 0
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

Code:
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
Pages:
Jump to: