Bitcoin Forum
June 16, 2024, 07:19:13 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: cgminerLCDStats - My little LCD  (Read 548 times)
leemunro (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 19, 2013, 03:54:42 PM
 #1

Hi everyone

I've been trying for the last two weeks to try and get cgminerLCDstats.py to work. but I've now given up. hopefully someone can put me out of my misery....

I have a raspberry Pi with 3 bitfury miners connected to it and i'm running cgminer-3.8.2. connected to slush pool via http://stratum.bitcoin.cz:3333 Everything seems to be running fine on the mining front, I just can't get my little LCD screen to work.

I have installed the cgminerLCDStats fron GitHub but no matter what configuration I run, the screen displays Error: Check Miner API Connection Error

A sample of the commands I've tried are

sudo python cgminerLCDStats.py -i 192.198.107.178 -p 3333
sudo python cgminerLCDStats.py -p 3333
sudo python cgminerLCDStats.py -i stratum.bitcoin.cz -p 3333
sudo python cgminerLCDStats.py
etc
etc

Does anybody have any suggestions...... please

Thanks in advance for any help
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
November 19, 2013, 05:54:19 PM
 #2

You sould enable cgminer api support:
Code:
"api-port" : "4001",
"api-listen" : true,
"api-allow" : "YOUR_WEBSERVER_IP",

or cgminer command line:
Code:
Code:
--api-port 4001 --api-listen --api-allow "YOUR_IP"

maybe you cgminer already configured api, use that port number, and configure api-allow option.

and start lcdstatus:
Code:
python cgminerLCDStats.py -i CGMINER_IP -p 4001
leemunro (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
November 20, 2013, 03:38:30 AM
 #3

Hi elbandi

Thanks for the reply, I was worried nobody was going to reply.

I'm a bit confused by your answer. You've listed 3 different IP's : "YOUR_WEBSERVER_IP", "YOUR_IP" and CGMINER_IP as far as I know, I only have two IP addresses. my Pi's IP and Slush Pools IP.

Could you explain which address goes where

Thanks
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
November 20, 2013, 09:25:54 AM
 #4

Hi,

This cgminerLCDStats‎ query the stat from cgminer directly not from the pool. sorry, i misspelled the first code block.

So there is 2 things: your pi with cgminerLCDStats‎ (1.2.3.4 ip), and your cgminer (5.6.7.Cool.
Than you sould give access in cgminer for cgminerLCDStats‎ to allow query the stats. "api-allow" : "1.2.3.4", and you run cgminerLCDStats‎ to query the stats from cgminer:
cgminerLCDStats.py -i 5.6.7.8
That's it.

Elbandi
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!