Compare commits

...

2 Commits

Author SHA1 Message Date
UpstreamData
9494018c12 bump version number 2022-08-05 12:08:05 -06:00
UpstreamData
0bc86c98c5 add support for some X19 models running vnish to be able to get miner type from them 2022-08-05 12:07:33 -06:00
2 changed files with 13 additions and 1 deletions

View File

@@ -533,6 +533,18 @@ class MinerFactory(metaclass=Singleton):
elif "am2-s17" in version["STATUS"][0]["Description"]:
model = "ANTMINER S17"
if not model:
stats = await self._send_api_command(str(ip), "stats")
if stats:
if stats["STATS"][0].get("Type"):
_model = stats["STATS"][0]["Type"].upper()
if "BB" in _model:
_model = _model.split("BB")[0]
if "XILINX" in _model:
_model = _model.split("XILINX")[0]
if "PRO" in _model and not " PRO" in _model:
model = _model.replace("PRO", " PRO")
if model:
# whatsminer have a V in their version string (M20SV41), remove everything after it
if "V" in model:

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyasic"
version = "0.14.4"
version = "0.14.5"
description = "A set of modules for interfacing with many common types of ASIC bitcoin miners, using both their API and SSH."
authors = ["UpstreamData <brett@upstreamdata.ca>"]
repository = "https://github.com/UpstreamData/pyasic"