change formated output, add hourly support for DarkSky - thanks to Lippie, multiple factor to wind speed and many bugfix
This commit is contained in:
@ -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} . 'mbar';
|
||||
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);
|
||||
@ -620,7 +620,7 @@ sub WeatherAsHtmlD($;$)
|
||||
<a name="Weatherdefine"></a>
|
||||
<b>Define</b><br><br>
|
||||
<ul>
|
||||
<code>define <name> Weather [API=<API>[,<apiotions>]] [apikey=<apikey>]
|
||||
<code>define <name> Weather [API=<API>[,<apioptions>]] [apikey=<apikey>]
|
||||
[location=<location>] [interval=<interval>] [lang=<lang>]</code><br><br>
|
||||
|
||||
|
||||
@ -783,7 +783,7 @@ sub WeatherAsHtmlD($;$)
|
||||
<a name="Weatherdefine"></a>
|
||||
<b>Define</b><br><br>
|
||||
<ul>
|
||||
<code>define <name> Weather [API=<API>[,<apiotions>]] [apikey=<apikey>]
|
||||
<code>define <name> Weather [API=<API>[,<apioptions>]] [apikey=<apikey>]
|
||||
[location=<location>] [interval=<interval>] [lang=<lang>]</code><br><br>
|
||||
|
||||
Die Parameter haben die folgende Bedeutung:<br>
|
||||
|
Reference in New Issue
Block a user