2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-19 18:56:03 +00:00

38_netatmo: status "no data"

git-svn-id: https://svn.fhem.de/fhem/trunk@11967 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markus-m 2016-08-14 22:21:46 +00:00
parent be292f1168
commit 2f51b047f3
2 changed files with 8 additions and 1 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.
- change: 38_netatmo: status "no data"
- bugfix: 98_Hyperion: reporting Hyperion as off while clearall is active
- updated: 74_AMAD: New Minor Release 2.6 new 2 Media Readings,
new trigger for Mediastate MUST INSTALL AUTOMAGIC 1.31.0

View File

@ -10,7 +10,7 @@
#
#
##############################################################################
# Release 01
# Release 04
package main;
@ -2156,6 +2156,12 @@ netatmo_parseReadings($$;$)
my $readings = \@r;
$readings = $hash->{readings} if( defined($hash->{readings}) );
if( $hash->{status} eq "ok" ) {
if(scalar(@{$json->{body}}) == 0)
{
$hash->{status} = "no data";
}
foreach my $values ( @{$json->{body}}) {
my $time = $values->{beg_time};
my $step_time = $values->{step_time};