From d850b9580a07be2965cde019bc9848325a42cfb6 Mon Sep 17 00:00:00 2001 From: igami Date: Sat, 22 Apr 2017 05:55:19 +0000 Subject: [PATCH] 59_LuftdatenInfo: improved reverse location lookup git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14068 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/59_LuftdatenInfo.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/FHEM/59_LuftdatenInfo.pm b/FHEM/59_LuftdatenInfo.pm index 9e4c0ec9f..63858da63 100644 --- a/FHEM/59_LuftdatenInfo.pm +++ b/FHEM/59_LuftdatenInfo.pm @@ -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"){