Looks as if it's getting a 404.
[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
Looks to me like it cannot get a response back from the CGMiner RPC API. You need to configure your miner to enable API access and to allow API access from the IP where the Python script will run.
Try telneting into the IP & port of the CGMiner instance in BAMT. If you are unable to connect then the script is not going to work. See this thread for more info:
https://bitcointalk.org/index.php?topic=248173.msg5112607#msg5112607And this one as well for tools you can use for testing:
https://bitcointalk.org/index.php?topic=248173.msg5230592#msg5230592Thanks, i'll give that a try tonight.
Ok, i'm getting closer, now i'm getting a HTTP Error 503: Service Unavailable
[2014-03-03 20:07:06] Getting Data from CGMiner RPC API using port:4028
2014-03-03 20:07:07,433 WARNING HTTPError = 503
[2014-03-03 20:07:07] Sending to MobileMiner API from Galaxy
2014-03-03 20:07:09,029 WARNING GetCommands Generic Exception: Traceback (most recent call last):
File "/opt/CGMinerMobileAdapter/CGMinerMobileAdapter.py", line 179, in
getCommandsResponse = urllib2.urlopen(getCommandsReq, None, 30)
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 503: Service Unavailable