Pages:
Author

Topic: PiMiner - DIY mining controller/monitor with Raspberry Pi [v1.1] - page 3. (Read 35889 times)

full member
Activity: 140
Merit: 100
yes i have used that tut. from adafruit. The Miner is up and running good.

I can connect to the api from my windows computer with CGWatcher.

I use Raspbian.

When PiMiner starts boot or by restart it show the IP address from the raspberry, and then comes "connecting to cgminer ... " thats all.

When i push up or down i become on one display the actual prices. Hi and Lo. ...

So i thing the PiMiner becomes so API connect or dont connect to them?

Strange, I'm unable to recreate this bug - PiMiner always manages to connect to cgminer for me, tho it can take up to ~30 seconds or so.
Which version of the RPi are you using - Model A or Model B?

I'll check a few more possible causes …


On a related note, can anyone chime in on how stable the RasPi is as a mining platform? I've heard that the RasPi has some stability issues (especially when dealing with USB), though I've never actually used one myself.

I'd be inclined to order one if they can handle ~40 USB Erupters for 24x7 stably.
I've mined for about 2 weeks with with 5 USB Block Erupters, no issues - only stopped as I had to restart the RPi for testing.
newbie
Activity: 46
Merit: 0
I believe the theoretical limit of 127 devices - have yet to verify this myself tho Wink

What is the highest that someone has proved?  I would LOVE to see a pic of large amount using this.

I've read something about this, rpi can handle with a decent percentage of hw errors 40 block erupters, over 40 CPU load is always on 100% and hw errors % increase

On a related note, can anyone chime in on how stable the RasPi is as a mining platform? I've heard that the RasPi has some stability issues (especially when dealing with USB), though I've never actually used one myself.

I'd be inclined to order one if they can handle ~40 USB Erupters for 24x7 stably.
legendary
Activity: 986
Merit: 1027
Miner-Control.de Pooler
i read only "connecting to cgminer..." on my LCD.

The Miner is running, but there dont connect? Or is this a error in PiMiner?

Hmm … can you check to ensure the contents of cgminer.conf have copied correctly with no formatting errors?

If so, then please try the following:

    • Confirm cgminer is running with:
       ps aux | grep cgminer

You should see a multi-line response, including at least one line beginning w "root" - example
If not, then try starting cgminer again (PiMiner scripts should find it automatically after a few moments.)

If you've confirmed cgminer *is* running, then you can try:

    • Manually shutting down processes and then restarting them.
    • Reboot the Pi, and wait for auto-start to begin & connect.

If none of the above resolves the issue, confirm that you've followed all steps in the tutorial, then let me know what model RPi and OS(Raspbian, Occidentalis) you're using, and we'll go from there.

fyi - I'll be adding a FAQ/troubleshooting page to the tutorial soon which will cover the above steps.


How many USB Block Erupters one Raspberry Pi can handle? 10, 20, 100??

I believe the theoretical limit of 127 devices - have yet to verify this myself tho Wink

Hy,

yes i have used that tut. from adafruit. The Miner is up and running good.

I can connect to the api from my windows computer with CGWatcher.

I use Raspbian.

When PiMiner starts boot or by restart it show the IP address from the raspberry, and then comes "connecting to cgminer ... " thats all.

When i push up or down i become on one display the actual prices. Hi and Lo. ...

So i thing the PiMiner becomes so API connect or dont connect to them?
legendary
Activity: 3766
Merit: 1742
Join the world-leading crypto sportsbook NOW!
I believe the theoretical limit of 127 devices - have yet to verify this myself tho Wink

What is the highest that someone has proved?  I would LOVE to see a pic of large amount using this.

I've read something about this, rpi can handle with a decent percentage of hw errors 40 block erupters, over 40 CPU load is always on 100% and hw errors % increase
legendary
Activity: 1456
Merit: 1000
I believe the theoretical limit of 127 devices - have yet to verify this myself tho Wink

What is the highest that someone has proved?  I would LOVE to see a pic of large amount using this.
full member
Activity: 140
Merit: 100
i read only "connecting to cgminer..." on my LCD.

The Miner is running, but there dont connect? Or is this a error in PiMiner?

Hmm … can you check to ensure the contents of cgminer.conf have copied correctly with no formatting errors?

