fix of fix for CHANGED reading handling in 59_Weather.pm

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1206 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert
2012-01-22 15:54:51 +00:00
parent eb1e32dcb4
commit 6a2c856ef0

View File

@@ -60,9 +60,9 @@ sub Weather_UpdateReading($$$$$$) {
$r->{$reading}{VAL} = $value;
my $name= $hash->{NAME};
Log 1, "Weather $name: $reading= $value";
# Log 1, "Weather $name: $reading= $value";
$hash->{CHANGED}[$n]= "$key: $value";
$hash->{CHANGED}[$n]= "$reading: $value";
return 1;
}
@@ -125,6 +125,11 @@ sub Weather_GetUpdate($)
}
}
if(!$hash->{LOCAL}) {
DoTrigger($name, undef) if($init_done);
}
return 1;
}