Add H2D Pro printer model support

- Add H2D Pro option to printer model dropdowns (add/edit modals)
- Support both O1E and O2D internal codes for H2D Pro compatibility
- Add O2D to RTSP-capable and chamber temp supported models
- Add H2DPRO variant to firmware check mapping
- Add H2D Pro and X1E to bug report issue template

Closes #192
This commit is contained in:
maziggy
2026-01-30 15:38:52 +01:00
parent c937e6781b
commit e87fe7ad87
6 changed files with 13 additions and 3 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ def supports_rtsp(model: str | None) -> bool:
- O1D: H2D
- O1C: H2C
- O1S: H2S
- O1E: H2D Pro
- O1E, O2D: H2D Pro
- N7: P2S
"""
if model:
@@ -83,7 +83,7 @@ def supports_rtsp(model: str | None) -> bool:
if model_upper.startswith(("X1", "H2", "P2")):
return True
# Internal codes for RTSP models
if model_upper in ("BL-P001", "C13", "O1D", "O1C", "O1S", "O1E", "N7"):
if model_upper in ("BL-P001", "C13", "O1D", "O1C", "O1S", "O1E", "O2D", "N7"):
return True
# A1/P1 and unknown models use chamber image protocol
return False
+1
View File
@@ -44,6 +44,7 @@ MODEL_TO_API_KEY = {
"X1E": "x1e",
"H2D Pro": "h2d-pro",
"H2D-Pro": "h2d-pro",
"H2DPRO": "h2d-pro",
}
# Reverse mapping: API key to model codes
+1
View File
@@ -29,6 +29,7 @@ CHAMBER_TEMP_SUPPORTED_MODELS = frozenset(
"O1C", # H2C
"O1S", # H2S
"O1E", # H2D Pro
"O2D", # H2D Pro (alternate code)
"N7", # P2S
]
)
+2 -1
View File
@@ -39,7 +39,8 @@ PRINTER_MODEL_ID_MAP = {
"A04": "A1 Mini",
# H2D series (Office/H series)
"O1D": "H2D",
"O2D": "H2D Pro",
"O1E": "H2D Pro", # Some devices report O1E
"O2D": "H2D Pro", # Some devices report O2D
}