From 56f6c56ae051abd388baa68bc1f822cd3e7f7225 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 7 Jan 2023 22:01:42 +0000 Subject: [PATCH] =?UTF-8?q?F=C3=BCge=20wichtigen=20Kommentar=20wieder=20hi?= =?UTF-8?q?nzu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- switch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/switch.js b/switch.js index 6395ff3..bba226a 100644 --- a/switch.js +++ b/switch.js @@ -7,7 +7,7 @@ function runLoop() { { method: "POST", url: CONFIG.pollingUrl, body: '{"801":{"170":null}}', timeout: 10 }, function (res, error_code, error_msg, ud) { print("errors-http-post:", error_code, error_msg); - if (error_code === 0) { + if (error_code === 0) { // // do this so that during timeout no crash let parsedBody = JSON.parse(res.body); let production = parsedBody["801"]["170"]["101"]; let consumption = parsedBody["801"]["170"]["110"];