From a2acba74f817c99ab1f067ee92e28631fef03ef9 Mon Sep 17 00:00:00 2001 From: tp1de Date: Thu, 5 Dec 2024 11:12:22 +0100 Subject: [PATCH] test --- lib/custom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/custom.js b/lib/custom.js index 3de9de5..8e5ab8c 100644 --- a/lib/custom.js +++ b/lib/custom.js @@ -440,8 +440,8 @@ async function resp(url, urls, init, type, telegram) { let r, typer, offsetr; try { - let loops = 15; - if (init) loops = 40; + let loops = 5; + if (init) loops = 10; for (let ii = 0; ii < loops; ii++) { await adapter.delay(1000); try { response = await ems_get(url); } catch (ee) { adapter.log.error(ee + " " + url); } @@ -456,7 +456,7 @@ async function resp(url, urls, init, type, telegram) { } else adapter.log.debug(ii + " - " + type + "/" + typer + " : " + response); //else if (ii == loops - 1) adapter.log.debug(ii + " - " + type + "/" + typer + " : " + response); - if (ii == 5 || ii == 20 || ii == 30) { await ems_put(urls, telegram); } + //if (ii == 5 || ii == 20 || ii == 30) { await ems_put(urls, telegram); } } } catch (e) { adapter.log.error(e); }