diff --git a/fhem/FHEM/59_LuftdatenInfo.pm b/fhem/FHEM/59_LuftdatenInfo.pm index 4507819ba..2afc4edc5 100644 --- a/fhem/FHEM/59_LuftdatenInfo.pm +++ b/fhem/FHEM/59_LuftdatenInfo.pm @@ -195,7 +195,7 @@ sub LuftdatenInfo_GetHttpResponse($$) { if($connection eq "remote"){ my $param = { - url => "http://api.luftdaten.info/v1/sensor/$id", + url => "http://api.luftdaten.info/v1/sensor/$id/", timeout => $timeout, hash => $hash, method => "GET", @@ -301,7 +301,9 @@ sub LuftdatenInfo_ParseHttpResponse($) { } } - readingsBulkUpdateIfChanged($hash, "latitude", $latitude); readingsBulkUpdateIfChanged($hash, "longitude", $longitude); readingsBulkUpdate($hash, "state", "active"); + readingsBulkUpdateIfChanged($hash, "latitude", $latitude); + readingsBulkUpdateIfChanged($hash, "longitude", $longitude); + readingsBulkUpdate($hash, "state", "active"); readingsEndUpdate($hash, 1); my $SENSORID2 = InternalVal($SELF, "SENSORID2", undef); @@ -369,7 +371,7 @@ sub LuftdatenInfo_ParseHttpResponse($) { readingsBulkUpdate($hash, "signal", $1); } } - + readingsBulkUpdate($hash, "state", "active"); readingsEndUpdate($hash, 1); } @@ -420,9 +422,12 @@ sub LuftdatenInfo_statusRequest($) { (en | de)