this is used to control your miner through an JSON-WebPage (eg. the datasite of the famous bitHopper).
grab it here:
https://github.com/flower1024/poclbm (make sure to get the master branch)
Instead of a server you provide a link to a json file like this:
(capitalized means you should change that)
{
"current": "POOLNAME",
"servers": {
"POOLNAME": {
"user": "#MINER USER#",
"pass": "#MINER PASS#",
"role": "#BACKUP | DISABLE | ???#",
"mine_address": "#POOL MINE ADDRESS#:#POOL MINE PORT#",
}
}
role could be:
disable don't user this server (for whatever reason)
backup just like the normal poclbm backups. if the current pool fails it'll cycle through the backups
no meaning, could be "mine"
Example
{
"current": "rfc",
"servers": {
"mtred": {
"mine_address": "mtred.com:8337",
"pass": "minerpass",
"role": "mine",
"user": "miner.user",
},
"rfc": {
"mine_address": "pool.rfcpool.com:8332",
"pass": "minerpass",
"role": "backup",
"user": "miner_user",
}
},
}
cmd-example (for bitHopper):
python -O poclbm.py http://localhost:8337/data -d 1 -v -w64 -f10 --phatk2
05/08/2011 04:57:56, reading serverlist from bitHopper http://localhost:8000/data
05/08/2011 04:57:56, adding backup USER @ pool.rfcpool.com:8332
05/08/2011 04:57:56, adding backup USER @ su.mining.eligius.st:8337
05/08/2011 04:57:56, adding server USER @ polmine.pl:8347
05/08/2011 04:57:56, adding server USER @ api2.bitcoin.cz:8332
05/08/2011 04:57:56, adding server USER @ mtred.com:8337
05/08/2011 04:57:56, adding server USER @ pool.rfcpool.com:8332
05/08/2011 04:57:56, adding server USER @ eu1.triplemining.com:8344
05/08/2011 04:57:56, adding server USER @ ozco.in:8332
05/08/2011 04:57:56, adding server USER @ pool.bitclockers.com:8332
05/08/2011 04:57:56, Setting server (USER @ rfcpps)
rfcpps 05/08/2011 04:57:56, Kernel: phatk2
rfcpps 05/08/2011 04:58:02, LP connected to rfcpps
rfcpps [389.713 MH/s (~412 MH/s)] [Rej: 0/77 (0.00%)]
atm the server list is not updated. just the "current" field is interpreted every three seconds. it switches without rejects.
if you have any ideas how to improve this please let me know