mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-26 10:34:52 +00:00
DarkSkyAPI.pm: fix uninitialized value in localtime at FHEM/DarkSkyAPI.pm line 430
git-svn-id: https://svn.fhem.de/fhem/trunk@18286 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
16c9bad908
commit
372ee569a1
@ -1,5 +1,6 @@
|
|||||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||||
# Do not insert empty lines here, update check depends on it.
|
# Do not insert empty lines here, update check depends on it.
|
||||||
|
- bugfix: DarkSkyAPI: fix uninitialized value in localtime at line 430
|
||||||
- bugfix: 89_FULLY: fixed command set url
|
- bugfix: 89_FULLY: fixed command set url
|
||||||
- bugfix: 98_livetracking: fixed HTTP return
|
- bugfix: 98_livetracking: fixed HTTP return
|
||||||
- bugfix: 49_SSCam: fix event generation after snapshots created
|
- bugfix: 49_SSCam: fix event generation after snapshots created
|
||||||
|
@ -355,18 +355,6 @@ sub _ProcessingRetrieveData($$) {
|
|||||||
$data->{daily}->{data}->[$i]->{uvIndexTime}
|
$data->{daily}->{data}->[$i]->{uvIndexTime}
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'precipIntensity' =>
|
|
||||||
$data->{daily}->{data}->[$i]->{precipIntensity},
|
|
||||||
'precipIntensityMax' =>
|
|
||||||
$data->{daily}->{data}->[$i]
|
|
||||||
->{precipIntensityMax},
|
|
||||||
'precipIntensityMaxTime' => strftime(
|
|
||||||
"%a, %e %b %Y %H:%M",
|
|
||||||
localtime(
|
|
||||||
$data->{daily}->{data}->[$i]
|
|
||||||
->{precipIntensityMaxTime}
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'dewPoint' => int(
|
'dewPoint' => int(
|
||||||
sprintf( "%.1f",
|
sprintf( "%.1f",
|
||||||
$data->{daily}->{data}->[$i]->{dewPoint} )
|
$data->{daily}->{data}->[$i]->{dewPoint} )
|
||||||
@ -376,9 +364,6 @@ sub _ProcessingRetrieveData($$) {
|
|||||||
$data->{daily}->{data}->[$i]->{humidity} * 100,
|
$data->{daily}->{data}->[$i]->{humidity} * 100,
|
||||||
'cloudCover' =>
|
'cloudCover' =>
|
||||||
$data->{daily}->{data}->[$i]->{cloudCover} * 100,
|
$data->{daily}->{data}->[$i]->{cloudCover} * 100,
|
||||||
'precipType' =>
|
|
||||||
$data->{daily}->{data}->[$i]->{precipType},
|
|
||||||
|
|
||||||
'wind_direction' =>
|
'wind_direction' =>
|
||||||
$data->{daily}->{data}->[$i]->{windBearing},
|
$data->{daily}->{data}->[$i]->{windBearing},
|
||||||
'wind' => int(
|
'wind' => int(
|
||||||
@ -416,9 +401,6 @@ sub _ProcessingRetrieveData($$) {
|
|||||||
$data->{daily}->{data}->[$i]->{sunriseTime}
|
$data->{daily}->{data}->[$i]->{sunriseTime}
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
'precipProbability' =>
|
|
||||||
$data->{daily}->{data}->[$i]->{precipProbability},
|
|
||||||
'pressure' => int(
|
'pressure' => int(
|
||||||
sprintf( "%.1f",
|
sprintf( "%.1f",
|
||||||
$data->{daily}->{data}->[$i]->{pressure} )
|
$data->{daily}->{data}->[$i]->{pressure} )
|
||||||
@ -432,6 +414,12 @@ sub _ProcessingRetrieveData($$) {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$self->{cached}->{forecast}->{daily}[$i]{precipIntensityMax} = $data->{daily}->{data}->[$i]->{precipIntensityMax} if ( defined($data->{daily}->{data}->[$i]->{precipIntensityMax}) );
|
||||||
|
$self->{cached}->{forecast}->{daily}[$i]{precipIntensity} = $data->{daily}->{data}->[$i]->{precipIntensity} if ( defined($data->{daily}->{data}->[$i]->{precipIntensity}) );
|
||||||
|
$self->{cached}->{forecast}->{daily}[$i]{precipProbability} = $data->{daily}->{data}->[$i]->{precipProbability} if ( defined($data->{daily}->{data}->[$i]->{precipProbability}) );
|
||||||
|
$self->{cached}->{forecast}->{daily}[$i]{precipType} = $data->{daily}->{data}->[$i]->{precipType} if ( defined($data->{daily}->{data}->[$i]->{precipType}) );
|
||||||
|
$self->{cached}->{forecast}->{daily}[$i]{precipIntensityMaxTime} = strftime("%a, %e %b %Y %H:%M",localtime($data->{daily}->{data}->[$i]->{precipIntensityMaxTime}) ) if ( defined($data->{daily}->{data}->[$i]->{precipIntensityMaxTime}) );
|
||||||
|
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user