From 30ee0927a1e9e30d995244d819dcc8febb983f29 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Thu, 21 Mar 2024 17:58:23 +0000 Subject: [PATCH] 12_OilFox.pm: add timeout Attribute (Forum #109102) git-svn-id: https://svn.fhem.de/fhem/trunk@28690 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/12_OilFox.pm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/fhem/FHEM/12_OilFox.pm b/fhem/FHEM/12_OilFox.pm index dedab3561..4f222efe9 100644 --- a/fhem/FHEM/12_OilFox.pm +++ b/fhem/FHEM/12_OilFox.pm @@ -50,6 +50,7 @@ BEGIN { modules attr AttrVal + AttrNum InternalTimer RemoveInternalTimer Log3 @@ -87,6 +88,7 @@ sub Initialize($) { "password " . "oilfox " . "interval " . + "timeout " . $readingFnAttributes; } @@ -300,7 +302,7 @@ sub APIAuth($) { HttpUtils_NonblockingGet({ url => API . "customer-api/v1/login", - timeout => 5, + timeout => AttrNum($name, "timeout", 45), hash => $hash, method => "POST", header => $header, @@ -406,7 +408,7 @@ sub get($) { HttpUtils_NonblockingGet({ url => API . "customer-api/v1/device", - timeout => 5, + timeout => AttrNum($name, "timeout", 45), hash => $hash, method => "GET", header => $header, @@ -487,7 +489,7 @@ sub getResponse($) { =item summary support for OilFox =begin html - +
define <name> OilFox
@@ -515,10 +517,10 @@ sub getResponse($) {