If so, then please try the following:

    • Confirm cgminer is running with:
       ps aux | grep cgminer

You should see a multi-line response, including at least one line beginning w "root" - example
If not, then try starting cgminer again (PiMiner scripts should find it automatically after a few moments.)

If you've confirmed cgminer *is* running, then you can try:

    • Manually shutting down processes and then restarting them.
    • Reboot the Pi, and wait for auto-start to begin & connect.

If none of the above resolves the issue, confirm that you've followed all steps in the tutorial, then let me know what model RPi and OS(Raspbian, Occidentalis) you're using, and we'll go from there.

fyi - I'll be adding a FAQ/troubleshooting page to the tutorial soon which will cover the above steps.


How many USB Block Erupters one Raspberry Pi can handle? 10, 20, 100??

I believe the theoretical limit of 127 devices - have yet to verify this myself tho Wink
legendary
Activity: 986
Merit: 1027
Miner-Control.de Pooler
Hy,

i read only "connecting to cgminer..." on my LCD.

The Miner is running, but there dont connect? Or is this a error in PiMiner?
sr. member
Activity: 288
Merit: 250
How many USB Block Erupters one Raspberry Pi can handle? 10, 20, 100??
full member
Activity: 140
Merit: 100
I'm totally in love with this project! Will be adapting it for BFL Jalapenos.

That would be nice!  I have some ideas for incorporating the RPi+LCD with the enclosure I'd like to try.
full member
Activity: 140
Merit: 100
I don't know what you are using for init there are a few ways around it, if your using something oldish like SystemV (it has the /etc/init.d file structure) I have used this method a few times with limited success;-

http://askubuntu.com/questions/257808/how-can-i-use-init-d-or-some-other-method-to-run-a-screen-script-on-boot-up/

Thanks for the link - appears Raspbian is still using sysvinit.  Will give this a try.

Learning more about Arch - looks pretty mean & lean, can see why you use it  Wink
newbie
Activity: 18
Merit: 0
I'm totally in love with this project! Will be adapting it for BFL Jalapenos.
full member
Activity: 140
Merit: 100
definitely love this project! Hope you'll continue to keep updated the code with new features.
I'm going to build a piminer + 5/6 block erupters (with the d-link dub-h7), do you think that 6 is too much for the dlink? (higher probability of hw errors?)

Thnx - always good to hear!  Been a bit busy of late, but additional features are in the works.

I use the dub-h7 with 5 erupters @ <1% HW errors.  I've seen reports of it being used w up to 6, but no comparisons of error rate.
legendary
Activity: 3766
Merit: 1742
Join the world-leading crypto sportsbook NOW!
Project updated to version 1.1

New in v1.1:
    • Added mining auto-start after boot (see tutorial for setup)
    • Time format changed to dd:hh:mm
    • Abbreviated large share count (ex. 12300 == "12k3")
    • Revised error % calculation: 100 * HW / (diff1shares + HW)
    • Added MtGox last, high, & low price (currency can be changed in PiMinerInfo.py)
    • Removed cgminer data logging (was appending nohup.out)
    • Misc. tutorial revisions/clarifications

Tutorial: http://learn.adafruit.com/piminer-raspberry-pi-bitcoin-miner/
Code: https://github.com/adafruit/PiMiner

definitely love this project! Hope you'll continue to keep updated the code with new features.
I'm going to build a piminer + 5/6 block erupters (with the d-link dub-h7), do you think that 6 is too much for the dlink? (higher probability of hw errors?)
member
Activity: 98
Merit: 10
Love it but not the tinker type...
Anybody doing mass production or anything similar will be interested
 
legendary
Activity: 896
Merit: 1000
I haven't been able to run cgminer as a background job which can then be brought to the foreground. Whenever I tried, cgminer just stops while in background - this is why I ended up using nohup.  I'm open to better solutions, of course.

I don't know what you are using for init there are a few ways around it, if your using something oldish like SystemV (it has the /etc/init.d file structure) I have used this method a few times with limited success;-

http://askubuntu.com/questions/257808/how-can-i-use-init-d-or-some-other-method-to-run-a-screen-script-on-boot-up/

The issue with SystemV is that it is brain dead when it comes to monitoring processes and if the miner dies in background its dead.  You can do some sort of bash loop but its not ideal.

