Post
Topic
Board Hardware
Re: PiMiner - DIY mining controller/monitor with Raspberry Pi [v1.1]
by
onryo
on 28/09/2013, 17:00:04 UTC
Has anyone heard of or tried to get the LCD Plate working with BFGminer using PiMiner?

I am not a code expert so really don't know what I'd be looking at editing PiMiner.py to get it to work.

Cheers,


# Been running Raspbian, BFGMiner, Adafruit 2x16 LCD and a handful of BE with no problems at all.
# Forgot all about my little setup them until I saw this post.
# The erupters have been hashing away for 2-3 weeks non-stop. HW errors 0.48%. No lockups or issues. Really solid!

git clone https://github.com/luke-jr/bfgminer.git
cd bfgminer
./autogen.sh
./configure
make

# I like to run BFGMiner from the build dir. I don't install.
# BFGMiner's API does not blindly listen to any old crap. We need to enable the api in a way
# that is not going to restict the port.
# There are a few ways to do this but the easyest is to use api-network.

./bfgminer -o http://xxxxx:port -u onryo -p xxx --api-listen --api-network -S erupter:all

# Now your Adafruit is hashing away with your erupters with BFGMiner and your Adafruit is
# working just fine with your erupters.

# Make a nice bfgminer.conf file and save it in lets say ~/.bfgminer/ so you dont lose it.
# I just pull my "play around" gits in a dir called sandbox.

Add this to your /etc/rc.local

cd /home/pi/sandbox/PiMiner
python PiMiner.py &
cd /home/pi/sandbox/bfgminer
./bfgminer --config /home/pi/.bfgminer/bfgminer.conf -S erupter:all

# I don't use nohup for a lot of reasons.

# If you do not want to see "connecting to cgminer" when you start your RPi
# change the line in PiMinerDisplay.py to

self.lcd.message('connecting\nto BFGMiner ...')

# top shows that PiMiner is a CPU hog though. 28%   Roll Eyes