# General

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

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

**Page:** 495

---

## [Dashboard Error "Connection Lost"](https://discourse.nodered.org/t/dashboard-error-connection-lost/7965)

<div class="topic-metadata">

**Author:** [@smalhao](https://discourse.nodered.org/u/smalhao)\
**Replies:** 49\
**Last updated:** [17 September 2021 13:28 UTC](https://discourse.nodered.org/t/dashboard-error-connection-lost/7965 "2021-09-17T13:28:36Z")

</div>

I'm having a problem with the dashboard which is as follows, sometimes when the Google Chrome browser does refresh I get a "Connection Lost" error. The sensor data upload server is connected to the network and I am progr…

---

## [RPI-GPIO-IN not giving the expected output](https://discourse.nodered.org/t/rpi-gpio-in-not-giving-the-expected-output/51109)

<div class="topic-metadata">

**Author:** [@FeliceM](https://discourse.nodered.org/u/FeliceM)\
**Replies:** 19\
**Last updated:** [17 September 2021 12:21 UTC](https://discourse.nodered.org/t/rpi-gpio-in-not-giving-the-expected-output/51109 "2021-09-17T12:21:32Z")

</div>

I have setup four nodes using the RPI-GPIO-In nodes. I am aiming at storing alarms into Influxdb. If the GPIO is High the function output "1" if GPIO is low the function output a "0". The nodes work correctly when I in…

---

## [Problem using msg data in service node](https://discourse.nodered.org/t/problem-using-msg-data-in-service-node/51142)

<div class="topic-metadata">

**Author:** [@burton666](https://discourse.nodered.org/u/burton666)\
**Replies:** 4\
**Last updated:** [17 September 2021 11:34 UTC](https://discourse.nodered.org/t/problem-using-msg-data-in-service-node/51142 "2021-09-17T11:34:30Z")

</div>

I have tride to create a flow that dims my spotligts depending on the reading from a lux-sensor. But can't figure out how to get the "dimLevel" into my spotligt-service-node. I have tried using debug-nodes and it looks f…

---

## [How to change the network interface default node-red chooses](https://discourse.nodered.org/t/how-to-change-the-network-interface-default-node-red-chooses/51015)

<div class="topic-metadata">

**Author:** [@radjunior](https://discourse.nodered.org/u/radjunior)\
**Replies:** 4\
**Last updated:** [17 September 2021 10:25 UTC](https://discourse.nodered.org/t/how-to-change-the-network-interface-default-node-red-chooses/51015 "2021-09-17T10:25:24Z")

</div>

by default node-red starts with the circled network interface (eno1) I would like it to start at (enp1s2)

---

## [I wish to use node-red-contrib-tfjs-coco-ssd, train my own model with no experience](https://discourse.nodered.org/t/i-wish-to-use-node-red-contrib-tfjs-coco-ssd-train-my-own-model-with-no-experience/51135)

<div class="topic-metadata">

**Author:** [@XhanceHd](https://discourse.nodered.org/u/XhanceHd)\
**Replies:** 3\
**Last updated:** [17 September 2021 08:30 UTC](https://discourse.nodered.org/t/i-wish-to-use-node-red-contrib-tfjs-coco-ssd-train-my-own-model-with-no-experience/51135 "2021-09-17T08:30:12Z")

</div>

Hi, I'm working on a project where I need to do image classification or object detection. I wish to know how to use this node " node-red-contrib-tfjs-coco-ssd " it already have a local model and it works fine for genera…

---

## [MQTT Out to Cayenne function node example please](https://discourse.nodered.org/t/mqtt-out-to-cayenne-function-node-example-please/51088)

<div class="topic-metadata">

**Author:** [@Picaxe](https://discourse.nodered.org/u/Picaxe)\
**Replies:** 10\
**Last updated:** [17 September 2021 09:48 UTC](https://discourse.nodered.org/t/mqtt-out-to-cayenne-function-node-example-please/51088 "2021-09-17T09:48:19Z")

</div>

As a complete novice with JSON I would like an example of the code needed in the function node to create a message for a single channel that is sent to Cayenne MyDevices using an MQTT Out node. There are good JSON examp…

---

## ["TypeError: Channel credentials must be a ChannelCredentials object"](https://discourse.nodered.org/t/typeerror-channel-credentials-must-be-a-channelcredentials-object/51056)

<div class="topic-metadata">

**Author:** [@Nabila](https://discourse.nodered.org/u/Nabila)\
**Replies:** 13\
**Last updated:** [17 September 2021 07:47 UTC](https://discourse.nodered.org/t/typeerror-channel-credentials-must-be-a-channelcredentials-object/51056 "2021-09-17T07:47:05Z")

</div>

Hello I am new to node red and I encountered this error : "TypeError: Channel credentials must be a ChannelCredentials object " Here is the realized schema, Your help please? How will I solve this problem? Thank you …

---

## [How to get last message in sequence of unknown length (1-3 messages)](https://discourse.nodered.org/t/how-to-get-last-message-in-sequence-of-unknown-length-1-3-messages/51117)

<div class="topic-metadata">

**Author:** [@tmichaeltx](https://discourse.nodered.org/u/tmichaeltx)\
**Replies:** 14\
**Last updated:** [16 September 2021 21:10 UTC](https://discourse.nodered.org/t/how-to-get-last-message-in-sequence-of-unknown-length-1-3-messages/51117 "2021-09-16T21:10:25Z")

</div>

I have a situation where the join node does 90% of what I want, but doesn't do exactly what I want and am hoping someone has a good solution. As I am showing hear I get Hue, Saturation and Level inputs via 3 separate …

---

## [How to append JSON to an array (to be stored in a text file)](https://discourse.nodered.org/t/how-to-append-json-to-an-array-to-be-stored-in-a-text-file/51081)

<div class="topic-metadata">

**Author:** [@raspberry](https://discourse.nodered.org/u/raspberry)\
**Replies:** 6\
**Last updated:** [16 September 2021 20:29 UTC](https://discourse.nodered.org/t/how-to-append-json-to-an-array-to-be-stored-in-a-text-file/51081 "2021-09-16T20:29:34Z")

</div>

Hey folks, I'm not a javascript wizard by any means so this has me thinking too hard. I want to keep a text file of on/off events that happen over time in an array of JSON strings, which can be loaded into Node-Red with…

---

## [JSON Filtering ID and plot the Values](https://discourse.nodered.org/t/json-filtering-id-and-plot-the-values/51062)

<div class="topic-metadata">

**Author:** [@Gerry1](https://discourse.nodered.org/u/Gerry1)\
**Replies:** 7\
**Last updated:** [16 September 2021 06:09 UTC](https://discourse.nodered.org/t/json-filtering-id-and-plot-the-values/51062 "2021-09-16T06:09:00Z")

</div>

I would like to Filter this json file and plot the values from the ID "15239299475" and "15239299476". I read the file in: And this is how the msg.payload looks like: I need some help with the function box. Tha…

---

## [NODE-RED version 0.20.5 Data Compatibility vs NODE-RED version 0.15.3](https://discourse.nodered.org/t/node-red-version-0-20-5-data-compatibility-vs-node-red-version-0-15-3/51105)

<div class="topic-metadata">

**Author:** [@RSWebster](https://discourse.nodered.org/u/RSWebster)\
**Replies:** 4\
**Last updated:** [16 September 2021 16:38 UTC](https://discourse.nodered.org/t/node-red-version-0-20-5-data-compatibility-vs-node-red-version-0-15-3/51105 "2021-09-16T16:38:46Z")

</div>

Is anyone aware of payload changes between v.15.3 and v0.20.5 I have two multitech gateways running Lorawan data that is being based through NODE-RED one version is using the v.15 and the other v.20 the payload compariso…

---

## [Uploading picture but failed to get output](https://discourse.nodered.org/t/uploading-picture-but-failed-to-get-output/51099)

<div class="topic-metadata">

**Author:** [@nurulh1909](https://discourse.nodered.org/u/nurulh1909)\
**Replies:** 1\
**Last updated:** [16 September 2021 13:59 UTC](https://discourse.nodered.org/t/uploading-picture-but-failed-to-get-output/51099 "2021-09-16T13:59:34Z")

</div>

Hi, I got Pen to Print - Handwriting OCR API Documentation from Rapid API and it tested succssfully. But some coing need to be change when I want to use it on Node Red. I use (javascript)fetch as my mode of coding. co…

---

## [Receive boolean data from firestore](https://discourse.nodered.org/t/receive-boolean-data-from-firestore/51107)

<div class="topic-metadata">

**Author:** [@miralis](https://discourse.nodered.org/u/miralis)\
**Replies:** 0\
**Last updated:** [16 September 2021 14:16 UTC](https://discourse.nodered.org/t/receive-boolean-data-from-firestore/51107 "2021-09-16T14:16:02Z")

</div>

Hi everyone, I'm new on node-red. I'm using google firestore + raspberry for node red and PLC system. I would like to receive boolean data from google firestore to node-red and want to save to PLC. My code is like thi…

---

## [Subflows & accessing flow/global variables on a per subflow basis (NOT environment variables)](https://discourse.nodered.org/t/subflows-accessing-flow-global-variables-on-a-per-subflow-basis-not-environment-variables/51084)

<div class="topic-metadata">

**Author:** [@GeorgeCastanza](https://discourse.nodered.org/u/GeorgeCastanza)\
**Replies:** 4\
**Last updated:** [16 September 2021 12:55 UTC](https://discourse.nodered.org/t/subflows-accessing-flow-global-variables-on-a-per-subflow-basis-not-environment-variables/51084 "2021-09-16T12:55:03Z")

</div>

I've got a subflow that I'm reusing multiple times. I want to access flow/global variables that are created/modified by the subflow. I've successfully created the flow/global variable by using this code in the subflow. …

---

## [The node "node-red-contrib-heater-controller" is not working anymore after upgrade](https://discourse.nodered.org/t/the-node-node-red-contrib-heater-controller-is-not-working-anymore-after-upgrade/51092)

<div class="topic-metadata">

**Author:** [@markush1](https://discourse.nodered.org/u/markush1)\
**Replies:** 4\
**Last updated:** [16 September 2021 11:37 UTC](https://discourse.nodered.org/t/the-node-node-red-contrib-heater-controller-is-not-working-anymore-after-upgrade/51092 "2021-09-16T11:37:04Z")

</div>

Hello, recently I upgraded the heater-controller node to latest version 3.02. But i can't get it working now, it shows no values! I tried with a simple sample: But it does nothing, no reaction on it :frowning: Any id…

---

## [Mosquitto MQTT Version 5 connection](https://discourse.nodered.org/t/mosquitto-mqtt-version-5-connection/51097)

<div class="topic-metadata">

**Author:** [@kronbergerindustries](https://discourse.nodered.org/u/kronbergerindustries)\
**Replies:** 0\
**Last updated:** [16 September 2021 11:34 UTC](https://discourse.nodered.org/t/mosquitto-mqtt-version-5-connection/51097 "2021-09-16T11:34:41Z")

</div>

I have an working project where over the MQTT-In node i subscribe to an Mosquitto Broker. But when i want to change to MQTT Version 5. On every other Subscriber it was working after just changing the version somewhere. B…

---

## [Nodered python error127 on OpenWRT /bin/sh: python not found](https://discourse.nodered.org/t/nodered-python-error127-on-openwrt-bin-sh-python-not-found/50950)

<div class="topic-metadata">

**Author:** [@Mansur](https://discourse.nodered.org/u/Mansur)\
**Replies:** 37\
**Last updated:** [16 September 2021 09:14 UTC](https://discourse.nodered.org/t/nodered-python-error127-on-openwrt-bin-sh-python-not-found/50950 "2021-09-16T09:14:30Z")

</div>

I have nodered on OpenWRT and have configured exec node to exexute a python code. python /path/xxx.py. The path is correct. The command works fine on CLI. But from nodered exec node throws an error 127, /bin/sh: python n…

---

## [Uibuilder security with MS-SQL](https://discourse.nodered.org/t/uibuilder-security-with-ms-sql/50979)

<div class="topic-metadata">

**Author:** [@amitsinghio](https://discourse.nodered.org/u/amitsinghio)\
**Replies:** 6\
**Last updated:** [16 September 2021 08:22 UTC](https://discourse.nodered.org/t/uibuilder-security-with-ms-sql/50979 "2021-09-16T08:22:36Z")

</div>

I think this topic might be the right choice. Does someone know how to handle async code here? /\* globals module \*/ /\*\* /\* globals module \*/ /\*\* \* Copyright (c) 2020-2021 Julian Knight (Totally Information) \* https:/…

---

## [Can't display base64 QR code in Template](https://discourse.nodered.org/t/cant-display-base64-qr-code-in-template/51032)

<div class="topic-metadata">

**Author:** [@notnice](https://discourse.nodered.org/u/notnice)\
**Replies:** 12\
**Last updated:** [16 September 2021 05:34 UTC](https://discourse.nodered.org/t/cant-display-base64-qr-code-in-template/51032 "2021-09-16T05:34:58Z")

</div>

I'm using node-red-contrib-qrcode-generator to create a Wi-Fi QR code, and then wish to display it in Template node. But can't get it to display. The msg.payload input to the Template is correct: 14/09/2021, 20:59:01no…

---

## [Node-red-contrib-onvif-nodes macOS](https://discourse.nodered.org/t/node-red-contrib-onvif-nodes-macos/50581)

<div class="topic-metadata">

**Author:** [@madmax](https://discourse.nodered.org/u/madmax)\
**Replies:** 61\
**Last updated:** [15 September 2021 21:55 UTC](https://discourse.nodered.org/t/node-red-contrib-onvif-nodes-macos/50581 "2021-09-15T21:55:36Z")

</div>

Hello! I installed Node Red on a Mac. How can I install the module? Unfortunately that doesn't work for me somehow.

---

## [Error installing new module](https://discourse.nodered.org/t/error-installing-new-module/51074)

<div class="topic-metadata">

**Author:** [@knubbl](https://discourse.nodered.org/u/knubbl)\
**Replies:** 16\
**Last updated:** [15 September 2021 21:25 UTC](https://discourse.nodered.org/t/error-installing-new-module/51074 "2021-09-15T21:25:33Z")

</div>

2021-09-15T18:46:49.305Z \[out\] 2021-09-15T18:46:49.305Z \[out\] \> sqlite3@4.1.1 install /home/pi/.node-red/node\_modules/sqlite3 2021-09-15T18:46:49.305Z \[out\] \> node-pre-gyp install --fallback-to-build 2021-09-15T18:46:…

---

## [Establishing a websockets-MQTT connection through Node-Red](https://discourse.nodered.org/t/establishing-a-websockets-mqtt-connection-through-node-red/51072)

<div class="topic-metadata">

**Author:** [@mohamed](https://discourse.nodered.org/u/mohamed)\
**Replies:** 15\
**Last updated:** [15 September 2021 20:39 UTC](https://discourse.nodered.org/t/establishing-a-websockets-mqtt-connection-through-node-red/51072 "2021-09-15T20:39:25Z")

</div>

Hello everyone . I need to use mosquitto mqtt over websockets. I'm using a raspberry pi as a host server for several tools such as mosquitto broker,node red, influx db, and grafana as a data logging system. I'm trying to…

---

## [Lighting controller ideas](https://discourse.nodered.org/t/lighting-controller-ideas/50876)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 21\
**Last updated:** [13 September 2021 16:44 UTC](https://discourse.nodered.org/t/lighting-controller-ideas/50876 "2021-09-13T16:44:52Z")

</div>

For the past 20 years I've used a GJD lighting controller which switches on security/garden lighting if the GJD PIR's are activated. But with the addition of a shelly UNI, I'm bringing this up to date, so that I can have…

---

## [Problems receiving UDP messages](https://discourse.nodered.org/t/problems-receiving-udp-messages/51067)

<div class="topic-metadata">

**Author:** [@arielperez](https://discourse.nodered.org/u/arielperez)\
**Replies:** 2\
**Last updated:** [15 September 2021 17:51 UTC](https://discourse.nodered.org/t/problems-receiving-udp-messages/51067 "2021-09-15T17:51:56Z")

</div>

Hi, I'm trying to set up a general scenario which consists in a PC sending through UDP OUT node an UDP message to another PC receiving through UDP IN node that message. Node-red is installed over Windows OS in both cas…

---

## [Join node overwrite data](https://discourse.nodered.org/t/join-node-overwrite-data/51037)

<div class="topic-metadata">

**Author:** [@mafify](https://discourse.nodered.org/u/mafify)\
**Replies:** 5\
**Last updated:** [15 September 2021 17:35 UTC](https://discourse.nodered.org/t/join-node-overwrite-data/51037 "2021-09-15T17:35:02Z")

</div>

The CAN BUS sends data with similar ID. I know that I will receive 29 msgs every 1 minute. I used the Join ID as shown in the picture to join the first 29 msgs in an array. So I can assort them depending on their ID # in…

---

## [Homeassistant & nodered new network device](https://discourse.nodered.org/t/homeassistant-nodered-new-network-device/51053)

<div class="topic-metadata">

**Author:** [@Marty1982](https://discourse.nodered.org/u/Marty1982)\
**Replies:** 1\
**Last updated:** [15 September 2021 15:15 UTC](https://discourse.nodered.org/t/homeassistant-nodered-new-network-device/51053 "2021-09-15T15:15:36Z")

</div>

Hi all ! Im working on a project to get notified when new devices are connected on my local network. For that i use HomeAssistant to list all devices and then with node red i can see all of them perfectly. But what if …

---

## [Fehler bei der Instalation von node-red-node-arduino](https://discourse.nodered.org/t/fehler-bei-der-instalation-von-node-red-node-arduino/51051)

<div class="topic-metadata">

**Author:** [@noodie](https://discourse.nodered.org/u/noodie)\
**Replies:** 1\
**Last updated:** [15 September 2021 12:45 UTC](https://discourse.nodered.org/t/fehler-bei-der-instalation-von-node-red-node-arduino/51051 "2021-09-15T12:45:14Z")

</div>

Ich eben Versucht mir die Node "node-red-node-arduino" zu laden und dabei eine Fehlermeldung bekommen. Hat jemand das selbe Problem oder eventuell eine Lösung dafür ?

---

## [Nodered in docker container](https://discourse.nodered.org/t/nodered-in-docker-container/51043)

<div class="topic-metadata">

**Author:** [@Sirhc](https://discourse.nodered.org/u/Sirhc)\
**Replies:** 5\
**Last updated:** [15 September 2021 09:54 UTC](https://discourse.nodered.org/t/nodered-in-docker-container/51043 "2021-09-15T09:54:40Z")

</div>

Hello I have node red running on my Ubuntu server in a docker container. I am trying to see if there are files present in a directory outside the container directory. I have a fs-ops-dir node pointing to the following …

---

## [Node-red restarts](https://discourse.nodered.org/t/node-red-restarts/51013)

<div class="topic-metadata">

**Author:** [@edje11](https://discourse.nodered.org/u/edje11)\
**Replies:** 6\
**Last updated:** [15 September 2021 08:27 UTC](https://discourse.nodered.org/t/node-red-restarts/51013 "2021-09-15T08:27:44Z")

</div>

This is now the second night in a row that NR restart's in the middle of the night. In the NR log is not much to see because it's only a couple lines long. However in the syslog of my pi there's clearly a problem. The…

---

## [Looking for best practice to execute a complete node based on a condition](https://discourse.nodered.org/t/looking-for-best-practice-to-execute-a-complete-node-based-on-a-condition/51016)

<div class="topic-metadata">

**Author:** [@DamianosS](https://discourse.nodered.org/u/DamianosS)\
**Replies:** 7\
**Last updated:** [15 September 2021 08:04 UTC](https://discourse.nodered.org/t/looking-for-best-practice-to-execute-a-complete-node-based-on-a-condition/51016 "2021-09-15T08:04:30Z")

</div>

Hi everyone, I'm looking for recommendations to execute a node based on a condition. To make myself clear, here's what I mean: Let's assume, we have the following node: Now, there's a global variable, which indicate…

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

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