2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

38_netatmo: forecast data check

git-svn-id: https://svn.fhem.de/fhem/trunk@11950 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markus-m 2016-08-11 00:05:03 +00:00
parent 10cf444a27
commit d36dbbd08e
2 changed files with 113 additions and 110 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it.
- bugfix: 38_netatmo: forecast data check
- bugfix: 73_km200.pm: Bugfix for uninitialized values
- feature: 73_GasCalculator: New Readings "EnergyXLast" and "EnergyCostXLast"
- changed: 98_Hyperion: introducing new attribute hyperionNoSudo

View File

@ -2530,11 +2530,12 @@ netatmo_parseForecast($$)
readingsEndUpdate($hash,1);
}
if(defined($json->{body}{forecastDays}))
{
my $i = 0;
foreach my $forecastdata ( @{$json->{body}{forecastDays}})
{
if(defined($forecastdata->{rain}))
{
readingsBeginUpdate($hash);
@ -2642,6 +2643,7 @@ netatmo_parseForecast($$)
$i++;
}#foreach forecast
}#defined forecastdays
}#ok
}#json