Added Comfort Index widget, updated stylings on other widgets, GPT Service with problems.

This commit is contained in:
2025-11-17 23:52:28 +01:00
parent 7f2aec96dd
commit 8c699bd121
14 changed files with 880 additions and 28 deletions

View File

@@ -58,6 +58,23 @@ export const devicesApi = {
apiClient.get<{ device_id: string; device_name: string; metrics: string[] }>(
`/devices/${id}/metrics/`
),
getComfortIndex: (id: string) =>
apiClient.get<{
device_id: string;
device_name: string;
overall_score: number;
rating: string;
components: {
temperature: number;
humidity: number;
air_quality: number;
acoustic: number;
light: number;
};
suggestions: string[];
raw_readings: Record<string, number>;
}>(`/devices/${id}/comfort_index/`),
};
// Telemetry API