little change

This commit is contained in:
Marko Oldenburg 2019-03-05 21:01:23 +01:00
parent a5493e992d
commit 31256f1a17

View File

@ -835,11 +835,13 @@ sub WeatherAsHtmlH($;$$) {
if(defined($h->{READINGS}->{"${fc}${i}_low_c"}) and $h->{READINGS}->{"${fc}${i}_low_c"}){ if(defined($h->{READINGS}->{"${fc}${i}_low_c"}) and $h->{READINGS}->{"${fc}${i}_low_c"}){
$ret .= sprintf( '<td class="weatherMin">min %s°C</td>', $ret .= sprintf( '<td class="weatherMin">min %s°C</td>',
ReadingsVal( $d, "${fc}${i}_low_c", " - " ) ); ReadingsVal( $d, "${fc}${i}_low_c", " - " ) );
}else{ }
else {
$ret .= sprintf( '<td class="weatherMin"> %s°C</td>', $ret .= sprintf( '<td class="weatherMin"> %s°C</td>',
ReadingsVal( $d, "${fc}${i}_temperature", " - " ) ); ReadingsVal( $d, "${fc}${i}_temperature", " - " ) );
} }
} }
$ret .= '</tr>'; $ret .= '</tr>';
# wind | max # wind | max
@ -851,6 +853,7 @@ sub WeatherAsHtmlH($;$$) {
ReadingsVal( $d, "${fc}${i}_high_c", " - " ) ); ReadingsVal( $d, "${fc}${i}_high_c", " - " ) );
} }
} }
$ret .= "</tr></table>"; $ret .= "</tr></table>";
return $ret; return $ret;