Pages:
Author

Topic: poclbm patch for json based remote control (eg famous bitHopper) - page 2. (Read 3344 times)

sr. member
Activity: 476
Merit: 250
moOo
well first it told me it was missing numby.. i googled and installed that.
they it said it was missing pyopencl and being on windows, it told me i wasnt going to finish this tonight
sr. member
Activity: 476
Merit: 250
moOo
ahh see i didnt know bithopper had that
i thought you wanted me to try remake a json file.
awesome.. i'll check it out
legendary
Activity: 1428
Merit: 1000
you say it grabs the pools, why cant it grab the username and passes as well?

do i copy this into the bithopper dir? do I run bithopper and then this? and if so why does this need my user names again?



it also takes username and passes from the bithopper link.

you just start it with a link to bitHopper json file (eg http://localhost:8337/data) and it will connect to the pool which is current in bithopper.

all needed data is provided through the bithopper json interface - so bithopper don't need to be modified and you can start it from wherever you want (even on another machine).

don't get confused that i didn't change the help message. just look for the working command line in my initial post.

edit: made it a little more clear
sr. member
Activity: 476
Merit: 250
moOo
you say it grabs the pools, why cant it grab the username and passes as well?

do i copy this into the bithopper dir? do I run bithopper and then this? and if so why does this need my user names again?

legendary
Activity: 1428
Merit: 1000
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)
Code:
{
    "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
Huh         no meaning, could be "mine"

Example
Code:
{
    "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):
Code:
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 Smiley
Pages:
Jump to: