Open rucksman opened 3 years ago
The author summs up all RR1c for the next 24h
`
function sumFutureValue(mosmixStation, attribute, hours, forecastDate) {
var idx = getTimeIndex(mosmixStation, forecastDate);
assertAttributeExists(mosmixStation, attribute);
var sum = 0;
// sum x future values (x = hours), but not more than length of array
for (var i = idx; i < weatherForecast[mosmixStation][attribute].length && i < hours + idx; i++) {
if (!isNaN(weatherForecast[mosmixStation][attribute][i])) {
sum = sum + weatherForecast[mosmixStation][attribute][i];
}
}
return sum;
}
`
First of all thanks for this wonderful node.
I just checked which data could be useful for me und stumbled upon RR1c. You describe it as
payload.precipitationNext24h
. But in the official docs from DWD (mosmix_elementexls.xlsx) it saysTotal precipitation during the last hour consistent with significant weather
. So it is the precipitation for the past hour and not_ for the next 24 hours. Or do I miss something here?