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:
parent
fce6448b65
commit
6d6575d3fb
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user