mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +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:
parent
be292f1168
commit
2f51b047f3
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# 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.
|
# 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
|
- bugfix: 98_Hyperion: reporting Hyperion as off while clearall is active
|
||||||
- updated: 74_AMAD: New Minor Release 2.6 new 2 Media Readings,
|
- updated: 74_AMAD: New Minor Release 2.6 new 2 Media Readings,
|
||||||
new trigger for Mediastate MUST INSTALL AUTOMAGIC 1.31.0
|
new trigger for Mediastate MUST INSTALL AUTOMAGIC 1.31.0
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Release 01
|
# Release 04
|
||||||
|
|
||||||
package main;
|
package main;
|
||||||
|
|
||||||
@ -2156,6 +2156,12 @@ netatmo_parseReadings($$;$)
|
|||||||
my $readings = \@r;
|
my $readings = \@r;
|
||||||
$readings = $hash->{readings} if( defined($hash->{readings}) );
|
$readings = $hash->{readings} if( defined($hash->{readings}) );
|
||||||
if( $hash->{status} eq "ok" ) {
|
if( $hash->{status} eq "ok" ) {
|
||||||
|
|
||||||
|
if(scalar(@{$json->{body}}) == 0)
|
||||||
|
{
|
||||||
|
$hash->{status} = "no data";
|
||||||
|
}
|
||||||
|
|
||||||
foreach my $values ( @{$json->{body}}) {
|
foreach my $values ( @{$json->{body}}) {
|
||||||
my $time = $values->{beg_time};
|
my $time = $values->{beg_time};
|
||||||
my $step_time = $values->{step_time};
|
my $step_time = $values->{step_time};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user