mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-18 03:54:17 +02:00
Wired up printer parts button
This commit is contained in:
@@ -56,6 +56,11 @@ export interface AMSUnit {
|
||||
tray: AMSTray[];
|
||||
}
|
||||
|
||||
export interface NozzleInfo {
|
||||
nozzle_type: string; // "stainless_steel" or "hardened_steel"
|
||||
nozzle_diameter: string; // e.g., "0.4"
|
||||
}
|
||||
|
||||
export interface PrinterStatus {
|
||||
id: number;
|
||||
name: string;
|
||||
@@ -83,6 +88,7 @@ export interface PrinterStatus {
|
||||
sdcard: boolean; // SD card inserted
|
||||
timelapse: boolean; // Timelapse recording active
|
||||
ipcam: boolean; // Live view enabled
|
||||
nozzles: NozzleInfo[]; // Nozzle hardware info (index 0=left/primary, 1=right)
|
||||
}
|
||||
|
||||
export interface PrinterCreate {
|
||||
@@ -1176,4 +1182,10 @@ export const api = {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ enable }),
|
||||
}),
|
||||
|
||||
// Request full status update from printer (pushall)
|
||||
refreshStatus: (printerId: number) =>
|
||||
request<ControlResponse>(`/printers/${printerId}/control/refresh`, {
|
||||
method: 'POST',
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user