From 79ebfc099888e9ffd2264964671492414e58d6d2 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: svn://svn.code.sf.net/p/fhem/code/trunk@3291 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/59_Weather.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/59_Weather.pm b/fhem/FHEM/59_Weather.pm index af5a38034..ab1a29f8c 100755 --- a/fhem/FHEM/59_Weather.pm +++ b/fhem/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('%s%s: %s
min %s°C max %s°C',