fix bugs, change day_of_week formated

This commit is contained in:
Marko Oldenburg
2019-01-14 18:16:39 +01:00
parent 8e90cdb3c4
commit 6499d7f858
3 changed files with 26 additions and 74 deletions

View File

@ -286,10 +286,10 @@ sub Weather_WriteReadings($$) {
}
}
my $val= 'T: ' . $dataRef->{current}->{temperature} . '°C'
.' ' . substr($status_items_txt_i18n{1}, 0, 1) . ': ' . $dataRef->{current}->{humidity} . '%'
.' ' . substr($status_items_txt_i18n{0}, 0, 1) . ': ' . $dataRef->{current}->{wind} . 'km/h'
.' P: ' . $dataRef->{current}->{pressure} . 'hPa';
my $val= 'T: ' . $dataRef->{current}->{temperature} . ' °C'
.' ' . substr($status_items_txt_i18n{1}, 0, 1) . ': ' . $dataRef->{current}->{humidity} . ' %'
.' ' . substr($status_items_txt_i18n{0}, 0, 1) . ': ' . $dataRef->{current}->{wind} . ' km/h'
.' P: ' . $dataRef->{current}->{pressure} . ' hPa';
Log3 $hash, 4, "$name: $val";
readingsBulkUpdate($hash, 'state', $val);