Add per-meter usage chart on MeterDetail for device-fed meters

Consumes the existing /history endpoint (raw/hourly/daily-reading
telemetry) to show a consumption chart with a range picker, for
meters that have an mqtt_topic set.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-28 21:09:52 +00:00
parent f5b0b01ff1
commit 85c843c9ef
5 changed files with 517 additions and 7 deletions

View file

@ -12,7 +12,8 @@
"lucide-react": "^0.469.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.28.1"
"react-router-dom": "^6.28.1",
"recharts": "^3.10.1"
},
"devDependencies": {
"@types/react": "^18.3.12",