Title: poclbm patch for json based remote control (eg famous bitHopper) Post by: flower1024 on August 05, 2011, 03:41:11 AM 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: { 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 Code: { cmd-example (for bitHopper): Code: python -O poclbm.py http://localhost:8337/data -d 1 -v -w64 -f10 --phatk2 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 :) Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: joulesbeef on August 07, 2011, 03:25:08 AM 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? Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: flower1024 on August 07, 2011, 03:27:43 AM 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 Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: joulesbeef on August 07, 2011, 04:11:28 AM 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 Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: joulesbeef on August 07, 2011, 04:26:37 AM 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 Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: flower1024 on August 07, 2011, 04:32:26 AM 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 its just a classic poclbm with a few addons. i guess i should make a windows exe (this would include all the needed dependencies) - but i never done that before. on linux it should run flawlessly Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: simonk83 on August 07, 2011, 04:42:20 AM 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 its just a classic poclbm with a few addons. i guess i should make a windows exe (this would include all the needed dependencies) - but i never done that before. That'd be great if you can be bothered :) Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: joulesbeef on August 07, 2011, 04:53:28 AM we can pester sukrim he made one for bithopper.
i'm nearly there i think.. downloading visual studios express 2008. Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: flower1024 on August 07, 2011, 04:56:51 AM we can pester sukrim he made one for bithopper. i'm nearly there i think.. downloading visual studios express 2008. the biggest problem is pyopencl on win7 x64 but i can't support you on that as i never got pyopencl it working on my win7 x64 machine (didn't try very hard though) Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: joulesbeef on August 07, 2011, 05:44:39 AM Code: ok got past that and decorator and now getting miner idle errors.. it just wont connect connecting using Code: python -O poclbm.py http://localhost:8337/data -d 0 -v -w128 -f10 --phatk2 tried both phatks Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: joulesbeef on August 07, 2011, 05:49:13 AM and i found this site handy to get all the dependencies already compiled (http://www.lfd.uci.edu/~gohlke/pythonlibs/)
farken google tried to steer me down the path of pain a few times Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: joulesbeef on August 07, 2011, 06:16:26 AM it's working now.. still get that message and some miner idle messages but it seems to be running well now.
yeah might have spoken too soon... bithopper says i am running at 0mh and isnt updating any shares but you screen seems to suggest shares are being done Code: bmunion 07/08/2011 02:21:42, warning: job finished, miner is idle but as you can see i get the idle errors. Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: user7516 on August 07, 2011, 07:31:54 AM I can't run your poclbm:
Code: C:\Python27\Lib\flower1024-poclbm-b77e028>"C:\Python27\python.exe" -O "C:\Python27\Lib\flower1024-poclbm-b77e028\poclbm.py" http://localhost:8337/data -d 1 -v -w64 -f10 --phatk2 Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: flower1024 on August 07, 2011, 10:47:11 AM it's working now.. still get that message and some miner idle messages but it seems to be running well now. yeah might have spoken too soon... bithopper says i am running at 0mh and isnt updating any shares but you screen seems to suggest shares are being done Code: bmunion 07/08/2011 02:21:42, warning: job finished, miner is idle but as you can see i get the idle errors. as is said: shares can't be reported to bithopper as all is submitted directly. Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: flower1024 on August 07, 2011, 10:49:02 AM I can't run your poclbm: Code: C:\Python27\Lib\flower1024-poclbm-b77e028>"C:\Python27\python.exe" -O "C:\Python27\Lib\flower1024-poclbm-b77e028\poclbm.py" http://localhost:8337/data -d 1 -v -w64 -f10 --phatk2 hey, it looks like your bithopper configuration lacks the mine_address for rfcpool. just look in bithoppers pools.py if all pools have a valid mine_address Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: flower1024 on August 07, 2011, 11:23:00 AM Quote I'm getting lots of error's like this (on Ubuntu 10.10 64 bit): /tmp/OCLgKNyWT.cl(197): error: bad argument type to opencl builtin function: expected type "uint2", actual type "int" W[27] = P1(27) + P3(27); ^ Error limit reached. 100 errors detected in the compilation of "/tmp/OCLgKNyWT.cl". Compilation terminated. hm, that does look like a poclbm error. could you try if this https://github.com/progranism/poclbm poclbm works for you? (i used it as a base; this error seems to be not related to my changes) Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: user7516 on August 07, 2011, 12:06:00 PM hey, it looks like your bithopper configuration lacks the mine_address for rfcpool. just look in bithoppers pools.py if all pools have a valid mine_address I can run your mod only after I commented (i.e. disabled) BTCPool24, bmunion, btcworld, nofeemining and poolmunity in user.cfg. All this pools have a valid mine_adress in pools.cfg. I have about 0.3% of rejected shares with your mod and this is excellent (tested about 1000 shares)! But your mod is not perfect: idle states after every share: http://img12.imageshack.us/img12/289/clipboardimage8.png Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: bitcoindaddy on August 07, 2011, 12:41:46 PM Quote I'm getting lots of error's like this (on Ubuntu 10.10 64 bit): /tmp/OCLgKNyWT.cl(197): error: bad argument type to opencl builtin function: expected type "uint2", actual type "int" W[27] = P1(27) + P3(27); ^ Error limit reached. 100 errors detected in the compilation of "/tmp/OCLgKNyWT.cl". Compilation terminated. hm, that does look like a poclbm error. could you try if this https://github.com/progranism/poclbm poclbm works for you? (i used it as a base; this error seems to be not related to my changes) I removed the phatk2 parameter and it works now. No rejects at all on bitclockers. Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: joulesbeef on August 07, 2011, 05:27:17 PM Quote as is said: shares can't be reported to bithopper as all is submitted directly. i knew that but it was late... still the idles bug me. Code: bitclockers 07/08/2011 14:40:40, warning: job finished, miner is idle and seem to have issues with bitclockers Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: flower1024 on August 07, 2011, 10:08:01 PM strange. i dont have any issues with them.
what do you see if you run a normal poclbm with them? i just added hopping code, i did not even touch the normal poclbm pool network code. Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: joulesbeef on August 07, 2011, 11:27:47 PM maybe I am being throttled.. maybe it was a bad day at bitclockers.. as you see i only did 3 shares which isnt quite a test. i'll give it a more thorough test soon
are the miner idle warnings normal after each share? Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: flower1024 on August 07, 2011, 11:30:10 PM no, you shouldn't see any miner idle warnings.
miner idle means your miner was not able to get more work. would like to now if you see this error with stock poclbm too. Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: joulesbeef on August 08, 2011, 05:29:06 AM sorry took me so long to get back here.. was trying to break c00ws stuff, you understand.
yep it is a problem between me an poclbm Code: 0 so no worries on your end. Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: hawks5999 on August 09, 2011, 10:45:47 PM flower - i've got some bandwidth to test out your mod.
Installing dependencies right now but quick question: If there is an error in the json data will it kill your poclbm. Currently getting this: https://github.com/c00w/bitHopper/issues/164 Parse error on line 425: ...pi_key": "<span id=""rs_round_shar -----------------------^ Expecting '}', ':', ',', ']' but it's on a disabled mine so I'm hoping it doesn't matter Title: Re: poclbm patch for json based remote control (eg famous bitHopper) Post by: hawks5999 on August 09, 2011, 10:56:34 PM Appears that maybe it does break it:
Code: Traceback (most recent call last): |