2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

fixed: missing GEO data will return empty value, not a question mark

git-svn-id: https://svn.fhem.de/fhem/trunk@3609 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2013-08-07 20:58:39 +00:00
parent 398c5a87a1
commit b1971afa0e

View File

@ -230,9 +230,9 @@ OWO_GetStatus($;$){
if(defined($user) && defined($station)){
Log $loglevel, "openweather $name started: SendData";
my $lat = AttrVal("global", "latitude", "?");
my $lon = AttrVal("global", "longitude", "?");
my $alt = AttrVal("global", "altitude", "?");
my $lat = AttrVal("global", "latitude", "");
my $lon = AttrVal("global", "longitude", "");
my $alt = AttrVal("global", "altitude", "");
my $urlString = AttrVal($name, "owoSendUrl", "http://openweathermap.org/data/post");
my ($p1, $p2) = split("//", $urlString);