mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-19 12:46:03 +00:00
fix of fix for CHANGED reading handling in 59_Weather.pm
git-svn-id: https://svn.fhem.de/fhem/trunk@1206 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
b6c9146469
commit
8ffdb0e62f
@ -60,9 +60,9 @@ sub Weather_UpdateReading($$$$$$) {
|
|||||||
$r->{$reading}{VAL} = $value;
|
$r->{$reading}{VAL} = $value;
|
||||||
|
|
||||||
my $name= $hash->{NAME};
|
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;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -125,6 +125,11 @@ sub Weather_GetUpdate($)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!$hash->{LOCAL}) {
|
||||||
|
DoTrigger($name, undef) if($init_done);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user