From fafab9e93ccbe58b2206ebdc9d77f72b0cfbd209 Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Mon, 14 Jan 2019 05:53:43 +0100 Subject: [PATCH] change wind speed to factor 3.6 for hourly --- DarkSkyAPI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DarkSkyAPI.pm b/DarkSkyAPI.pm index 02dbd7b..466d6f7 100644 --- a/DarkSkyAPI.pm +++ b/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' =>