From 8e882bda8c13c5b68796e2f4af9138da3144e331 Mon Sep 17 00:00:00 2001 From: Gabriel Fosse Date: Mon, 8 Apr 2024 13:19:25 -0700 Subject: [PATCH] Update averaging period to 5 minutes in israel-envista.js --- src/adapters/israel-envista.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/adapters/israel-envista.js b/src/adapters/israel-envista.js index 608c0a1b..0e095f94 100644 --- a/src/adapters/israel-envista.js +++ b/src/adapters/israel-envista.js @@ -94,7 +94,6 @@ async function handleStation(source, regionName, station) { url: stationUrl, headers: headers, }); - return new Promise((resolve) => { formatData(source, regionName, station, data, (measurements) => { resolve(measurements); @@ -122,7 +121,7 @@ function formatData(source, regionName, station, data, cb) { latitude: parseFloat(station.location.latitude), longitude: parseFloat(station.location.longitude), }, - averagingPeriod: { unit: 'hours', value: 0.25 }, // Believed to update every 15 minutes + averagingPeriod: { unit: 'minutes', value: 5 }, // Updates every 5 minutes attribution: [ { name: source.organization,