mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-09 15:35:39 +02:00
Add SpoolBuddy System tab with live OS stats from Raspberry Pi
The daemon now collects CPU temp, core count, load average, memory/disk usage, OS info, and system uptime every heartbeat using stdlib-only reads from /proc and /sys. Stats are sent as a JSON blob in the heartbeat payload, stored in a new system_stats TEXT column, and displayed in a new "System" tab in SpoolBuddy Settings with color-coded usage bars.
This commit is contained in:
@@ -5016,6 +5016,15 @@ export interface SpoolBuddyDevice {
|
||||
uptime_s: number;
|
||||
update_status: string | null;
|
||||
update_message: string | null;
|
||||
system_stats: {
|
||||
os?: { os?: string; kernel?: string; arch?: string; python?: string };
|
||||
cpu_temp_c?: number;
|
||||
cpu_count?: number;
|
||||
load_avg?: number[];
|
||||
memory?: { total_mb?: number; available_mb?: number; used_mb?: number; percent?: number };
|
||||
disk?: { total_gb?: number; used_gb?: number; free_gb?: number; percent?: number };
|
||||
system_uptime_s?: number;
|
||||
} | null;
|
||||
online: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user