Compare commits

...

2 Commits

Author SHA1 Message Date
UpstreamData
b6c8c930a2 bump version number 2022-08-30 16:01:48 -06:00
UpstreamData
903bb93c4e add check_light() for bosminers by checking if delay_on exists in the Red LED directory 2022-08-30 10:51:22 -06:00
2 changed files with 7 additions and 3 deletions

View File

@@ -232,8 +232,12 @@ class BOSMiner(BaseMiner):
await conn.run("/etc/init.d/bosminer start")
async def check_light(self) -> bool:
if not self.light:
self.light = False
if self.light:
return self.light
data = await self.send_ssh_command("ls /sys/class/leds/'Red LED'/")
self.light = False
if "delay_on" in data:
self.light = True
return self.light
async def get_errors(self) -> list:

View File

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