Update miner data and fix various bugs related to the fix. (#47)
* feature: fix influxdb data. * bug: fix an issue with some avalon stats parsing. * bug: add chip count for 1166 Pro. * bug: fix some issues with bosminer scanning and some data bugs. * bug: remove print statement. * bug: fix failed data gathering multicommand via graphql. * feature: add partial support for M50S+VK20 * version: bump version number. * bug: add chip count for M50S+VK20. * version: bump version number. * bug: attempt to fix offset check issue on BOS+. * bug: fix NoneType subscription on BOS+. * bug: add support for Vnish S17+. * bug: remove web references for Avalons. * bug: add support for VNish S17Pro. * bug: Try secondary identification method for antminers. * feature: fix a bunch of functionality for avalonminers. * bug: fix avalonminer fan speed being set as str. * bug: fix fans speeds being represented as strings. * bug: fix some get_fan formatting. * docs: update supported miners list, and fix A10X model name. * docs: update MinerData docstrings. * docs: update factory documentation.
This commit is contained in:
@@ -254,7 +254,7 @@ class CGMinerA10X(CGMiner, A10X):
|
||||
else:
|
||||
web_get_all = web_get_all["all"]
|
||||
|
||||
fan_data = [Fan(), Fan(), Fan(), Fan()]
|
||||
fans = [Fan() for _ in range(self.fan_count)]
|
||||
if web_get_all:
|
||||
try:
|
||||
spd = web_get_all["fansSpeed"]
|
||||
@@ -263,9 +263,9 @@ class CGMinerA10X(CGMiner, A10X):
|
||||
else:
|
||||
round((int(spd) * 6000) / 100)
|
||||
for i in range(self.fan_count):
|
||||
fan_data[i] = Fan(spd)
|
||||
fans[i].speed = spd
|
||||
|
||||
return fan_data
|
||||
return fans
|
||||
|
||||
async def get_pools(self, api_pools: dict = None) -> List[dict]:
|
||||
groups = []
|
||||
|
||||
@@ -236,7 +236,7 @@ class CGMinerT3HPlus(CGMiner, T3HPlus):
|
||||
else:
|
||||
web_get_all = web_get_all["all"]
|
||||
|
||||
fan_data = [Fan(), Fan(), Fan(), Fan()]
|
||||
fans = [Fan() for _ in range(self.fan_count)]
|
||||
if web_get_all:
|
||||
try:
|
||||
spd = web_get_all["fansSpeed"]
|
||||
@@ -245,9 +245,9 @@ class CGMinerT3HPlus(CGMiner, T3HPlus):
|
||||
else:
|
||||
round((int(spd) * 6000) / 100)
|
||||
for i in range(self.fan_count):
|
||||
fan_data[i] = Fan(spd)
|
||||
fans[i].speed = spd
|
||||
|
||||
return fan_data
|
||||
return fans
|
||||
|
||||
async def get_pools(self, api_pools: dict = None) -> List[dict]:
|
||||
groups = []
|
||||
|
||||
Reference in New Issue
Block a user