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:
parent
ee29ecc4c1
commit
22519ab4e6
@ -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"){
|
||||
|
Loading…
x
Reference in New Issue
Block a user