Post
Topic
Board Hardware
Re: [Guide] Dogie's Comprehensive BTCGarden AM V1 Setup [HD]
by
RME88
on 07/01/2015, 04:15:31 UTC
Does anyone know how to get these so they can be monitored from other apps through the API,

check /var/www/run.sh to make sure the cgminer startup script includes --api-listen

Here is my run.sh file
nohup  /home/pi/Garden/cgminer -o http://10.30.2.188:8332 -u User.worker -p x  --btcg-clks 310:3000 --btcg-num-chips 64  --btcg-chip-sel-delay  80  --btcg-hard-rst-all-chips-period 5 --btcg-spi-cs-delay 0  --api-listen --api-allow W:0/0 --api-network > /dev/null 2>&1 &


You can add the api setting to cgminer.conf
Usually on /root/.cgminer/cgminer.conf
Code:
"api-listen" : true,
"api-allow" : "R:127.0.0.1",
"api-mcast-port" : "4028",
"api-port" : "4028"

I am not finding a cgminer.conf I think I searched every directory.