2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

59_LuftdatenInfo: improved reverse location lookup

git-svn-id: https://svn.fhem.de/fhem/trunk@14068 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
igami 2017-04-22 05:55:19 +00:00
parent ee29ecc4c1
commit 22519ab4e6

View File

@ -268,7 +268,10 @@ sub LuftdatenInfo_ParseHttpResponse($) {
my $address = $data->{address};
readingsSingleUpdate(
$hash, "location", "$address->{postcode} $address->{city}", 1
$hash, "location"
, "$address->{postcode} "
. ($address->{city} ? $address->{city} : $address->{town})
, 1
);
}
elsif($connection eq "remote"){