added getting data for btminer

This commit is contained in:
UpstreamData
2022-05-05 11:37:04 -06:00
parent 64b5e6c032
commit b756c9e4a1
5 changed files with 120 additions and 153 deletions

View File

@@ -82,3 +82,20 @@ class BaseMiner:
async def send_config(self, yaml_config):
return None
async def get_data(self):
data = {
"IP": str(self.ip),
"Model": "Unknown",
"Hostname": "Unknown",
"Hashrate": 0,
"Temperature": 0,
"Pool User": "Unknown",
"Wattage": 0,
"Split": 0,
"Pool 1": "Unknown",
"Pool 1 User": "Unknown",
"Pool 2": "",
"Pool 2 User": "",
}
return data