Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion external/__init__.py

This file was deleted.

23 changes: 0 additions & 23 deletions external/amdgpu_stats.py

This file was deleted.

Empty file modified main.py
100644 → 100755
Empty file.
6 changes: 1 addition & 5 deletions miners/claymores.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import sys
from stats import Stats
from pprint import pprint
from external import amdgpu_stats


class Claymores(object):
Expand Down Expand Up @@ -72,19 +71,16 @@ def getStats(self):
data.hashrates = summary_response[3].split(';'); # ETH hashrates
data.dcr_hashrates = summary_response[5].split(';'); # DCR Hashrates

data.power_usage = amdgpu_stats.read_watts(len(data.hashrates)) # Watts used by AMD / WIP

# Temps and fan speeds
temp = summary_response[6].split(';')
i = 0
while i < len(temp) - 1:
data.temps.append(temp[i])
data.fan_speeds.append(temp[i + 1])
i += 2


data.online = self.connected
except Exception, e:
print("Parsing error: " + str(e))

return data.toJSON()
return data.toJSON()
6 changes: 3 additions & 3 deletions settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"hosts": [{
"host": "localhost",
"port": 3333,
"port": 4068,
"name": "rig1",
"type": 0,
"type": 1,
"password": null
}],
"accessToken": ""
}
}