mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 16:56:54 +00:00
WeatherAsHtml() extended to 5-day-forecast (since Yahoo now provides such)
git-svn-id: https://svn.fhem.de/fhem/trunk@3291 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6e23c7df51
commit
7be41e4aac
@ -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('<tr><td width=%d>%s</td><td>%s: %s<br>min %s°C max %s°C</td></tr>',
|
||||
|
Loading…
x
Reference in New Issue
Block a user