show system status in status page

This commit is contained in:
proddy
2025-11-26 13:59:34 +01:00
parent cc7ac5b911
commit badbd9c6fe
2 changed files with 32 additions and 6 deletions

View File

@@ -2,13 +2,15 @@ import type { busConnectionStatus } from 'app/main/types';
import type { NetworkConnectionStatus } from './network';
// match SYSTEM_STATUS in System.h
export enum SystemStatusCodes {
SYSTEM_STATUS_NORMAL = 0,
SYSTEM_STATUS_PENDING_UPLOAD = 1,
SYSTEM_STATUS_UPLOADING = 100,
SYSTEM_STATUS_ERROR_UPLOAD = 3,
SYSTEM_STATUS_PENDING_RESTART = 4,
SYSTEM_STATUS_RESTART_REQUESTED = 5
SYSTEM_STATUS_RESTART_REQUESTED = 5,
SYSTEM_STATUS_INVALID_GPIO = 6
}
export interface SystemStatus {
@@ -50,7 +52,7 @@ export interface SystemStatus {
model: string;
has_loader: boolean;
has_partition: boolean;
status: number; // SystemStatusCodes which matches SYSTEM_STATUS in System.h
status: number; // System Status Codes which matches SYSTEM_STATUS in System.h
temperature?: number;
}