Add H2C nozzle rack support — store and display 6-position tool-changer dock

The H2C printer has a tool-changer with a 6-nozzle rack, but
device.nozzle.info entries beyond index 1 were being dropped due to a
hardcoded 2-nozzle limit. This adds full nozzle rack storage, API
exposure, and a frontend card showing all dock positions.
This commit is contained in:
maziggy
2026-02-09 09:21:50 +01:00
parent 30fba33dcf
commit 48174d3a08
13 changed files with 155 additions and 49 deletions
+9
View File
@@ -129,6 +129,14 @@ export interface NozzleInfo {
nozzle_diameter: string; // e.g., "0.4"
}
export interface NozzleRackSlot {
id: number;
nozzle_type: string;
nozzle_diameter: string;
wear: number | null;
stat: number | null; // Nozzle status (e.g. mounted/docked)
}
export interface PrintOptions {
// Core AI detectors
spaghetti_detector: boolean;
@@ -186,6 +194,7 @@ export interface PrinterStatus {
ipcam: boolean; // Live view enabled
wifi_signal: number | null; // WiFi signal strength in dBm
nozzles: NozzleInfo[]; // Nozzle hardware info (index 0=left/primary, 1=right)
nozzle_rack: NozzleRackSlot[]; // H2C 6-nozzle tool-changer rack
print_options: PrintOptions | null; // AI detection and print options
// Calibration stage tracking
stg_cur: number; // Current stage number (-1 = not calibrating)