2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-15 22:26:04 +00:00
because of constant DDOS attack on the worldweatheronline-network for last few days

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

View File

@ -174,7 +174,7 @@ sub WWO_RetrieveDataDirectly($)
my $fd = 0;
my $days_addon = "&fx=no";
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";
# my $xml = GetFileFromURL("http://free.worldweatheronline.com/feed/weather.ashx?q=" . $location . "&extra=localObsTime&format=xml" . $days_addon . "&key=" . $apikey);
# my $xml = GetFileFromURL($theurl);