# General

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

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

**Page:** 353

---

## [Dynamically change label of ui-switch](https://discourse.nodered.org/t/dynamically-change-label-of-ui-switch/64911)

<div class="topic-metadata">

**Author:** [@Olivier](https://discourse.nodered.org/u/Olivier)\
**Replies:** 6\
**Last updated:** [11 July 2022 18:18 UTC](https://discourse.nodered.org/t/dynamically-change-label-of-ui-switch/64911 "2022-07-11T18:18:40Z")

</div>

Hello, Despite the help, that tells: The label can also be set by a message property by setting the field to the name of the property, for example {{msg.topic}} . I'm not able to change dynamically the label. I've tr…

---

## [Ring MQTT -\> Base64 -\> Telegram](https://discourse.nodered.org/t/ring-mqtt-base64-telegram/64948)

<div class="topic-metadata">

**Author:** [@joeblack2k](https://discourse.nodered.org/u/joeblack2k)\
**Replies:** 9\
**Last updated:** [11 July 2022 17:03 UTC](https://discourse.nodered.org/t/ring-mqtt-base64-telegram/64948 "2022-07-11T17:03:08Z")

</div>

Hey Guys, Question: for the past 3 day's i'm trying to figure out how to get a mqtt base64 img to a telegram channel so i get a picture if someone rights the bell i think i'm pretty far although i also think it can be…

---

## [Issue with easy fan control](https://discourse.nodered.org/t/issue-with-easy-fan-control/64942)

<div class="topic-metadata">

**Author:** [@u20p17](https://discourse.nodered.org/u/u20p17)\
**Replies:** 7\
**Last updated:** [11 July 2022 15:59 UTC](https://discourse.nodered.org/t/issue-with-easy-fan-control/64942 "2022-07-11T15:59:17Z")

</div>

Hi all, I am trying to implement a very easy fan control into NodeRed. It should start a fan x secounds after the light of the room get turned on and stop x secounds after the light get switch off again. If the light ge…

---

## [Unable to reach https://nodered.org/](https://discourse.nodered.org/t/unable-to-reach-https-nodered-org/64946)

<div class="topic-metadata">

**Author:** [@Neal](https://discourse.nodered.org/u/Neal)\
**Replies:** 6\
**Last updated:** [11 July 2022 14:36 UTC](https://discourse.nodered.org/t/unable-to-reach-https-nodered-org/64946 "2022-07-11T14:36:57Z")

</div>

Hello Folks, We have one server at our organization that cannot reach nodered.org. Other machines like user desktops have no issue. Is it possible that the external IP of that server is blocked? Who can I contact to…

---

## [MongoDB update (mongodb3)](https://discourse.nodered.org/t/mongodb-update-mongodb3/64938)

<div class="topic-metadata">

**Author:** [@e-Duardo](https://discourse.nodered.org/u/e-Duardo)\
**Replies:** 1\
**Last updated:** [11 July 2022 11:18 UTC](https://discourse.nodered.org/t/mongodb-update-mongodb3/64938 "2022-07-11T11:18:23Z")

</div>

Hi all, I am learning to use MongoDB to store data, and now I am having an issue with the "update" method. I am using the nodes from "node-red-contrib-mongodb3". I have inserted some documents, which have some static d…

---

## [Error in installation of arduino/node-red-contrib-arduino-iot-cloud in node-red](https://discourse.nodered.org/t/error-in-installation-of-arduino-node-red-contrib-arduino-iot-cloud-in-node-red/64908)

<div class="topic-metadata">

**Author:** [@raabautomation](https://discourse.nodered.org/u/raabautomation)\
**Replies:** 4\
**Last updated:** [11 July 2022 10:22 UTC](https://discourse.nodered.org/t/error-in-installation-of-arduino-node-red-contrib-arduino-iot-cloud-in-node-red/64908 "2022-07-11T10:22:56Z")

</div>

I am facing a problem when installing the "node-red-contrib-arduino-iot-cloud" in the "manege palette" or via CMD of Node-Red. Whenever I try to install through the graphical interface it throws the following error: ver…

---

## [What are the consequences of passing the \`FLOWS\` environment variable within node-RED to a different flows.json file?](https://discourse.nodered.org/t/what-are-the-consequences-of-passing-the-flows-environment-variable-within-node-red-to-a-different-flows-json-file/64936)

<div class="topic-metadata">

**Author:** [@Shan](https://discourse.nodered.org/u/Shan)\
**Replies:** 1\
**Last updated:** [11 July 2022 10:17 UTC](https://discourse.nodered.org/t/what-are-the-consequences-of-passing-the-flows-environment-variable-within-node-red-to-a-different-flows-json-file/64936 "2022-07-11T10:17:28Z")

</div>

Based on my previous query Where can I store subflow nodes with Broker / DB configuration except for \`/data/flows.json\` so that they show up in the Pallete? which did not have any reply. I found a potential solution of …

---

## [Nodered very slow](https://discourse.nodered.org/t/nodered-very-slow/64899)

<div class="topic-metadata">

**Author:** [@Herbert](https://discourse.nodered.org/u/Herbert)\
**Replies:** 5\
**Last updated:** [11 July 2022 09:50 UTC](https://discourse.nodered.org/t/nodered-very-slow/64899 "2022-07-11T09:50:33Z")

</div>

Hello. I tried something with MQTT from one Pi3to Pi400 in both directions. Some days after deploy the Pi 3 were slow. Today so slow I can´t do anything with Nodered. The rest of Pi works. I have an old flow export. I …

---

## [GPS Odometer / Python code](https://discourse.nodered.org/t/gps-odometer-python-code/64916)

<div class="topic-metadata">

**Author:** [@SaDr](https://discourse.nodered.org/u/SaDr)\
**Replies:** 2\
**Last updated:** [11 July 2022 07:18 UTC](https://discourse.nodered.org/t/gps-odometer-python-code/64916 "2022-07-11T07:18:48Z")

</div>

Hello everyone, I've been trying to build a GPS Odometer for a few days now, with no success. I'm trying to interface the GPS output with Python code, but I don't have the knowledge. Could someone give me some advice or …

---

## [No abre Node Red, mi PC rechaza la conexión](https://discourse.nodered.org/t/no-abre-node-red-mi-pc-rechaza-la-conexion/64697)

<div class="topic-metadata">

**Author:** [@AlejandroPadilla](https://discourse.nodered.org/u/AlejandroPadilla)\
**Replies:** 6\
**Last updated:** [11 July 2022 07:13 UTC](https://discourse.nodered.org/t/no-abre-node-red-mi-pc-rechaza-la-conexion/64697 "2022-07-11T07:13:04Z")

</div>

Buenas buena a todos, mi nombre es Alejandro y soy nuevo en el foro, las 2 razones de por estoy aqui son principalmente para aprender mas del tema de IIOT y por otro lado para pedir ayuda con un problema que no he podido…

---

## [Store a value and reinsert it when flows start](https://discourse.nodered.org/t/store-a-value-and-reinsert-it-when-flows-start/64877)

<div class="topic-metadata">

**Author:** [@FSHelgeland](https://discourse.nodered.org/u/FSHelgeland)\
**Replies:** 20\
**Last updated:** [10 July 2022 21:06 UTC](https://discourse.nodered.org/t/store-a-value-and-reinsert-it-when-flows-start/64877 "2022-07-10T21:06:19Z")

</div>

I calculate the cost for my power consumption each hour and I put the different values into a Sum-node. This works fine, but I have noticed that if the flows restart the sum-node is empty. Is it possible to make a functi…

---

## [Remote-access-Log](https://discourse.nodered.org/t/remote-access-log/64842)

<div class="topic-metadata">

**Author:** [@maxmueller50](https://discourse.nodered.org/u/maxmueller50)\
**Replies:** 10\
**Last updated:** [10 July 2022 19:11 UTC](https://discourse.nodered.org/t/remote-access-log/64842 "2022-07-10T19:11:30Z")

</div>

Hi what is wrong concerning this Node-Red-Log:

---

## [Scanner 2000 modbus rs485](https://discourse.nodered.org/t/scanner-2000-modbus-rs485/64860)

<div class="topic-metadata">

**Author:** [@artehack](https://discourse.nodered.org/u/artehack)\
**Replies:** 2\
**Last updated:** [10 July 2022 17:55 UTC](https://discourse.nodered.org/t/scanner-2000-modbus-rs485/64860 "2022-07-10T17:55:50Z")

</div>

am testing node-red and I am trying to acquire data by modbus for reading in real time, the problem is that the values ​​are not delivered correctly and the owner register that I use to charge the gas supply does not rea…

---

## [MySQL Database Output (\>500 rows) to be added to pdfmake](https://discourse.nodered.org/t/mysql-database-output-500-rows-to-be-added-to-pdfmake/64905)

<div class="topic-metadata">

**Author:** [@saxenaramesh](https://discourse.nodered.org/u/saxenaramesh)\
**Replies:** 4\
**Last updated:** [10 July 2022 17:19 UTC](https://discourse.nodered.org/t/mysql-database-output-500-rows-to-be-added-to-pdfmake/64905 "2022-07-10T17:19:25Z")

</div>

I am reading data from mysql database. and want to publish this data to a pdf report along with other design elements. I could make a complete flow, thanks to all the help from various forum topics, however, I am struggl…

---

## [Having issues with python3 and HA node red add-on](https://discourse.nodered.org/t/having-issues-with-python3-and-ha-node-red-add-on/64901)

<div class="topic-metadata">

**Author:** [@Bydandie](https://discourse.nodered.org/u/Bydandie)\
**Replies:** 5\
**Last updated:** [10 July 2022 15:04 UTC](https://discourse.nodered.org/t/having-issues-with-python3-and-ha-node-red-add-on/64901 "2022-07-10T15:04:53Z")

</div>

Hi all, so I have a RPi 4 installed with HAOS on it, and have added node-red as an add-on. I'm trying to run a python script to communicate with my sofar solar inverter called sofar.py. When I run the script in termina…

---

## [Allow message to pass on the hour](https://discourse.nodered.org/t/allow-message-to-pass-on-the-hour/64897)

<div class="topic-metadata">

**Author:** [@harveyd](https://discourse.nodered.org/u/harveyd)\
**Replies:** 3\
**Last updated:** [10 July 2022 10:02 UTC](https://discourse.nodered.org/t/allow-message-to-pass-on-the-hour/64897 "2022-07-10T10:02:16Z")

</div>

Hello All, I'm currently logging mqtt messages containing temperature and humidity data to an SQLite database. The messages come in every minute. All these messages are saved to a table which I will eventually set up pr…

---

## [Push to an Array with a variable in its' name](https://discourse.nodered.org/t/push-to-an-array-with-a-variable-in-its-name/64898)

<div class="topic-metadata">

**Author:** [@tGr](https://discourse.nodered.org/u/tGr)\
**Replies:** 1\
**Last updated:** [10 July 2022 09:44 UTC](https://discourse.nodered.org/t/push-to-an-array-with-a-variable-in-its-name/64898 "2022-07-10T09:44:42Z")

</div>

I have 8 channels of data coming into a function node, which is stored in flow conext as "gaugeData". This data is stored individually into it's own channel in flow context, added to a new array called CH1, CH2, ...CH8 e…

---

## [Cannot connect to mosquitto MQTT Broker](https://discourse.nodered.org/t/cannot-connect-to-mosquitto-mqtt-broker/64807)

<div class="topic-metadata">

**Author:** [@nicolasg12](https://discourse.nodered.org/u/nicolasg12)\
**Replies:** 10\
**Last updated:** [10 July 2022 02:25 UTC](https://discourse.nodered.org/t/cannot-connect-to-mosquitto-mqtt-broker/64807 "2022-07-10T02:25:36Z")

</div>

Hello, I have been learning node red for the past days and I wanted to start working with MQTT. For this I installed Mosquito on my Mac and created an MQTT broker. I know it works since I can play with it in the termina…

---

## [Noob Question: Change Data Node divide array by 10](https://discourse.nodered.org/t/noob-question-change-data-node-divide-array-by-10/64892)

<div class="topic-metadata">

**Author:** [@ForumSchlampe](https://discourse.nodered.org/u/ForumSchlampe)\
**Replies:** 2\
**Last updated:** [9 July 2022 22:55 UTC](https://discourse.nodered.org/t/noob-question-change-data-node-divide-array-by-10/64892 "2022-07-09T22:55:46Z")

</div>

Hi there, first steps with node red modbus and knx. I want to grab an outside temperature from an modbus device, this device sends the temperatue as array which should divided by 10. polling : msg.payload : array\[1\] …

---

## [Function Node Code issues](https://discourse.nodered.org/t/function-node-code-issues/64866)

<div class="topic-metadata">

**Author:** [@gjones84](https://discourse.nodered.org/u/gjones84)\
**Replies:** 3\
**Last updated:** [9 July 2022 18:58 UTC](https://discourse.nodered.org/t/function-node-code-issues/64866 "2022-07-09T18:58:58Z")

</div>

Hi All, Wondering if someone could help me. Trying to get this code working for a friend. It has 2 limits -150 and 150. Its adds the last number to the new number and outputs it but will only allow to stay with in limi…

---

## [Storing NODE-RED input into an SQLite database](https://discourse.nodered.org/t/storing-node-red-input-into-an-sqlite-database/64874)

<div class="topic-metadata">

**Author:** [@fadzfiras](https://discourse.nodered.org/u/fadzfiras)\
**Replies:** 1\
**Last updated:** [9 July 2022 16:49 UTC](https://discourse.nodered.org/t/storing-node-red-input-into-an-sqlite-database/64874 "2022-07-09T16:49:26Z")

</div>

I have been given a task to store a set of data into an SQLite database. I have to code the function node (format data) so the SQLite node is able to store my data. The 'database' node accepts SQL Query via msg.topic. H…

---

## [Msg is unique for each flow](https://discourse.nodered.org/t/msg-is-unique-for-each-flow/64872)

<div class="topic-metadata">

**Author:** [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Replies:** 1\
**Last updated:** [9 July 2022 16:40 UTC](https://discourse.nodered.org/t/msg-is-unique-for-each-flow/64872 "2022-07-09T16:40:31Z")

</div>

Hi all I have a simple conceptual question I have a flow and many digital inputs. Each digital inputs is connect to a different function. Or better different functions for different digital inputs. Inside function I rea…

---

## [Sqlite conection in function node](https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051)

<div class="topic-metadata">

**Author:** [@jhon.zambrano](https://discourse.nodered.org/u/jhon.zambrano)\
**Replies:** 4\
**Last updated:** [9 July 2022 16:03 UTC](https://discourse.nodered.org/t/sqlite-conection-in-function-node/8051 "2022-07-09T16:03:28Z")

</div>

Hi Its possible to conect to my database in function node? how can i do it? any template, link or advice, Thanks! Regards!

---

## [Help in using HTTP GET to capture electricity usage](https://discourse.nodered.org/t/help-in-using-http-get-to-capture-electricity-usage/64875)

<div class="topic-metadata">

**Author:** [@grant1](https://discourse.nodered.org/u/grant1)\
**Replies:** 5\
**Last updated:** [9 July 2022 15:44 UTC](https://discourse.nodered.org/t/help-in-using-http-get-to-capture-electricity-usage/64875 "2022-07-09T15:44:59Z")

</div>

Greetings. My local power utility company offers a user-specific URL that displays hourly electricity usage by day for the past 13 months. I tried using the HTTP Request node to capture this data that I can parse and s…

---

## [HELP Lost everything](https://discourse.nodered.org/t/help-lost-everything/64827)

<div class="topic-metadata">

**Author:** [@FSHelgeland](https://discourse.nodered.org/u/FSHelgeland)\
**Replies:** 17\
**Last updated:** [9 July 2022 13:43 UTC](https://discourse.nodered.org/t/help-lost-everything/64827 "2022-07-09T13:43:54Z")

</div>

Lost everything. Was trying to update the cronplus to the latest version but somehow managed to scr... it. Lost everything. I then imorted my backup from latest night as I do send backup to dropbox. But when I import the…

---

## [Function with multiple payloads (with null)](https://discourse.nodered.org/t/function-with-multiple-payloads-with-null/64867)

<div class="topic-metadata">

**Author:** [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Replies:** 5\
**Last updated:** [9 July 2022 10:58 UTC](https://discourse.nodered.org/t/function-with-multiple-payloads-with-null/64867 "2022-07-09T10:58:44Z")

</div>

Hi, I try to improve my code daily and today I'd like to change this code: // 1 var bc = global.get("var\_bloccocar"); if (bc == 1) { global.set("var\_bloccocar", 0) msg1 = {labelcolorcar:"#A4A4A4"} } else { …

---

## [Error Loading palette nodes after restart](https://discourse.nodered.org/t/error-loading-palette-nodes-after-restart/64837)

<div class="topic-metadata">

**Author:** [@gigonzalezs](https://discourse.nodered.org/u/gigonzalezs)\
**Replies:** 3\
**Last updated:** [9 July 2022 09:41 UTC](https://discourse.nodered.org/t/error-loading-palette-nodes-after-restart/64837 "2022-07-09T09:41:05Z")

</div>

Hi, I'm using node-red inside a nodejs service. (node-red 2.2.2) I use this code for restart the runtime: RED.stop() .then(() =\> { RED.init(server,red\_settings); return RED.start(); …

---

## [Emails from Microsoft365 using modern authentication](https://discourse.nodered.org/t/emails-from-microsoft365-using-modern-authentication/64802)

<div class="topic-metadata">

**Author:** [@Romprod](https://discourse.nodered.org/u/Romprod)\
**Replies:** 8\
**Last updated:** [9 July 2022 06:50 UTC](https://discourse.nodered.org/t/emails-from-microsoft365-using-modern-authentication/64802 "2022-07-09T06:50:58Z")

</div>

Hi there. I have a flow that periodically checks a mailbox via POP3\\IMAP and parses any emails in there for info etc which works great. Microsoft are shortly turning off basic authentication for services including Exch…

---

## [How to understand this paragraph in doc?](https://discourse.nodered.org/t/how-to-understand-this-paragraph-in-doc/64863)

<div class="topic-metadata">

**Author:** [@liaodalin19903](https://discourse.nodered.org/u/liaodalin19903)\
**Replies:** 1\
**Last updated:** [9 July 2022 06:38 UTC](https://discourse.nodered.org/t/how-to-understand-this-paragraph-in-doc/64863 "2022-07-09T06:38:48Z")

</div>

https://nodered.org/about/community/survey/2019/ Almost of third of respondents use separate ‘development’ and ‘production’ systems, however they do not have any automation to move between them. This was also reflecte…

---

## [Gardena oauth2 and redirect](https://discourse.nodered.org/t/gardena-oauth2-and-redirect/64859)

<div class="topic-metadata">

**Author:** [@thomasvjohansen](https://discourse.nodered.org/u/thomasvjohansen)\
**Replies:** 0\
**Last updated:** [8 July 2022 20:20 UTC](https://discourse.nodered.org/t/gardena-oauth2-and-redirect/64859 "2022-07-08T20:20:07Z")

</div>

Hi Im trying to get oauth2 to communicate with the gardena api, using this flow: chmuck’s gists · GitHub I keep getting error 400. I ran gardena's test terminal on my nodered pi and it could get a token, so there is wo…

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

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