2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00
git-svn-id: https://svn.fhem.de/fhem/trunk@6248 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2014-07-12 22:37:59 +00:00
parent 58fb8b3360
commit 115b55868d

View File

@ -639,6 +639,7 @@ netatmo_parsePublic($$)
$hash->{status} = $json->{error}{message} if( $json->{error} );
if( $hash->{status} eq "ok" ) {
if( $hash->{Lat} ) {
my $ii = 0;
readingsBeginUpdate($hash);
my $found = 0;
my $devices = $json->{body};
@ -655,12 +656,11 @@ netatmo_parsePublic($$)
my $type = $device->{measures}->{$module}->{type}[$i];
$hash->{".updateTimestamp"} = FmtDateTime($timestamp);
$hash->{CHANGETIME}[$i++] = FmtDateTime($timestamp);
$hash->{CHANGETIME}[$ii++] = FmtDateTime($timestamp);
readingsBulkUpdate( $hash, $type, $value, 1 );
++$i;
}
last;
}
}