add wind_gust

This commit is contained in:
Marko Oldenburg 2021-06-09 20:30:35 +02:00
parent ccf5c56d5b
commit c8453b7a2e

View File

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