Skip to content

feat(web): real-time energy chart with WebSocket + polling fallback#416

Open
pauljacobb wants to merge 1 commit into
AnnabelJoe:mainfrom
pauljacobb:feat/260-realtime-chart-websocket
Open

feat(web): real-time energy chart with WebSocket + polling fallback#416
pauljacobb wants to merge 1 commit into
AnnabelJoe:mainfrom
pauljacobb:feat/260-realtime-chart-websocket

Conversation

@pauljacobb
Copy link
Copy Markdown

Replaces static dummy data in DashboardChart.tsx with live data from the WebSocket endpoint, with automatic fallback to polling.

Acceptance criteria

  • Chart updates automatically when new meter readings arrive (WebSocket onmessage)
  • WebSocket connection established on dashboard load
  • Graceful fallback to polling (30s interval) if WebSocket unavailable
  • Connection status indicator shown to user (Live / Polling / Offline / Connecting)

Closes #260

…nnabelJoe#260)

- WebSocket connection established on dashboard load
- Chart updates automatically when new meter readings arrive
- Graceful fallback to polling (30s interval) if WebSocket unavailable
- Connection status indicator: Live / Polling / Offline / Connecting

Closes AnnabelJoe#260
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 31, 2026

@pauljacobb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add real-time energy generation chart using WebSocket updates

1 participant