patch-wind_gustForOpenWeatherMapAPI #2

Merged
marko merged 2 commits from patch-wind_gustForOpenWeatherMapAPI into devel 2021-06-09 18:41:30 +00:00
Showing only changes of commit c8453b7a2e - Show all commits

View File

@ -423,6 +423,10 @@ sub _ProcessingRetrieveData {
sprintf( "%.1f", ( $data->{wind}->{speed} * 3.6 ) ) sprintf( "%.1f", ( $data->{wind}->{speed} * 3.6 ) )
+ 0.5 + 0.5
), ),
'wind_gust' => int(
sprintf( "%.1f", ( $data->{wind}->{gust} * 3.6 ) )
+ 0.5
),
'wind_direction' => $data->{wind}->{deg}, 'wind_direction' => $data->{wind}->{deg},
'cloudCover' => $data->{clouds}->{all}, 'cloudCover' => $data->{clouds}->{all},
'code' => $codes{ $data->{weather}->[0]->{id} }, 'code' => $codes{ $data->{weather}->[0]->{id} },
@ -553,6 +557,15 @@ sub _ProcessingRetrieveData {
) )
) + 0.5 ) + 0.5
), ),
'wind_gust' => int(
sprintf(
"%.1f",
(
$data->{list}->[$i]->{wind}
->{gust} * 3.6
)
) + 0.5
),
'cloudCover' => 'cloudCover' =>
$data->{list}->[$i]->{clouds}->{all}, $data->{list}->[$i]->{clouds}->{all},
'code' => $codes{ 'code' => $codes{