Hi there, i'm trying to get the CGMinerMobileAdapter script running on my BAMT machines (all running BAMT 1.3). I've successfully installed them, have restarted them, and can see that there is a screen running for the app. However, I am not receiving data to either the iPhone app or
http://web.mobileminerapp.com/. Can anyone help me troubleshoot this?
Is there any output from CGMinerMobileAdapter? From scanning the source code it seems to print and log both success and error texts:
https://github.com/Axadiw/CGMinerMobileAdapter/blob/master/CGMinerMobileAdapter.pyLooks as if it's getting a 404.
File "/usr/lib/python2.6/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.6/urllib2.py", line 397, in open
response = meth(req, response)
File "/usr/lib/python2.6/urllib2.py", line 510, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.6/urllib2.py", line 435, in error
return self._call_chain(*args)
File "/usr/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/usr/lib/python2.6/urllib2.py", line 518, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request
2014-03-02 21:38:50,886 ERROR [Errno 111] Connection refused
2014-03-02 21:38:50,887 ERROR [Errno 32] Broken pipe
[2014-03-02 21:38:50] Getting Data from CGMiner RPC API using port:4028
2014-03-02 21:38:50,887 WARNING Generic Exception: Traceback (most recent call last):
File "/opt/CGMinerMobileAdapter/CGMinerMobileAdapter.py", line 104, in
for item in data['DEVS']:
TypeError: string indices must be integers, not str
I don't know python, but I don't see what could be causing this in CGMinerMobileAdapter.py, the line is very simple, and it doesn't look like there are any vars being passed. I'm wondering if putting my application key in with hypens (XXXX-XXXX-XXXX) may be causing the issue?