change license reading

This commit is contained in:
Marko Oldenburg
2019-01-10 14:58:51 +01:00
parent 9c9e790d88
commit 9fddd33c83
3 changed files with 7 additions and 4 deletions

View File

@@ -250,6 +250,7 @@ sub _ProcessingRetrieveData($$) {
if ( $self->{endpoint} eq 'weather' ) {
$self->{cached}->{country} = $data->{sys}->{country};
$self->{cached}->{city} = $data->{name};
$self->{cached}->{license}{text} = 'none';
$self->{cached}->{current} = {
'temperature' => int(
sprintf( "%.1f", ( $data->{main}->{temp} - 273.15 )