2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 20:24:36 +00:00

38_netatmo: sanity check for dynamic interval

git-svn-id: https://svn.fhem.de/fhem/trunk@13855 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
moises 2017-03-30 12:14:54 +00:00
parent 229b2190d6
commit 304558ea94
2 changed files with 12 additions and 6 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it. # Do not insert empty lines here, update check depends on it.
- bugfix: 38_netatmo: sanity check for dynamic interval
- bugfix: 88_HMCCU: fixed bug in update of virtual devices - bugfix: 88_HMCCU: fixed bug in update of virtual devices
- feature: 70_BRAVIA: command remoteControl supports 'Netflix' - feature: 70_BRAVIA: command remoteControl supports 'Netflix'
- feature: 50_TelegramBot: favorite handling / hidden favorites / - feature: 50_TelegramBot: favorite handling / hidden favorites /

View File

@ -2923,9 +2923,14 @@ netatmo_parseReadings($$;$)
if(int($time) > 0 && defined($step_time)) { if(int($time) > 0 && defined($step_time)) {
my $nextdata = $time + $step_time + 30; my $nextdata = $time + $step_time + 30;
if($nextdata > (gettimeofday()+300))
{
RemoveInternalTimer($hash, "netatmo_poll"); RemoveInternalTimer($hash, "netatmo_poll");
InternalTimer($nextdata, "netatmo_poll", $hash); InternalTimer($nextdata, "netatmo_poll", $hash);
Log3 $name, 2, "$name: next dynamic update at ".FmtDateTime($nextdata); Log3 $name, 3, "$name: next dynamic update at ".FmtDateTime($nextdata);
} else {
Log3 $name, 2, "$name: invalid time for dynamic update: ".FmtDateTime($nextdata);
}
} }
} }