change formated output, add hourly support for DarkSky - thanks to Lippie, multiple factor to wind speed and many bugfix

This commit is contained in:
Marko Oldenburg
2019-01-13 21:13:54 +01:00
parent 0fee7ac3bd
commit 957adf8454
3 changed files with 80 additions and 14 deletions

View File

@@ -300,9 +300,9 @@ sub _ProcessingRetrieveData($$) {
'pressure' =>
int( sprintf( "%.1f", $data->{main}->{pressure} ) + 0.5 ),
'wind' =>
int( sprintf( "%.1f", $data->{wind}->{speed} ) + 0.5 ),
int( sprintf( "%.1f", ($data->{wind}->{speed} * 3.6) ) + 0.5 ),
'wind_speed' =>
int( sprintf( "%.1f", $data->{wind}->{speed} ) + 0.5 ),
int( sprintf( "%.1f", ($data->{wind}->{speed} * 3.6) ) + 0.5 ),
'wind_direction' => $data->{wind}->{deg},
'cloudCover' => $data->{clouds}->{all},
'visibility' =>
@@ -415,12 +415,12 @@ sub _ProcessingRetrieveData($$) {
),
'wind' => int(
sprintf( "%.1f",
$data->{list}->[$i]->{wind}->{speed} )
($data->{list}->[$i]->{wind}->{speed} * 3.6) )
+ 0.5
),
'wind_speed' => int(
sprintf( "%.1f",
$data->{list}->[$i]->{wind}->{speed} )
($data->{list}->[$i]->{wind}->{speed} * 3.6) )
+ 0.5
),
'cloudCover' =>