Commit Graph

21 Commits

Author SHA1 Message Date
rafaeldpsilva
c360fb81cd Switch to useWebSocketStore in RealtimeEnergyChartCard 2025-09-30 17:58:26 +01:00
rafaeldpsilva
83eaa7e121 Refactor sensor data handling for new API and WebSocket format
- Update SensorConsumptionTable to use new sensorStore and
websocketStore - Normalize sensor and reading interfaces for consistency
- Remove legacy energy data handling and mapping logic - Update API and
store types for new backend schema - Fetch sensors on mount in
SensorConsumptionTable - Simplify WebSocket data processing and remove
legacy code
2025-09-30 17:58:06 +01:00
rafaeldpsilva
90b6034465 Delete logs 2025-09-30 15:24:03 +01:00
rafaeldpsilva
5cb87ef5c5 Add device-type metrics and improve sensor capability detection
- Show device-specific metrics (e.g. brightness, setpoint) for lighting,
HVAC, and security sensors when no standard monitoring is present - Add
helper to infer monitoring capabilities from sensor type or name -
Animate sensor cards when recently updated - Remove debug console logs
from stores - Normalize sensor data structure and capability defaults in
store
2025-09-30 15:07:50 +01:00
rafaeldpsilva
3681890ec5 Improve sensor ID mapping and error handling for real-time data
- Add robust mapping from WebSocket sensor IDs to API sensor IDs -
Enhance error handling for backend connection issues - Remove legacy
room metrics summary from SensorManagementView - Add loading and error
states to sensor grid - Track recently updated sensors for UI feedback -
Normalize incoming sensor data for compatibility
2025-09-29 13:29:15 +01:00
rafaeldpsilva
3299472c85 Refactor stores for modularity and API type updates
- Split energy store into sensor, room, analytics, and websocket stores
- Add new analytics, room, sensor, and websocket stores - Update API
types for sensors (SensorDevice, SensorAction) - Update sensorsApi to
use new SensorDevice type - Add central index for store exports and
types - Refactor energy store to delegate to modular stores - Remove
legacy code and consolidate API logic
2025-09-25 17:09:42 +01:00
rafaeldpsilva
326746b5ef Refactor API and store logic for sensor and room management
- Add sensor name to SensorInfo interface - Update API client to
conditionally include auth headers - Add saveToken endpoint to authApi -
Refactor roomsApi to use getRoomNames endpoint - Change sensorsApi to
use /api/v1/sensors/get - Improve token handling and JWT decoding in
auth store - Refactor room loading to use API client in energy store -
Add helper to transform API sensor data - Update SensorManagementView to
load sensors from API and fix filtering
2025-09-25 14:48:48 +01:00
rafaeldpsilva
6510468768 Remove redundant comments and improve code formatting 2025-09-23 15:24:04 +01:00
rafaeldpsilva
a3d266d735 Add API integration for sensors and rooms management
Integrate sensorsApi and roomsApi services into energy store. Add API
state, loading/error handling, and async functions for fetching sensor
and room data. Update room loading logic to fetch from API. Expose new
API functions for analytics and health endpoints. Update
SensorManagementView to use localhost WebSocket for real-time updates.
2025-09-18 14:29:44 +01:00
rafaeldpsilva
faed09d3b6 Add API service layer, authentication store, and composables
- Implement API service modules for sensors, rooms, analytics, health,
and auth - Add Pinia auth store for JWT token management and validation
- Create Vue composables for API integration and state management -
Update settings and AI optimization views for code style and connection
URLs - Add test-websocket.html for local WebSocket testing
2025-09-18 14:29:36 +01:00
rafaeldpsilva
32c63628b6 Add analytics dashboard view and API integration
- Add AnalyticsView.vue for real-time API analytics - Update router to
include /analytics route - Add Analytics link to BottomNav - Improve
MetricCard layout for dashboard consistency - Update main.ts to
initialize global auth store - Add Dockerfile and .env for
containerization and config - Update README with complete API and
architecture overview - Disable Tailwind in main.scss for SCSS-only
styling
2025-09-18 14:28:01 +01:00
rafaeldpsilva
05baaca23c Add settings page and store with UI customization options
- Implement SettingsView with appearance, data, notifications, and
advanced tabs - Add settings store (Pinia) for theme, navigation,
notifications, and app config - Integrate settings store into HomeView
and BottomNav for theme and navigation mode - Add room management modal
and store methods for adding/removing rooms - Update
SensorManagementView with room management button and modal - Support
exporting/importing settings and resetting to defaults - Enable dark
mode via Tailwind config
2025-09-03 17:07:19 +01:00
rafaeldpsilva
1c96437e5a Add AIOptimizationView for managing AI optimizations 2025-09-03 16:40:46 +01:00
rafaeldpsilva
55a2d6d097 Show real-time room metrics and improve sensor cards
Add a summary of real-time metrics per room, including energy, CO2,
sensor count, and occupancy. Sensor cards now display live readings from
the store instead of mock data. Refactor card logic for reactivity and
update navigation colors for clarity.
2025-09-03 16:34:04 +01:00
rafaeldpsilva
eae15a111e Action modal 2025-09-03 14:25:37 +01:00
rafaeldpsilva
3a802554cb Delete counter.ts 2025-09-03 13:29:43 +01:00
rafaeldpsilva
044f301013 Add SCSS styles for base, components, layouts, and utilities (not on
use)
2025-09-02 16:19:20 +01:00
rafaeldpsilva
1522f70f08 sensor management page 2025-09-02 15:39:45 +01:00
rafaeldpsilva
42f9fa5aed updated Readme 2025-09-02 14:36:57 +01:00
rafaeldpsilva
c8ce6bd124 room-based monitoring 2025-09-02 14:25:28 +01:00
rafaeldpsilva
0db018f939 general dashboard 2025-09-02 14:19:05 +01:00