2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

59_Weather.pm: RearmTimer even after error

git-svn-id: https://svn.fhem.de/fhem/trunk@11135 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2016-03-28 13:48:31 +00:00
parent fce6448b65
commit 6d6575d3fb

View File

@ -151,6 +151,7 @@ sub Weather_RetrieveDataFinished($$$) {
readingsBulkUpdate($hash, "lastError", $err);
readingsBulkUpdate($hash, "validity", "stale");
readingsEndUpdate($hash, $doTrigger);
Weather_RearmTimer($hash, gettimeofday()+$hash->{INTERVAL});
return;
}
@ -163,6 +164,7 @@ sub Weather_RetrieveDataFinished($$$) {
readingsBulkUpdate($hash, "lastError", $err);
readingsBulkUpdate($hash, "validity", "stale");
readingsEndUpdate($hash, $doTrigger);
Weather_RearmTimer($hash, gettimeofday()+$hash->{INTERVAL});
return;
}
@ -176,6 +178,7 @@ sub Weather_RetrieveDataFinished($$$) {
readingsBulkUpdate($hash, "pubDateRemote", $pubDate);
readingsBulkUpdate($hash, "validity", "stale");
readingsEndUpdate($hash, $doTrigger);
Weather_RearmTimer($hash, gettimeofday()+$hash->{INTERVAL});
return;
} else {
my $ts= defined($hash->{READINGS}{pubDateTs}) ? $hash->{READINGS}{pubDateTs}{VAL} : 0;
@ -188,6 +191,7 @@ sub Weather_RetrieveDataFinished($$$) {
readingsBulkUpdate($hash, "pubDateRemote", $pubDate);
readingsBulkUpdate($hash, "validity", "stale");
readingsEndUpdate($hash, $doTrigger);
Weather_RearmTimer($hash, gettimeofday()+$hash->{INTERVAL});
return;
}
}
@ -310,7 +314,7 @@ sub Weather_RetrieveDataFinished($$$) {
readingsEndUpdate($hash, $doTrigger);
Weather_RearmTimer($hash, gettimeofday()+$hash->{INTERVAL});
return;
}