From 0cdec8df412074ae0e665361dedf0769f5d4a0e3 Mon Sep 17 00:00:00 2001 From: dietmar63 Date: Wed, 20 Jul 2016 18:30:59 +0000 Subject: [PATCH] 98_Twilight: fix for issue #55775 git-svn-id: https://svn.fhem.de/fhem/trunk@11824 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/59_Twilight.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/59_Twilight.pm b/fhem/FHEM/59_Twilight.pm index a4ee32b81..1d7707c5f 100644 --- a/fhem/FHEM/59_Twilight.pm +++ b/fhem/FHEM/59_Twilight.pm @@ -415,14 +415,15 @@ sub Twilight_WeatherCallback(@) { Log3 $hash, 4, "[$hash->{NAME}] answer=$result" if defined $result; } + Twilight_getWeatherHorizon($hash, $result); #$hash->{CONDITION} = 50; + if ($hash->{CONDITION} == 50 && $hash->{VERSUCHE} <= 10) { $hash->{VERSUCHE} += 1; Twilight_RepeatTimerSet($hash, $param->{mode}); return; } - Twilight_getWeatherHorizon($hash, $result); Twilight_TwilightTimes ($hash, $param->{mode}, $result); Log3 $hash, 3, "[$hash->{NAME}] " . ($hash->{VERSUCHE}+1) . " attempt(s) needed to get valid weather data from yahoo" if ($hash->{CONDITION} != 50 && $hash->{VERSUCHE} > 0);