From 9967cbd3af449b17651533eb0247815250fbd10d Mon Sep 17 00:00:00 2001 From: Anton Roslund Date: Fri, 16 May 2025 22:49:48 +0200 Subject: [PATCH] 30 days for battery-stats as well --- static/js/status/battery-stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/status/battery-stats.js b/static/js/status/battery-stats.js index 1dd500d..bd63bf5 100644 --- a/static/js/status/battery-stats.js +++ b/static/js/status/battery-stats.js @@ -9,7 +9,7 @@ async function batteryStatsGraph() { ctx.fillText('Loading battery data...', canvas.width / 2, canvas.height / 2); try { - const response = await fetch('https://map.sthlm-mesh.se/api/v1/stats/battery-stats?days=7'); + const response = await fetch('https://map.sthlm-mesh.se/api/v1/stats/battery-stats?days=30'); const data = await response.json(); const labels = data.map(entry => entry.recorded_at);