testing #29

Merged
marko merged 73 commits from testing into main 2023-01-07 12:49:01 +00:00
Showing only changes of commit 670c06bd2f - Show all commits

View File

@ -492,17 +492,11 @@ sub _ProcessingRetrieveData {
'visibility' => int(
sprintf( "%.1f", $data->{visibility} ) + 0.5
),
'dew_point' => int(
sprintf(
"%.1f", $data->{current}->{dew_point}
) + 0.5
),
};
}
when ('onecall') {
if ( !exists( $self->{cached}->{current} ) ) {
$self->{cached}->{license}{text} = 'none';
$self->{cached}->{current} = {
'temperature' => int(
sprintf( "%.1f", $data->{current}->{temp} )
@ -516,7 +510,10 @@ sub _ProcessingRetrieveData {
sprintf( "%.1f",
$data->{current}->{feels_like} ) + 0.5
),
'dew_point' => int(
sprintf( "%.1f",
$data->{current}->{dew_point} ) + 0.5
),
'humidity' => $data->{current}->{humidity},
'condition' => encode_utf8(
$data->{current}->{weather}->[0]