From f1db5e868b6d00195c221837e6ae4d0e7dc17283 Mon Sep 17 00:00:00 2001 From: LeonGaultier Date: Mon, 14 Jan 2019 04:55:57 +0000 Subject: [PATCH] DarkSkyAPI: fix hourly wind at factor 3.6 git-svn-id: https://svn.fhem.de/fhem/trunk@18245 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/CHANGED | 1 + fhem/FHEM/DarkSkyAPI.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/CHANGED b/fhem/CHANGED index 7c1d07943..1f36ca088 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfixe: DarkSkyAPI: fix hourly wind at factor 3.6 - new: 44_ROLLO: Universal module to precisely control shutters/blinds which support only open/close/stop - bugfix: 59_Weather: DarkSky and OpenWeatherMapAPI change formated output, diff --git a/fhem/FHEM/DarkSkyAPI.pm b/fhem/FHEM/DarkSkyAPI.pm index 5f6f720cc..6eae07d48 100644 --- a/fhem/FHEM/DarkSkyAPI.pm +++ b/fhem/FHEM/DarkSkyAPI.pm @@ -530,9 +530,9 @@ sub _ProcessingRetrieveData($$) { 'wind_direction' => $data->{hourly}->{data}->[$i]->{windBearing}, 'wind' => sprintf( "%.1f", - $data->{hourly}->{data}->[$i]->{windSpeed} ), + ($data->{hourly}->{data}->[$i]->{windSpeed} * 3.6) ), 'wind_speed' => sprintf( "%.1f", - $data->{hourly}->{data}->[$i]->{windSpeed} ), + ($data->{hourly}->{data}->[$i]->{windSpeed} * 3.6) ), 'windGust' => sprintf( "%.1f", $data->{hourly}->{data}->[$i]->{windGust} ), 'precipProbability' =>