2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-01 01:09:47 +00:00

59_Twilight: constat URL changed in $URL to fix problem:

https://forum.fhem.de/index.php/topic,55583.msg489421.html#msg489421

git-svn-id: https://svn.fhem.de/fhem/trunk@12139 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
dietmar63 2016-09-11 21:16:35 +00:00
parent 01489e1e05
commit 4c83acde0a

View File

@ -378,8 +378,8 @@ sub Twilight_CreateHttpParameterAndGetData($$) {
my $location = $hash->{WEATHER}; my $location = $hash->{WEATHER};
my $verbose = AttrVal($hash->{NAME}, "verbose", 3 ); my $verbose = AttrVal($hash->{NAME}, "verbose", 3 );
use constant URL => "http://query.yahooapis.com/v1/public/yql?q=select%%20*%%20from%%20weather.forecast%%20where%%20woeid=%s%%20and%%20u=%%27c%%27&format=%s&env=store%%3A%%2F%%2Fdatatables.org%%2Falltableswithkeys"; my $URL => "http://query.yahooapis.com/v1/public/yql?q=select%%20*%%20from%%20weather.forecast%%20where%%20woeid=%s%%20and%%20u=%%27c%%27&format=%s&env=store%%3A%%2F%%2Fdatatables.org%%2Falltableswithkeys";
my $url = sprintf(URL, $location, "json"); my $url = sprintf($URL, $location, "json");
Log3 $hash, 4, "[$hash->{NAME}] url=$url"; Log3 $hash, 4, "[$hash->{NAME}] url=$url";
my $param = { my $param = {