# General

**URL:** https://discourse.nodered.org/c/general/7.md?page=604

[Latest](https://discourse.nodered.org/latest.md) · [Categories](https://discourse.nodered.org/categories.md) · [Tags](https://discourse.nodered.org/tags.md)

**Page:** 605

---

## [Contrib-tuya-smart randomly switching/resetting plugs](https://discourse.nodered.org/t/contrib-tuya-smart-randomly-switching-resetting-plugs/17179)

<div class="topic-metadata">

**Author:** [@antonio1000homens](https://discourse.nodered.org/u/antonio1000homens)\
**Replies:** 4\
**Last updated:** [13 February 2021 23:10 UTC](https://discourse.nodered.org/t/contrib-tuya-smart-randomly-switching-resetting-plugs/17179 "2021-02-13T23:10:00Z")

</div>

Even though I can successfully control switches, I find on occasion the switch flips to off and on again.. multiple switches and vendors The only clue is that the frequency of these random restarts appear increase with …

---

## [Clear Level Graph](https://discourse.nodered.org/t/clear-level-graph/40940)

<div class="topic-metadata">

**Author:** [@tawny\_alexa](https://discourse.nodered.org/u/tawny_alexa)\
**Replies:** 12\
**Last updated:** [13 February 2021 22:49 UTC](https://discourse.nodered.org/t/clear-level-graph/40940 "2021-02-13T22:49:52Z")

</div>

Hi, I created some text nodes and level graphs to display my data from mysql. It works fine and I got the result I wanted: but when I delete the hand sanitizer dispenser 1 (on my data base) this is what I get: The …

---

## [MYSQL - Some connect and some don't](https://discourse.nodered.org/t/mysql-some-connect-and-some-dont/40931)

<div class="topic-metadata">

**Author:** [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Replies:** 13\
**Last updated:** [13 February 2021 20:54 UTC](https://discourse.nodered.org/t/mysql-some-connect-and-some-dont/40931 "2021-02-13T20:54:57Z")

</div>

Hi, I have a flow where I quarry a db in AWS, all my data are in the same db but different tables. I had to reset my password and now not all the node-red-node-mysql nodes connect to the db. They are either "OK" or j…

---

## [After 1.2.9 update via snap, error while loading shared libraries: libatomic.so.1](https://discourse.nodered.org/t/after-1-2-9-update-via-snap-error-while-loading-shared-libraries-libatomic-so-1/40767)

<div class="topic-metadata">

**Author:** [@iamhermes](https://discourse.nodered.org/u/iamhermes)\
**Replies:** 17\
**Last updated:** [13 February 2021 19:39 UTC](https://discourse.nodered.org/t/after-1-2-9-update-via-snap-error-while-loading-shared-libraries-libatomic-so-1/40767 "2021-02-13T19:39:23Z")

</div>

another time the automatic snap update stops the instance only revert to latest version helps and node-red runs again how to fix the issue on my devices? ~ $ sudo snap revert node-red node-red reverted to 1.1.3 ~ $ un…

---

## [Azure AD authentication example](https://discourse.nodered.org/t/azure-ad-authentication-example/40937)

<div class="topic-metadata">

**Author:** [@cvb941](https://discourse.nodered.org/u/cvb941)\
**Replies:** 0\
**Last updated:** [13 February 2021 16:51 UTC](https://discourse.nodered.org/t/azure-ad-authentication-example/40937 "2021-02-13T16:51:17Z")

</div>

Hello everyone. Today, I wanted to set-up external authentication to my Node-RED instance editor, using the Azure Active Directory of our company. I could not find any guide on this specific task, so after searching arou…

---

## [Version 1.2.7 does not install some nodes](https://discourse.nodered.org/t/version-1-2-7-does-not-install-some-nodes/39393)

<div class="topic-metadata">

**Author:** [@pinie\_pinie](https://discourse.nodered.org/u/pinie_pinie)\
**Replies:** 15\
**Last updated:** [13 February 2021 16:21 UTC](https://discourse.nodered.org/t/version-1-2-7-does-not-install-some-nodes/39393 "2021-02-13T16:21:38Z")

</div>

Hi there, due to a crash I had to reinstall my system. I have now installed version 1.2.7 (automatically) Now I had to find out that I can no longer install node vl53lox, for example. On my old version 1.06 it works wi…

---

## [How to extract several bits of data from a json(?) string(?)](https://discourse.nodered.org/t/how-to-extract-several-bits-of-data-from-a-json-string/40935)

<div class="topic-metadata">

**Author:** [@haskle](https://discourse.nodered.org/u/haskle)\
**Replies:** 2\
**Last updated:** [13 February 2021 15:44 UTC](https://discourse.nodered.org/t/how-to-extract-several-bits-of-data-from-a-json-string/40935 "2021-02-13T15:44:56Z")

</div>

A local LAN url returns a message like this: {"data":{"did":"001D0A712D46","ts":1613228819,"conditions":\[{"lsid":352807,"data\_structure\_type":1,"txid":1,"temp": 32.2,"hum":57.2,"dew\_point": 18.7,"wet\_bulb": 26.6,"heat\_i…

---

## [\[IRC node\] Registering with NickServ](https://discourse.nodered.org/t/irc-node-registering-with-nickserv/40933)

<div class="topic-metadata">

**Author:** [@oliv3](https://discourse.nodered.org/u/oliv3)\
**Replies:** 0\
**Last updated:** [13 February 2021 14:17 UTC](https://discourse.nodered.org/t/irc-node-registering-with-nickserv/40933 "2021-02-13T14:17:28Z")

</div>

Hi, I have troubles getting my IRC bot registered with NickServ. I connect the second output of a "irc in" node to a function that checks msg.payload.type, and if it's "join" sends a message to an "irc out" node. I tri…

---

## [Can’t execute cp command to a samba share using nodered](https://discourse.nodered.org/t/can-t-execute-cp-command-to-a-samba-share-using-nodered/40916)

<div class="topic-metadata">

**Author:** [@danielo515](https://discourse.nodered.org/u/danielo515)\
**Replies:** 9\
**Last updated:** [13 February 2021 12:41 UTC](https://discourse.nodered.org/t/can-t-execute-cp-command-to-a-samba-share-using-nodered/40916 "2021-02-13T12:41:40Z")

</div>

Hello. I have a problem with a network share an the node-red integration, particularly the exec command. The command is a very simple copy one: cp /config/www/cam\_captures/ojo\_interior.jpg /config/samba/camera/1613148…

---

## [Incremental encoder for measuring system](https://discourse.nodered.org/t/incremental-encoder-for-measuring-system/40890)

<div class="topic-metadata">

**Author:** [@josecruz](https://discourse.nodered.org/u/josecruz)\
**Replies:** 3\
**Last updated:** [13 February 2021 11:44 UTC](https://discourse.nodered.org/t/incremental-encoder-for-measuring-system/40890 "2021-02-13T11:44:21Z")

</div>

Hi community. Im a newbie to node red and after google a lot, still unable to get a solution or direction. I have a incremental encoder with 2048ppr (AMT-103) attached to a moving table that i want to use to make measu…

---

## [Insert local image into html template](https://discourse.nodered.org/t/insert-local-image-into-html-template/40894)

<div class="topic-metadata">

**Author:** [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Replies:** 1\
**Last updated:** [13 February 2021 09:45 UTC](https://discourse.nodered.org/t/insert-local-image-into-html-template/40894 "2021-02-13T09:45:36Z")

</div>

Hello, I'm trying to insert image into my html template. I'm doing this way: but its not working. How to insert the image??

---

## [Chart flow don't visualize data](https://discourse.nodered.org/t/chart-flow-dont-visualize-data/40891)

<div class="topic-metadata">

**Author:** [@sabayke](https://discourse.nodered.org/u/sabayke)\
**Replies:** 3\
**Last updated:** [13 February 2021 09:43 UTC](https://discourse.nodered.org/t/chart-flow-dont-visualize-data/40891 "2021-02-13T09:43:34Z")

</div>

I have two flows (chart flow) and (gauge flow) To be honest i didn't change anything so i don't know why the flow is not working The gauge flow work nicely

---

## [3 temp readings, need to choose 2 closest and avg. them](https://discourse.nodered.org/t/3-temp-readings-need-to-choose-2-closest-and-avg-them/40699)

<div class="topic-metadata">

**Author:** [@Soiski](https://discourse.nodered.org/u/Soiski)\
**Replies:** 7\
**Last updated:** [13 February 2021 08:00 UTC](https://discourse.nodered.org/t/3-temp-readings-need-to-choose-2-closest-and-avg-them/40699 "2021-02-13T08:00:16Z")

</div>

Hi, I have three temp sensors with MQTT which are located outside of my house. One in East side, One in South and One in West. Currently using the total avg of these three to control the Air pump /HVAC. When it goes to …

---

## [Sort messages (rather than array within each message)](https://discourse.nodered.org/t/sort-messages-rather-than-array-within-each-message/40651)

<div class="topic-metadata">

**Author:** [@SewShulMeedeeUh](https://discourse.nodered.org/u/SewShulMeedeeUh)\
**Replies:** 12\
**Last updated:** [13 February 2021 05:19 UTC](https://discourse.nodered.org/t/sort-messages-rather-than-array-within-each-message/40651 "2021-02-13T05:19:24Z")

</div>

Using Node-RED v1.2.7. I have 3 XML files I am processing. I want to batch the 3 streams back into a single, ordered, stream but am unable to (and perhaps I am thinking data tables and not "flows") There can be over 1…

---

## [Watch Node on Deep Directory Tree Slow to Deploy](https://discourse.nodered.org/t/watch-node-on-deep-directory-tree-slow-to-deploy/40771)

<div class="topic-metadata">

**Author:** [@mored](https://discourse.nodered.org/u/mored)\
**Replies:** 5\
**Last updated:** [13 February 2021 00:55 UTC](https://discourse.nodered.org/t/watch-node-on-deep-directory-tree-slow-to-deploy/40771 "2021-02-13T00:55:59Z")

</div>

When there is just a single level, even with lots (+17,000 files), the watch node works surprisingly well but as soon as I add subdirectories and turn on "Watch sub-directories recursively", deploying then takes minutes …

---

## [Undefined JSON message payload](https://discourse.nodered.org/t/undefined-json-message-payload/40898)

<div class="topic-metadata">

**Author:** [@quentinP](https://discourse.nodered.org/u/quentinP)\
**Replies:** 38\
**Last updated:** [12 February 2021 23:41 UTC](https://discourse.nodered.org/t/undefined-json-message-payload/40898 "2021-02-12T23:41:28Z")

</div>

I'm trying to retrive a JSON string from a JSON object I'm recieving from my MQTT broker. However, when using the following function node: msg.payload = msg.MAC\_Address; return msg; I get the following error: 12/02/2…

---

## [Using a variable for Home Assistant sensor name](https://discourse.nodered.org/t/using-a-variable-for-home-assistant-sensor-name/19566)

<div class="topic-metadata">

**Author:** [@hulkhaugen](https://discourse.nodered.org/u/hulkhaugen)\
**Replies:** 10\
**Last updated:** [12 February 2021 19:25 UTC](https://discourse.nodered.org/t/using-a-variable-for-home-assistant-sensor-name/19566 "2021-02-12T19:25:25Z")

</div>

I've made a flow sequence with multiple inject nodes that go through the same process, so I need the end result to be unique. That is to be a Home Assistant sensor, but i need the sensor name to be based on the data that…

---

## [Create an object from msg.payload](https://discourse.nodered.org/t/create-an-object-from-msg-payload/40856)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 7\
**Last updated:** [12 February 2021 16:16 UTC](https://discourse.nodered.org/t/create-an-object-from-msg-payload/40856 "2021-02-12T16:16:24Z")

</div>

Hi, can someone please tell me how to create an object from any number of messages from my flow? msg1 = {}; msg1.payload = {"Spreizung KT": msg.payload}; msg2 = {}; msg2.payload = {"THub": Number(msg.payload)}; msg3 = …

---

## [Snapshop from a video stream](https://discourse.nodered.org/t/snapshop-from-a-video-stream/40662)

<div class="topic-metadata">

**Author:** [@Ino](https://discourse.nodered.org/u/Ino)\
**Replies:** 7\
**Last updated:** [12 February 2021 16:03 UTC](https://discourse.nodered.org/t/snapshop-from-a-video-stream/40662 "2021-02-12T16:03:49Z")

</div>

I am using a template node for streaming video. This stream is from a esp32 CAM and is working fine with a good fps rate; so I don't want to change this. code: /style img src="http://192.168.x.x" width="200px" Is the…

---

## [Transform Javascript to function node - Help needed](https://discourse.nodered.org/t/transform-javascript-to-function-node-help-needed/40413)

<div class="topic-metadata">

**Author:** [@SilSchmie](https://discourse.nodered.org/u/SilSchmie)\
**Replies:** 17\
**Last updated:** [12 February 2021 13:47 UTC](https://discourse.nodered.org/t/transform-javascript-to-function-node-help-needed/40413 "2021-02-12T13:47:06Z")

</div>

Hi guys, sorry for my bad English. I need some help to transform javascript code into a function node. The javascript is here: // 3-Punkt-Ansteuerung aus Stellsignal const Laufzeit = 153; // Laufzeit des Stellantrie…

---

## [Webhook to http-in](https://discourse.nodered.org/t/webhook-to-http-in/40864)

<div class="topic-metadata">

**Author:** [@KjellBrandes](https://discourse.nodered.org/u/KjellBrandes)\
**Replies:** 9\
**Last updated:** [12 February 2021 13:05 UTC](https://discourse.nodered.org/t/webhook-to-http-in/40864 "2021-02-12T13:05:44Z")

</div>

Hi all, I'm trying to configure a Webhook to send data directly to myNodeRed env. I have set up a http-in in my NodeRed environment, exposed the env. to internet and tried to send data from Postman against the internet …

---

## [Switch off automatic triggering after restart or deploy / Nach Neustart oder deploy das automatische triggern ausschalten](https://discourse.nodered.org/t/switch-off-automatic-triggering-after-restart-or-deploy-nach-neustart-oder-deploy-das-automatische-triggern-ausschalten/40825)

<div class="topic-metadata">

**Author:** [@Bigberg](https://discourse.nodered.org/u/Bigberg)\
**Replies:** 10\
**Last updated:** [12 February 2021 12:52 UTC](https://discourse.nodered.org/t/switch-off-automatic-triggering-after-restart-or-deploy-nach-neustart-oder-deploy-das-automatische-triggern-ausschalten/40825 "2021-02-12T12:52:19Z")

</div>

Google english...sorry: Good day Thank you for reading my question. I have created a circuit that controls the relay board with MQTT bodies. Now everything works the way I want it to. The trigger nodes are only init…

---

## [I want to send Data from PLC to an API](https://discourse.nodered.org/t/i-want-to-send-data-from-plc-to-an-api/40855)

<div class="topic-metadata">

**Author:** [@Swapnil](https://discourse.nodered.org/u/Swapnil)\
**Replies:** 19\
**Last updated:** [12 February 2021 11:20 UTC](https://discourse.nodered.org/t/i-want-to-send-data-from-plc-to-an-api/40855 "2021-02-12T11:20:47Z")

</div>

I want to send data on an API from my PLC. Here is my flow: \[{"id":"4fe68f34.52a3a","type":"function","z":"787783f2.48923c","name":"Send Data to API ","func":"msg.method = "GET";\\nmsg.url = "https:/xyz.net/app/storeDat…

---

## [Python3 Function Error](https://discourse.nodered.org/t/python3-function-error/40853)

<div class="topic-metadata">

**Author:** [@kajal](https://discourse.nodered.org/u/kajal)\
**Replies:** 3\
**Last updated:** [12 February 2021 09:17 UTC](https://discourse.nodered.org/t/python3-function-error/40853 "2021-02-12T09:17:13Z")

</div>

I am using Python3 function and facing this following errors, File "C:\\Python39\\lib\\json\_init\_.py", line 341, in loads. s = s.decode(detect\_encoding(s), 'surrogatepass') File "C:\\Python39\\lib\\encodings\\utf\_32\_le.py", …

---

## [How to catch 1 error many times](https://discourse.nodered.org/t/how-to-catch-1-error-many-times/40753)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 5\
**Last updated:** [12 February 2021 06:44 UTC](https://discourse.nodered.org/t/how-to-catch-1-error-many-times/40753 "2021-02-12T06:44:35Z")

</div>

Hi, I send the file using ftp (node-red-contrib-ftp) node, in case the sending fails, I want to resend with the specified number of times. If the specified number of times fails to send the file, the error message will…

---

## [Insufficient space ... in Docker container running Node-Red](https://discourse.nodered.org/t/insufficient-space-in-docker-container-running-node-red/40848)

<div class="topic-metadata">

**Author:** [@tobiaspe](https://discourse.nodered.org/u/tobiaspe)\
**Replies:** 0\
**Last updated:** [12 February 2021 04:41 UTC](https://discourse.nodered.org/t/insufficient-space-in-docker-container-running-node-red/40848 "2021-02-12T04:41:12Z")

</div>

I am running Node-Red in a Docker container with mapped data volumes to an Azure Storage Account. I am able to deploy Node-Red to an ACI, and having the deployed flow saved, using Azure File Share as a mapped Docker vol…

---

## [No Such File /dev/i2c-1](https://discourse.nodered.org/t/no-such-file-dev-i2c-1/40704)

<div class="topic-metadata">

**Author:** [@jenski](https://discourse.nodered.org/u/jenski)\
**Replies:** 6\
**Last updated:** [11 February 2021 21:57 UTC](https://discourse.nodered.org/t/no-such-file-dev-i2c-1/40704 "2021-02-11T21:57:47Z")

</div>

Hi, Been trying to solve this for several days and no luck! Attempting to communicate with BMP-388, Node Red debug returns "Error: ENOENT: no such file or directory, open '/dev/i2c-1'" Using node-red-contrib-i2c and f…

---

## [How to set a node input in the subflow?](https://discourse.nodered.org/t/how-to-set-a-node-input-in-the-subflow/40833)

<div class="topic-metadata">

**Author:** [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Replies:** 11\
**Last updated:** [11 February 2021 21:50 UTC](https://discourse.nodered.org/t/how-to-set-a-node-input-in-the-subflow/40833 "2021-02-11T21:50:46Z")

</div>

I am willing to include in my subflow a node which requires to set a value in its configuration (node HUE in). Am I allowed to do that? How can I set programmatically the Light ID required by the node (see screenshot) or…

---

## [Node-red dockerized USB camera](https://discourse.nodered.org/t/node-red-dockerized-usb-camera/40773)

<div class="topic-metadata">

**Author:** [@Marty1982](https://discourse.nodered.org/u/Marty1982)\
**Replies:** 4\
**Last updated:** [11 February 2021 20:15 UTC](https://discourse.nodered.org/t/node-red-dockerized-usb-camera/40773 "2021-02-11T20:15:54Z")

</div>

Hi all! I'm running node-red dockerized and i want to use a USB camera. The host detect the USB camera correctly but i have node-red inside a docker container and there comes the problem. I cannot use it inside the cont…

---

## [Modbus RTU to OPC-UA conversion](https://discourse.nodered.org/t/modbus-rtu-to-opc-ua-conversion/40829)

<div class="topic-metadata">

**Author:** [@Industrialogics](https://discourse.nodered.org/u/Industrialogics)\
**Replies:** 2\
**Last updated:** [11 February 2021 16:41 UTC](https://discourse.nodered.org/t/modbus-rtu-to-opc-ua-conversion/40829 "2021-02-11T16:41:59Z")

</div>

Looking to use Raspberry Pi as edge device. Want to import Modbus RTU/ASCII data from legacy controllers, format and wrap in OPC-UA in order to transmit to Amazon AWS cloud service. Would Node-Red be capable of handling…

[Previous page](https://discourse.nodered.org/c/general/7.md?page=603)

[Next page](https://discourse.nodered.org/c/general/7.md?page=605)
