From e86a98614ae8c6f3440496adbdff6fe28a7cc9dd Mon Sep 17 00:00:00 2001 From: borisneubert <> Date: Sat, 15 Jun 2013 20:45:51 +0000 Subject: [PATCH] WeatherAsHtml() extended to 5-day-forecast (since Yahoo now provides such) git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3291 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/59_Weather.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FHEM/59_Weather.pm b/FHEM/59_Weather.pm index af5a38034..ab1a29f8c 100755 --- a/FHEM/59_Weather.pm +++ b/FHEM/59_Weather.pm @@ -484,8 +484,8 @@ WeatherAsHtml($) ReadingsVal($d, "temp_c", ""), ReadingsVal($d, "humidity", ""), ReadingsVal($d, "wind_condition", "")); - for(my $i=1; $i<=2; $i++) { - # Yahoo provides only 2 days. + for(my $i=1; $i<=5; $i++) { + # Yahoo provides 5 days since June 2013 (previouly 2 days) #next if (ReadingsVal($d, "fc${i}_code", "") eq ""); # MH skip non existent entries $ret .= sprintf('