add factor 3.6 to windGust
This commit is contained in:
parent
fafab9e93c
commit
8e90cdb3c4
@ -236,7 +236,7 @@ sub _ProcessingRetrieveData($$) {
|
|||||||
),
|
),
|
||||||
'wind_direction' => $data->{currently}->{windBearing},
|
'wind_direction' => $data->{currently}->{windBearing},
|
||||||
'windGust' => int(
|
'windGust' => int(
|
||||||
sprintf( "%.1f", $data->{currently}->{windGust} ) + 0.5
|
sprintf( "%.1f", ($data->{currently}->{windGust} * 3.6) ) + 0.5
|
||||||
),
|
),
|
||||||
'cloudCover' => $data->{currently}->{cloudCover} * 100,
|
'cloudCover' => $data->{currently}->{cloudCover} * 100,
|
||||||
'uvIndex' => $data->{currently}->{uvIndex},
|
'uvIndex' => $data->{currently}->{uvIndex},
|
||||||
@ -441,7 +441,7 @@ sub _ProcessingRetrieveData($$) {
|
|||||||
),
|
),
|
||||||
'windGust' => int(
|
'windGust' => int(
|
||||||
sprintf( "%.1f",
|
sprintf( "%.1f",
|
||||||
$data->{daily}->{data}->[$i]->{windGust} )
|
($data->{daily}->{data}->[$i]->{windGust} * 3.6) )
|
||||||
+ 0.5
|
+ 0.5
|
||||||
),
|
),
|
||||||
'windGustTime' => strftime(
|
'windGustTime' => strftime(
|
||||||
@ -526,15 +526,23 @@ sub _ProcessingRetrieveData($$) {
|
|||||||
$data->{hourly}->{data}->[$i]->{cloudCover} * 100,
|
$data->{hourly}->{data}->[$i]->{cloudCover} * 100,
|
||||||
'precipType' =>
|
'precipType' =>
|
||||||
$data->{hourly}->{data}->[$i]->{precipType},
|
$data->{hourly}->{data}->[$i]->{precipType},
|
||||||
|
|
||||||
'wind_direction' =>
|
'wind_direction' =>
|
||||||
$data->{hourly}->{data}->[$i]->{windBearing},
|
$data->{hourly}->{data}->[$i]->{windBearing},
|
||||||
'wind' => sprintf( "%.1f",
|
'wind' => int(
|
||||||
($data->{hourly}->{data}->[$i]->{windSpeed} * 3.6) ),
|
sprintf( "%.1f",
|
||||||
'wind_speed' => sprintf( "%.1f",
|
($data->{hourly}->{data}->[$i]->{windSpeed} * 3.6) )
|
||||||
($data->{hourly}->{data}->[$i]->{windSpeed} * 3.6) ),
|
+ 0.5
|
||||||
'windGust' => sprintf( "%.1f",
|
),
|
||||||
$data->{hourly}->{data}->[$i]->{windGust} ),
|
'wind_speed' => int(
|
||||||
|
sprintf( "%.1f",
|
||||||
|
($data->{hourly}->{data}->[$i]->{windSpeed} * 3.6) )
|
||||||
|
+ 0.5
|
||||||
|
),
|
||||||
|
'windGust' => int(
|
||||||
|
sprintf( "%.1f",
|
||||||
|
($data->{hourly}->{data}->[$i]->{windGust} * 3.6) )
|
||||||
|
+ 0.5
|
||||||
|
),
|
||||||
'precipProbability' =>
|
'precipProbability' =>
|
||||||
$data->{hourly}->{data}->[$i]->{precipProbability},
|
$data->{hourly}->{data}->[$i]->{precipProbability},
|
||||||
'pressure' => sprintf( "%.1f",
|
'pressure' => sprintf( "%.1f",
|
||||||
|
Loading…
Reference in New Issue
Block a user