Post
Topic
Board Mining software (miners)
Re: bitHopper: Python Pool Hopper Proxy
by
gnaget
on 28/07/2011, 04:54:01 UTC

Do you have a json api url that would be easier on the servers? With maybe a faster refresh?

http://www.unitedminers.com/?action=api

If you need more info then provided let me know. I just added valid shares to that JSON by request and I can add more if need be.

c00w:
I modified the config to use his json api, but I found a small issue in your parsing code

        if server['api_method'] == 'json':
            info = json.loads(response)
            for value in server['api_key'].split(','):
                info = info[value]
            if 'api_strip' in server:
                strip_str = server['api_strip'][1:-1]
                info = info.replace(strip_str,'')
            round_shares = int(info)
            self.UpdateShares(args,round_shares)


I modified it to look for api_strip, and remove the offending character.  In this case, he has a ',' in the result.

Edit: nevermind, I added it as an issue on github