docs for settings mismatches

This commit is contained in:
Børge Holm-Wennberg
2024-07-29 10:45:22 +02:00
parent 8ec88e385a
commit 00cf1449f9
4 changed files with 5 additions and 4 deletions

View File

@@ -255,7 +255,7 @@ if __name__ == "__main__":
```python
from pyasic import settings
settings.update("default_antminer_password", "my_pwd")
settings.update("default_antminer_web_password", "my_pwd")
```
##### Default values:

View File

@@ -249,7 +249,7 @@ if __name__ == "__main__":
```python
from pyasic import settings
settings.update("default_antminer_password", "my_pwd")
settings.update("default_antminer_web_password", "my_pwd")
```
##### Default values:

View File

@@ -15,7 +15,8 @@ Settings options:
- `antminer_mining_mode_as_str`
- `default_whatsminer_password`
- `default_innosilicon_password`
- `default_antminer_password`
- `default_antminer_web_password`
- `default_antminer_ssh_password`
- `default_bosminer_password`
- `default_vnish_password`
- `default_goldshell_password`

View File

@@ -834,7 +834,7 @@ class MinerFactory:
async def _get_model_antminer_web(self, ip: str) -> str | None:
# last resort, this is slow
auth = httpx.DigestAuth(
"root", settings.get("default_antminer_password", "root")
"root", settings.get("default_antminer_web_password", "root")
)
web_json_data = await self.send_web_command(
ip, "/cgi-bin/get_system_info.cgi", auth=auth