Skip to content

Commit

Permalink
Update averaging period to 5 minutes in israel-envista.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Fosse committed Apr 8, 2024
1 parent ef489de commit 8e882bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/adapters/israel-envista.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8e882bd

Please sign in to comment.