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

59_Wunderground: add some HttpUtils_NonblockingGet() settings

git-svn-id: https://svn.fhem.de/fhem/trunk@13750 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
jpawlowski 2017-03-20 17:07:12 +00:00
parent 3a8ba3ec6f
commit acb4c7134c

View File

@ -401,17 +401,19 @@ sub Wunderground_SendCommand($$) {
HttpUtils_NonblockingGet(
{
url => $URL,
timeout => AttrVal( $name, "timeout", "3" ),
hash => $hash,
method => "GET",
header => {
agent => 'FHEM-Wunderground/1.0.0',
'User-Agent' => 'FHEM-Wunderground/1.0.0',
Accept => 'application/json',
},
httpversion => "1.1",
url => $URL,
timeout => AttrVal( $name, "timeout", "3" ),
hash => $hash,
method => "GET",
callback => \&Wunderground_ReceiveCommand,
httpversion => "1.1",
loglevel => AttrVal( $name, "httpLoglevel", 4 ),
header => {
Agent => 'FHEM-Wunderground/1.0.0',
'User-Agent' => 'FHEM-Wunderground/1.0.0',
Accept => 'application/json;charset=UTF-8',
'Accept-Charset' => 'UTF-8',
},
}
);