Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Commit 24134a5

Browse files
Goldshell Mini Doge Support (#375)
* Docs for Mini Doge * Mini Doge Recognition Support * Loading fixes * Fix for number of fans * Fixed expected_hashrate * Fixes for hashboards * Implemented uptime * Fixed uptime * Doc fixes * Fixes for byte * Copyright update * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Typo fix * File renames --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 038208e commit 24134a5

19 files changed

Lines changed: 340 additions & 29 deletions

File tree

docs/miners/goldshell/Byte.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
## Byte (Stock)
55

6-
- [x] Shutdowns
7-
- [x] Power Modes
6+
- [ ] Shutdowns
7+
- [ ] Power Modes
88
- [ ] Setpoints
99
- [ ] Presets
1010

docs/miners/goldshell/MiniDoge.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# pyasic
2+
## Mini Doge Models
3+
4+
## Mini Doge (Stock)
5+
6+
- [ ] Shutdowns
7+
- [ ] Power Modes
8+
- [ ] Setpoints
9+
- [ ] Presets
10+
11+
::: pyasic.miners.goldshell.bfgminer.MiniDoge.MiniDoge.GoldshellMiniDoge
12+
handler: python
13+
options:
14+
show_root_heading: false
15+
heading_level: 0
16+

docs/miners/supported_types.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,12 @@ details {
603603
<details>
604604
<summary>Stock Firmware Goldshells:</summary>
605605
<ul>
606+
<details>
607+
<summary>Mini Doge Series:</summary>
608+
<ul>
609+
<li><a href="../goldshell/MiniDoge#mini-doge-stock">Mini Doge (Stock)</a></li>
610+
</ul>
611+
</details>
606612
<details>
607613
<summary>X5 Series:</summary>
608614
<ul>

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ nav:
9898
- Innosilicon A10X: "miners/innosilicon/A10X.md"
9999
- Innosilicon A11X: "miners/innosilicon/A11X.md"
100100
- Goldshell Byte: "miners/goldshell/Byte.md"
101+
- Goldshell Mini Doge: "miners/goldshell/MiniDoge.md"
101102
- Goldshell X5: "miners/goldshell/X5.md"
102103
- Goldshell XMax: "miners/goldshell/XMax.md"
103104
- Goldshell XBox: "miners/goldshell/XBox.md"

pyasic/config/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,11 @@ def from_goldshell(cls, web_conf: dict) -> "MinerConfig":
254254
"""Constructs a MinerConfig object from web configuration for Goldshell miners."""
255255
return cls(pools=PoolConfig.from_am_modern(web_conf))
256256

257+
@classmethod
258+
def from_goldshell_list(cls, web_conf: list) -> "MinerConfig":
259+
"""Constructs a MinerConfig object from web configuration for Goldshell miners."""
260+
return cls(pools=PoolConfig.from_goldshell(web_conf))
261+
257262
@classmethod
258263
def from_goldshell_byte(cls, web_conf: dict) -> "MinerConfig":
259264
"""Constructs a MinerConfig object from web configuration for Goldshell Byte miners."""

pyasic/device/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ class GoldshellModels(MinerModelType):
480480
KDBoxII = "KD Box II"
481481
KDBoxPro = "KD Box Pro"
482482
Byte = "Byte"
483+
MiniDoge = "Mini Doge"
483484

484485
def __str__(self):
485486
return self.value

pyasic/miners/backends/bfgminer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ async def _get_fans(self, rpc_stats: dict = None) -> List[Fan]:
216216
)
217217
except LookupError:
218218
pass
219-
fans = [Fan(speed=d) if d else Fan() for d in fans_data]
219+
fans = [Fan(speed=d) for d in fans_data if d is not None]
220220

221221
return fans
222222

pyasic/miners/device/models/goldshell/Byte/Byte.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ------------------------------------------------------------------------------
2-
# Copyright 2022 Upstream Data Inc -
2+
# Copyright 2025 Upstream Data Inc -
33
# -
44
# Licensed under the Apache License, Version 2.0 (the "License"); -
55
# you may not use this file except in compliance with the License. -

pyasic/miners/device/models/goldshell/Byte/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ------------------------------------------------------------------------------
2-
# Copyright 2022 Upstream Data Inc -
2+
# Copyright 2025 Upstream Data Inc -
33
# -
44
# Licensed under the Apache License, Version 2.0 (the "License"); -
55
# you may not use this file except in compliance with the License. -
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and -
1414
# limitations under the License. -
1515
# ------------------------------------------------------------------------------
16-
from .Byte import Byte
16+
from .byte import Byte

pyasic/miners/device/models/goldshell/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
# See the License for the specific language governing permissions and -
1414
# limitations under the License. -
1515
# ------------------------------------------------------------------------------
16-
from .Byte import *
16+
from .byte import *
17+
from .mini_doge import *
1718
from .X5 import *
1819
from .XBox import *
1920
from .XMax import *

0 commit comments

Comments
 (0)