mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-07 19:04:20 +00:00
Exit update readings on empty return from http get request.
git-svn-id: https://svn.fhem.de/fhem/trunk@1350 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
52b7b3d16a
commit
c3637fdfb7
@ -121,6 +121,7 @@ sub Weather_RetrieveDataDirectly($)
|
||||
|
||||
my $fc = undef;
|
||||
my $xml = GetHttpFile("www.google.com:80", "/ig/api?weather=" . $location . "&hl=" . $lang);
|
||||
return 0 if($xml eq "");
|
||||
foreach my $l (split("<",$xml)) {
|
||||
#Log 1, "DEBUG WEATHER: line=\"$l\"";
|
||||
next if($l eq ""); # skip empty lines
|
||||
|
Loading…
x
Reference in New Issue
Block a user