Id your using a more modern distro that has systemd instead everything gets easy, use this;-

Code:
[Unit]
Description=cgminer
After=network.target openntpd.service

[Service]
Type=forking
ExecStart=/usr/bin/screen -dmS cgminer /opt/minepeon/bin/cgminer --api-listen --api-allow W:127.0.0.1 --sharelog /opt/minepeon/log/share.log -c /opt/mi
nepeon/etc/miner.conf
ExecStop=/usr/bin/screen -S cgminer -X quit
Restart=always

[Install]
WantedBy=multi-user.target

And systemd will baby sit the process for you, you can even switch too it (screen -r) kill the miner and get dumped out and when you look at your process list it is still there Wink .

Neil
full member
Activity: 140
Merit: 100
So I was wondering if there was a way to launch Pi.Miner form a "autorun" script when the Pi boots? Then press and hold the up button to launch cgminer with the predefined config file? The bonus would be still having the ability to SSH in independently and see the output from cgminer.

The tutorial now describes how to add auto-start and the scripts have been updated to support this functionality. This method starts cgminer up as well. Unfortunately, I haven't been able to run cgminer as a background job which can then be brought to the foreground. Whenever I tried, cgminer just stops while in background - this is why I ended up using nohup.  I'm open to better solutions, of course.

P.S. I also think you should come up with a way for people to mine on a schedule and be able to set aside time to mine (say thanks) to you for a given period of time per day/week, like cgwatcher does.

Interesting, but would need to be 1000% bulletproof/bug free - don't want to risk messing with folks' income!
In any case, my address in in my sig Smiley
newbie
Activity: 44
Merit: 0
So I was wondering if there was a way to launch Pi.Miner form a "autorun" script when the Pi boots? Then press and hold the up button to launch cgminer with the predefined config file? The bonus would be still having the ability to SSH in independently and see the output from cgminer.

P.S. I also think you should come up with a way for people to mine on a schedule and be able to set aside time to mine (say thanks) to you for a given period of time per day/week, like cgwatcher does.
full member
Activity: 140
Merit: 100
Project updated to version 1.1

I STILL have not received my LCD, it was supposed to get here on Friday but I just called the UPS guys and apparently it has taken a scenic  trip around New Zealand.

When it does actually manage to get here I will be 'git pull'ing Smiley .

It does bring something up, my intentions are to be including a version of PiMiner in MinePeon (if that is OK with you, I have always had intentions to add LCD's and TFT's and there is no point re-inventing the wheel).  How would you like to work together (assuming you do), my preference is that I just push from my own git any improvements and pull any of yours.

The last thing I want to do is fork, that never seems to work out happily Tongue .

Neil

Ugh - sorry to hear about UPS going off-course!  They're usually rock-solid for me here :/

I'd love to collaborate - and you are totally welcome to use the PiMiner code in MinePeon.  
I have to check a few things regarding push privileges - can get back to you on that tho.

and yah - forking seems a very effect way to divide good intentions …
legendary
Activity: 896
Merit: 1000
Project updated to version 1.1

I STILL have not received my LCD, it was supposed to get here on Friday but I just called the UPS guys and apparently it has taken a scenic  trip around New Zealand.

When it does actually manage to get here I will be 'git pull'ing Smiley .

It does bring something up, my intentions are to be including a version of PiMiner in MinePeon (if that is OK with you, I have always had intentions to add LCD's and TFT's and there is no point re-inventing the wheel).  How would you like to work together (assuming you do), my preference is that I just push from my own git any improvements and pull any of yours.

The last thing I want to do is fork, that never seems to work out happily Tongue .

Neil
full member
Activity: 140
Merit: 100
Project updated to version 1.1

New in v1.1:
    • Added mining auto-start after boot (see tutorial for setup)
    • Time format changed to dd:hh:mm
    • Abbreviated large share count (ex. 12300 == "12k3")
    • Revised error % calculation: 100 * HW / (diff1shares + HW)
    • Added MtGox last, high, & low price (currency can be changed in PiMinerInfo.py)
    • Removed cgminer data logging (was appending nohup.out)
    • Misc. tutorial revisions/clarifications

Tutorial: http://learn.adafruit.com/piminer-raspberry-pi-bitcoin-miner/
Code: https://github.com/adafruit/PiMiner
Pages:
Jump to: