Compare commits

..

13 Commits

Author SHA1 Message Date
UpstreamData
efd7c9bf87 version: bump version number. 2023-06-12 10:15:19 -06:00
UpstreamData
708d48dcc7 bug: fix caching, and update references to MinerFactory() to miner_factory 2023-06-12 10:14:20 -06:00
UpstreamData
44d6e4cdd4 feature: add caching to miner factory. 2023-06-12 09:44:47 -06:00
UpstreamData
b823e13694 refactor: refactor the format of miner types. 2023-06-09 11:42:25 -06:00
UpstreamData
442b21810d bug: fix not instantiating some web sessions properly. 2023-06-08 16:23:00 -06:00
UpstreamData
a2553aab9d bug: fix some naming issues, and add timeout to getting miner model. 2023-06-08 16:14:11 -06:00
UpstreamData
7cef0b3d3c feature: refactor get_miner to allow models to be selected as strings then selected in the top level get_miner function. 2023-06-08 09:33:55 -06:00
UpstreamData
6875ef54bd feature: add Avalonminer support in update miner factory, and add support for A1166 and A1246. 2023-06-07 15:53:07 -06:00
UpstreamData
22f2e2edcd bug: remove some redundant .upper() calls. 2023-06-07 13:46:18 -06:00
UpstreamData
3b1ad46a1a bug: remove some redundant .upper() calls. 2023-06-07 13:45:32 -06:00
UpstreamData
0b9df0f7c4 feature: refactor miner class list to be much more readable. 2023-06-07 13:44:50 -06:00
UpstreamData
c56686a18d feature: refactor to aiohttp and fix a lot of bugs with factory. Still needs support for some miners. 2023-06-07 11:37:52 -06:00
UpstreamData
d6a42238d0 feature: Start refactor to new style of get_miner. Needs testing and stability fixes. 2023-06-05 09:03:49 -06:00
4 changed files with 4 additions and 10 deletions

View File

@@ -370,9 +370,7 @@ class BOSMiner(BaseMiner):
return result.upper().strip()
async def get_model(self) -> Optional[str]:
if self.model is not None:
return self.model + " (BOS)"
return "? (BOS)"
return self.model + " (BOS)"
async def get_version(
self, api_version: dict = None, graphql_version: dict = None

View File

@@ -26,6 +26,4 @@ class Hiveon(BMMiner):
self.api_type = "Hiveon"
async def get_model(self) -> Optional[str]:
if self.model is not None:
return self.model + " (Hiveon)"
return "? (Hiveon)"
return self.model + " (Hiveon)"

View File

@@ -58,9 +58,7 @@ class VNish(BMMiner):
self.data_locations = VNISH_DATA_LOC
async def get_model(self) -> Optional[str]:
if self.model is not None:
return self.model + " (VNish)"
return "? (VNish)"
return self.model + " (VNISH)"
async def restart_backend(self) -> bool:
data = await self.web.restart_vnish()

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyasic"
version = "0.34.0"
version = "0.33.22"
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"