because of constant DDOS attack on the worldweatheronline-network for last few days

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@8215 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
baumrasen 2015-03-15 07:32:49 +00:00
parent c6ece03bde
commit baa81f8603

View File

@ -174,7 +174,7 @@ sub WWO_RetrieveDataDirectly($)
my $fd = 0; my $fd = 0;
my $days_addon = "&fx=no"; my $days_addon = "&fx=no";
if ($days > 0) {$days_addon = "&num_of_days=" . $days;} if ($days > 0) {$days_addon = "&num_of_days=" . $days;}
my $theurl = "http://api.worldweatheronline.com/free/v1/weather.ashx?q=" . $location . "&extra=localObsTime&format=xml" . $days_addon . "&key=" . $apikey; my $theurl = "http://api2.worldweatheronline.com/free/v1/weather.ashx?q=" . $location . "&extra=localObsTime&format=xml" . $days_addon . "&key=" . $apikey;
#Debug "WWO: fecht url: $theurl"; #Debug "WWO: fecht url: $theurl";
# my $xml = GetFileFromURL("http://free.worldweatheronline.com/feed/weather.ashx?q=" . $location . "&extra=localObsTime&format=xml" . $days_addon . "&key=" . $apikey); # my $xml = GetFileFromURL("http://free.worldweatheronline.com/feed/weather.ashx?q=" . $location . "&extra=localObsTime&format=xml" . $days_addon . "&key=" . $apikey);
# my $xml = GetFileFromURL($theurl); # my $xml = GetFileFromURL($theurl);