30 days for battery-stats as well

This commit is contained in:
Anton Roslund
2025-05-16 22:49:48 +02:00
parent 65c92b84b7
commit 9967cbd3af
+1 -1
View File
@@ -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);