From d604381ec3015fbba114c1998199659c20be7853 Mon Sep 17 00:00:00 2001 From: dietmar63 <> Date: Sun, 17 Jul 2016 16:19:01 +0000 Subject: [PATCH] 98_Twilight: second fix for issue #55583 git-svn-id: https://svn.fhem.de/fhem/trunk@11808 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/59_Twilight.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fhem/FHEM/59_Twilight.pm b/fhem/FHEM/59_Twilight.pm index 3d523d9cb..a4ee32b81 100644 --- a/fhem/FHEM/59_Twilight.pm +++ b/fhem/FHEM/59_Twilight.pm @@ -412,11 +412,9 @@ sub Twilight_WeatherCallback(@) { $result = undef; } else { Log3 $hash, 4, "[$hash->{NAME}] got weather info from yahoo for $hash->{WEATHER}"; + Log3 $hash, 4, "[$hash->{NAME}] answer=$result" if defined $result; } - Log3 $hash, 4, "[$hash->{NAME}] answer=$result"; - Twilight_getWeatherHorizon($hash, $result); - #$hash->{CONDITION} = 50; if ($hash->{CONDITION} == 50 && $hash->{VERSUCHE} <= 10) { $hash->{VERSUCHE} += 1; @@ -424,6 +422,7 @@ sub Twilight_WeatherCallback(@) { 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);