mirror of
https://github.com/Roslund/sthlm-mesh.git
synced 2026-08-10 19:03:21 +02:00
deploy: 9967cbd3af
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -9,7 +9,7 @@ async function channelUtilizationHourlyAverage() {
|
||||
ctx.fillText('Loading...', canvas.width/2, canvas.height/2);
|
||||
|
||||
try {
|
||||
const response = await fetch('https://map.sthlm-mesh.se/api/v1/stats/channel-utilization-stats?days=7');
|
||||
const response = await fetch('https://map.sthlm-mesh.se/api/v1/stats/channel-utilization-stats?days=30');
|
||||
const data = await response.json();
|
||||
|
||||
const labels = data.map(entry => entry.recorded_at);
|
||||
|
||||
Reference in New Issue
Block a user