# General

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

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

**Page:** 155

---

## [Send time value via MQTT](https://discourse.nodered.org/t/send-time-value-via-mqtt/83380)

<div class="topic-metadata">

**Author:** [@x\_dadu](https://discourse.nodered.org/u/x_dadu)\
**Replies:** 12\
**Last updated:** [2 December 2023 17:06 UTC](https://discourse.nodered.org/t/send-time-value-via-mqtt/83380 "2023-12-02T17:06:59Z")

</div>

what is the simplest method to send MQTT from nodered time values ? I need it in the form: "17:37:02 02.12.2023 SUN" I want the last 3 characters to be the day of the week. I have several esp8266 devices that display t…

---

## [Pi install script](https://discourse.nodered.org/t/pi-install-script/83369)

<div class="topic-metadata">

**Author:** [@gerry](https://discourse.nodered.org/u/gerry)\
**Replies:** 6\
**Last updated:** [2 December 2023 15:57 UTC](https://discourse.nodered.org/t/pi-install-script/83369 "2023-12-02T15:57:58Z")

</div>

Ok. Upgrading to 3.1.1 and was going to run bash \<(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) I am on nodejs 16 and wanted to move to 18. All I have to do…

---

## [GPIO get/read/display node?](https://discourse.nodered.org/t/gpio-get-read-display-node/83374)

<div class="topic-metadata">

**Author:** [@daxliniere](https://discourse.nodered.org/u/daxliniere)\
**Replies:** 10\
**Last updated:** [2 December 2023 15:48 UTC](https://discourse.nodered.org/t/gpio-get-read-display-node/83374 "2023-12-02T15:48:58Z")

</div>

Is there a node which can display the status of a GPIO pin? I'm trying to debug a program and need a visual display of GPIO high/low status. I imagine a node which looks like the GPIO In node, but refreshed regularly (i…

---

## [My mqtt-in node cannot received data from broker](https://discourse.nodered.org/t/my-mqtt-in-node-cannot-received-data-from-broker/83372)

<div class="topic-metadata">

**Author:** [@CCF](https://discourse.nodered.org/u/CCF)\
**Replies:** 16\
**Last updated:** [2 December 2023 09:49 UTC](https://discourse.nodered.org/t/my-mqtt-in-node-cannot-received-data-from-broker/83372 "2023-12-02T09:49:32Z")

</div>

Hi. I have created my custom mqtt broker using python. Now I have issue that my node-red mqtt-in node cannot receive data from my custom broker. My scenario is I have one esp32 which connected with dht 22 sensor coding b…

---

## [Corrupt flow export?](https://discourse.nodered.org/t/corrupt-flow-export/83368)

<div class="topic-metadata">

**Author:** [@WillPickering](https://discourse.nodered.org/u/WillPickering)\
**Replies:** 2\
**Last updated:** [2 December 2023 09:28 UTC](https://discourse.nodered.org/t/corrupt-flow-export/83368 "2023-12-02T09:28:07Z")

</div>

Hi, I had a pi die, and was attempting to restore my last node-red export. It seems that the export didn't format correctly and is missing the delimiters. Anyone have an easy fix, or should I start creating a macro to…

---

## [How to add error handling to all node-red requests](https://discourse.nodered.org/t/how-to-add-error-handling-to-all-node-red-requests/82901)

<div class="topic-metadata">

**Author:** [@tnrich](https://discourse.nodered.org/u/tnrich)\
**Replies:** 5\
**Last updated:** [1 December 2023 21:15 UTC](https://discourse.nodered.org/t/how-to-add-error-handling-to-all-node-red-requests/82901 "2023-12-01T21:15:53Z")

</div>

Hi there, I have an app where we fire off http requests to a node-red server. Some of the node-red flows/endpoints we've made and some are user created. As expected there are sometimes unexpected exceptions that occur w…

---

## [Queuing message and timing. (text to voice stuff)](https://discourse.nodered.org/t/queuing-message-and-timing-text-to-voice-stuff/83270)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 21\
**Last updated:** [1 December 2023 19:38 UTC](https://discourse.nodered.org/t/queuing-message-and-timing-text-to-voice-stuff/83270 "2023-12-01T19:38:08Z")

</div>

(Sod's law says if I don't ask I won't think of the answer ITMT) I'm playing with voice messages being played. Usually they are short messages and I have a rate limit node set to limit them to 1 message per 10 5 second…

---

## [Error: EPERM: operation not permitted, unlink 'E:\\nodeRedflows\\.flow.json.backup'](https://discourse.nodered.org/t/error-eperm-operation-not-permitted-unlink-e-noderedflows-flow-json-backup/83356)

<div class="topic-metadata">

**Author:** [@LucasPeluso](https://discourse.nodered.org/u/LucasPeluso)\
**Replies:** 4\
**Last updated:** [1 December 2023 17:16 UTC](https://discourse.nodered.org/t/error-eperm-operation-not-permitted-unlink-e-noderedflows-flow-json-backup/83356 "2023-12-01T17:16:00Z")

</div>

Hello, I was runnig a process in node red and node red stop working. Since then I couldn´t start up node red from TaskScheduler. I have to start up with powershell manually. As if it weren't all I can´t deploy anithing. …

---

## [Node red crashes/restarts when doorbird events happen (motion,ring)](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355)

<div class="topic-metadata">

**Author:** [@WernerM96](https://discourse.nodered.org/u/WernerM96)\
**Replies:** 7\
**Last updated:** [1 December 2023 16:49 UTC](https://discourse.nodered.org/t/node-red-crashes-restarts-when-doorbird-events-happen-motion-ring/83355 "2023-12-01T16:49:01Z")

</div>

Hey to all of you, i have good a strange behaviour with the door bird api. Since my upgrade to node red 3 (before 1.x) and node.js 20 (before node.js 14) i have got an restart of the node red service after every motion,…

---

## [Snmp data visualization](https://discourse.nodered.org/t/snmp-data-visualization/83147)

<div class="topic-metadata">

**Author:** [@cef](https://discourse.nodered.org/u/cef)\
**Replies:** 36\
**Last updated:** [1 December 2023 16:12 UTC](https://discourse.nodered.org/t/snmp-data-visualization/83147 "2023-12-01T16:12:49Z")

</div>

Hello, I'm new here and I'm not a profesional using Node Red, but I is very useful for my project. I have installed in several computers but it is not working well in all of them. I can't see the same result using the …

---

## [Function node no negative values](https://discourse.nodered.org/t/function-node-no-negative-values/83349)

<div class="topic-metadata">

**Author:** [@bestquaker](https://discourse.nodered.org/u/bestquaker)\
**Replies:** 6\
**Last updated:** [1 December 2023 16:08 UTC](https://discourse.nodered.org/t/function-node-no-negative-values/83349 "2023-12-01T16:08:21Z")

</div>

Hello together, I have the problem that my values in this case the variable "spd\_diff" cant become negative. HEre is my code: context.temp = context.temp || 0.0; context.compspd = context.compspd || 0; context.compspd\_…

---

## [Time function as trigger in a flow](https://discourse.nodered.org/t/time-function-as-trigger-in-a-flow/82732)

<div class="topic-metadata">

**Author:** [@wbravin](https://discourse.nodered.org/u/wbravin)\
**Replies:** 21\
**Last updated:** [1 December 2023 15:59 UTC](https://discourse.nodered.org/t/time-function-as-trigger-in-a-flow/82732 "2023-12-01T15:59:22Z")

</div>

Hello all although i extemly new to node red and i'm not an it guy i want to learn how to build automation in node red within Home Assistant. I have contracted 4 flows that cover lights climate control geofencing and …

---

## [Graph when no data is received](https://discourse.nodered.org/t/graph-when-no-data-is-received/83331)

<div class="topic-metadata">

**Author:** [@Tomi](https://discourse.nodered.org/u/Tomi)\
**Replies:** 4\
**Last updated:** [1 December 2023 15:17 UTC](https://discourse.nodered.org/t/graph-when-no-data-is-received/83331 "2023-12-01T15:17:23Z")

</div>

Hello Is there a way to hide the graph when the dashboard is not receiving data?

---

## [Change node brain fart](https://discourse.nodered.org/t/change-node-brain-fart/83203)

<div class="topic-metadata">

**Author:** [@eerke2021](https://discourse.nodered.org/u/eerke2021)\
**Replies:** 9\
**Last updated:** [1 December 2023 15:12 UTC](https://discourse.nodered.org/t/change-node-brain-fart/83203 "2023-12-01T15:12:46Z")

</div>

My device puts out this. A debug node says this is a string. {"endpoint":{"serial\_number":"142d41fffe3842f9"},"payload":{"temperature":{"temperature":12.1}}} I can send it in/out MQTT and extract the number with a chan…

---

## [Home Assistant - Octopus Energy Event](https://discourse.nodered.org/t/home-assistant-octopus-energy-event/83347)

<div class="topic-metadata">

**Author:** [@leacho73](https://discourse.nodered.org/u/leacho73)\
**Replies:** 0\
**Last updated:** [1 December 2023 13:02 UTC](https://discourse.nodered.org/t/home-assistant-octopus-energy-event/83347 "2023-12-01T13:02:58Z")

</div>

Hi All, I'm looking to create a flow based on some event data which I get out of my Octopus Energy integration. Every so often, we get cheap electric for a period of time - and I see this information in home assistant -…

---

## [How to delay only true messages](https://discourse.nodered.org/t/how-to-delay-only-true-messages/83337)

<div class="topic-metadata">

**Author:** [@mrDal666](https://discourse.nodered.org/u/mrDal666)\
**Replies:** 10\
**Last updated:** [1 December 2023 14:30 UTC](https://discourse.nodered.org/t/how-to-delay-only-true-messages/83337 "2023-12-01T14:30:27Z")

</div>

Hi, i need some help. i want to delay only a true message for 1 hour and not the false. how do i do that? been searching for a week now zo please help. i tryed somting like this but its not working. \[{"id":"3a512d1f…

---

## [I cannot create a username and password](https://discourse.nodered.org/t/i-cannot-create-a-username-and-password/83324)

<div class="topic-metadata">

**Author:** [@emrerdogan](https://discourse.nodered.org/u/emrerdogan)\
**Replies:** 11\
**Last updated:** [1 December 2023 14:16 UTC](https://discourse.nodered.org/t/i-cannot-create-a-username-and-password/83324 "2023-12-01T14:16:15Z")

</div>

I cannot create a username and password. I follow the instructions on the installation page, but I cannot get positive results. the problem command : settings.js node-red version: v3.1.0 macOs

---

## [Modbus write random delay](https://discourse.nodered.org/t/modbus-write-random-delay/83313)

<div class="topic-metadata">

**Author:** [@Shiraho](https://discourse.nodered.org/u/Shiraho)\
**Replies:** 1\
**Last updated:** [1 December 2023 10:33 UTC](https://discourse.nodered.org/t/modbus-write-random-delay/83313 "2023-12-01T10:33:48Z")

</div>

Hello, I have a MQTT, Node-Red and modbus server installed on the same device. What I want to do is: read temperature from mqtt device in node-red---\> working fine convert temperature from float to int ---\> working fi…

---

## [Node-red-contrib-open-protocol 106 How to collect tightening data](https://discourse.nodered.org/t/node-red-contrib-open-protocol-106-how-to-collect-tightening-data/83333)

<div class="topic-metadata">

**Author:** [@julaoshi](https://discourse.nodered.org/u/julaoshi)\
**Replies:** 0\
**Last updated:** [1 December 2023 08:31 UTC](https://discourse.nodered.org/t/node-red-contrib-open-protocol-106-how-to-collect-tightening-data/83333 "2023-12-01T08:31:24Z")

</div>

How to use the node red contrib open protocol node to read the tightening data of 106? Can you provide me with a JSON process? I don't understand the specific meaning of the warning for 106 in the node. I want to collect…

---

## [Entry in node-RED startup log](https://discourse.nodered.org/t/entry-in-node-red-startup-log/83321)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 3\
**Last updated:** [30 November 2023 21:11 UTC](https://discourse.nodered.org/t/entry-in-node-red-startup-log/83321 "2023-11-30T21:11:57Z")

</div>

Just updated to Node-RED v3.1.1 (and maybe it's a coincidence) but noticed the entry below in the NR log which I can't recall seeing before, anyone know what it is? @f /usr/lib/node\_modules/@node-red/runtime/lib/nodes/c…

---

## [Overdue Node-Red upgrade](https://discourse.nodered.org/t/overdue-node-red-upgrade/83317)

<div class="topic-metadata">

**Author:** [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Replies:** 6\
**Last updated:** [30 November 2023 20:55 UTC](https://discourse.nodered.org/t/overdue-node-red-upgrade/83317 "2023-11-30T20:55:58Z")

</div>

I am a little bit behind keeping my Node-Red up-to-date. Actually not so much Node-Red, but Node.js. And I cannot updated some of my components, as my Node.js is still v14. Node-Red: v3.0.2 Node.js: v14.21.0 npm: v6.1…

---

## [Issue with Dashboard display - Problema con la visualización del panel de control](https://discourse.nodered.org/t/issue-with-dashboard-display-problema-con-la-visualizacion-del-panel-de-control/83286)

<div class="topic-metadata">

**Author:** [@madefrutos](https://discourse.nodered.org/u/madefrutos)\
**Replies:** 21\
**Last updated:** [30 November 2023 17:44 UTC](https://discourse.nodered.org/t/issue-with-dashboard-display-problema-con-la-visualizacion-del-panel-de-control/83286 "2023-11-30T17:44:34Z")

</div>

No soy capaz de conseguir tener en el mismo Tab un nodo de interruptor y un Led, o me sale uno o el otro pero nunca los dos Esto solo me pasa en el Node Red de la Raspberry, en el PC me sale perfectamente ¿puede ser al…

---

## [How use node-red-contrib-rfxcom 2.12.1 with RFXCom?](https://discourse.nodered.org/t/how-use-node-red-contrib-rfxcom-2-12-1-with-rfxcom/83232)

<div class="topic-metadata">

**Author:** [@maru](https://discourse.nodered.org/u/maru)\
**Replies:** 17\
**Last updated:** [30 November 2023 15:38 UTC](https://discourse.nodered.org/t/how-use-node-red-contrib-rfxcom-2-12-1-with-rfxcom/83232 "2023-11-30T15:38:48Z")

</div>

Good evening, I need some help to get my RFXCom running with node-red-contrib-rfxcom 2.12.1 The RFXCom is connected via USB and when I consult dmesg it looks fine: \[1468387.729015\] usb 1-1.4: New USB device strings: …

---

## [XML Manipulation and searching](https://discourse.nodered.org/t/xml-manipulation-and-searching/83273)

<div class="topic-metadata">

**Author:** [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Replies:** 12\
**Last updated:** [30 November 2023 08:00 UTC](https://discourse.nodered.org/t/xml-manipulation-and-searching/83273 "2023-11-30T08:00:28Z")

</div>

G'Day Peoples, Im a Bit of a Noob with XML and it turns out just doing some work with XML and an web API Is there a way of searching XML for example, So if the location of the value, in this case "Printing Status" is s…

---

## [OAUTH2 Authentication with authentik](https://discourse.nodered.org/t/oauth2-authentication-with-authentik/83238)

<div class="topic-metadata">

**Author:** [@chrisn-au](https://discourse.nodered.org/u/chrisn-au)\
**Replies:** 5\
**Last updated:** [29 November 2023 12:05 UTC](https://discourse.nodered.org/t/oauth2-authentication-with-authentik/83238 "2023-11-29T12:05:18Z")

</div>

Howdy, it has been a while - work has been busy. Have been having a play with my home set up and for fun looking at using authentik as the SSO for my home lab. I am learning on the fly here so probably have made a sill…

---

## [Can we convert the json of our node-red workflow into any specific programming language or into swagger doc](https://discourse.nodered.org/t/can-we-convert-the-json-of-our-node-red-workflow-into-any-specific-programming-language-or-into-swagger-doc/83276)

<div class="topic-metadata">

**Author:** [@pranshta](https://discourse.nodered.org/u/pranshta)\
**Replies:** 5\
**Last updated:** [29 November 2023 17:13 UTC](https://discourse.nodered.org/t/can-we-convert-the-json-of-our-node-red-workflow-into-any-specific-programming-language-or-into-swagger-doc/83276 "2023-11-29T17:13:43Z")

</div>

I want to generate my node-red api calls workflow into a specific programming language . We have that functionality in Postman, where we can do that . So do we have such thing in Node-Red or any suggestion would be great…

---

## [Variables in edit fields](https://discourse.nodered.org/t/variables-in-edit-fields/83281)

<div class="topic-metadata">

**Author:** [@GretaC](https://discourse.nodered.org/u/GretaC)\
**Replies:** 12\
**Last updated:** [29 November 2023 16:38 UTC](https://discourse.nodered.org/t/variables-in-edit-fields/83281 "2023-11-29T16:38:42Z")

</div>

Is there any way to use variables instead of strings in edit fields of a node? To make it concrete: In case of e.g. MQTT I have some devices of the same type. All devices have a couple of properties. In order to acces…

---

## [Deploy dirties git state](https://discourse.nodered.org/t/deploy-dirties-git-state/83280)

<div class="topic-metadata">

**Author:** [@dzm](https://discourse.nodered.org/u/dzm)\
**Replies:** 16\
**Last updated:** [29 November 2023 15:36 UTC](https://discourse.nodered.org/t/deploy-dirties-git-state/83280 "2023-11-29T15:36:54Z")

</div>

Hello I have come up with a contraption to split flows into separate files so that they could be kept in different repositories. That works quite well and isn't related to the main Node-RED functionality. Yet I notice …

---

## [Global.get in a function changes the global variable](https://discourse.nodered.org/t/global-get-in-a-function-changes-the-global-variable/83259)

<div class="topic-metadata">

**Author:** [@haegar33](https://discourse.nodered.org/u/haegar33)\
**Replies:** 9\
**Last updated:** [29 November 2023 12:54 UTC](https://discourse.nodered.org/t/global-get-in-a-function-changes-the-global-variable/83259 "2023-11-29T12:54:36Z")

</div>

This is strange. I got a list of my zigbee devices in an javascript array which are stored in global.set("devices"): \[ {"name":"Coordinator","status":"online","time":1701191747304,"color":"white","ignored":false,"alarm"…

---

## [Help with TEMPLATE node](https://discourse.nodered.org/t/help-with-template-node/83262)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 4\
**Last updated:** [28 November 2023 21:30 UTC](https://discourse.nodered.org/t/help-with-template-node/83262 "2023-11-28T21:30:33Z")

</div>

I am wanting to inject something like this: volume=-12dB When it is put through the template node I am getting this (extract) -af "volume&#x3D;0db" The - is replaced with &#x3D' (or is it the =- that is messing thin…

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

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