add ePIC UMC S21 support, fix HB generation by using capabilities

This commit is contained in:
John-Paul Compagnone
2024-02-10 19:35:46 -05:00
parent 17f5eade19
commit a76d1c6149
14 changed files with 118 additions and 28 deletions

View File

@@ -73,7 +73,9 @@ class BOSMinerWebAPI(BaseWebAPI):
login = {"luci_username": self.username, "luci_password": self.pwd}
url = f"http://{self.ip}:{self.port}/cgi-bin/luci"
headers = {
"User-Agent": "BTC Tools v0.1", # only seems to respond if this user-agent is set
"User-Agent": (
"BTC Tools v0.1"
), # only seems to respond if this user-agent is set
"Content-Type": "application/x-www-form-urlencoded",
}
await session.post(url, headers=headers, data=login)