# General

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

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

**Page:** 628

---

## [Two Sensors (Scale HX477 & RFID RC522) changed payload](https://discourse.nodered.org/t/two-sensors-scale-hx477-rfid-rc522-changed-payload/38406)

<div class="topic-metadata">

**Author:** [@2safe4you](https://discourse.nodered.org/u/2safe4you)\
**Replies:** 3\
**Last updated:** [6 January 2021 14:12 UTC](https://discourse.nodered.org/t/two-sensors-scale-hx477-rfid-rc522-changed-payload/38406 "2021-01-06T14:12:30Z")

</div>

Hello, I'm in the beginning with node-red. A amateur... I use it with a MQTT Broker on a RASPI and i switch a lot aof SONOFF Devices with Tasmota. All working nice. Now i will start with a small new Project on a ESP8…

---

## [How to do number higher than 51 true under fals](https://discourse.nodered.org/t/how-to-do-number-higher-than-51-true-under-fals/38655)

<div class="topic-metadata">

**Author:** [@bvt-events](https://discourse.nodered.org/u/bvt-events)\
**Replies:** 2\
**Last updated:** [6 January 2021 13:32 UTC](https://discourse.nodered.org/t/how-to-do-number-higher-than-51-true-under-fals/38655 "2021-01-06T13:32:00Z")

</div>

a good day could someone help me with the following. I have a number between 0 and 100 that I receive but I want if the number is 51 or higher that true comes out of the flow, it is lower than fals. can someone give me…

---

## [oAuth2 server create issue](https://discourse.nodered.org/t/oauth2-server-create-issue/38638)

<div class="topic-metadata">

**Author:** [@msupra](https://discourse.nodered.org/u/msupra)\
**Replies:** 5\
**Last updated:** [6 January 2021 13:10 UTC](https://discourse.nodered.org/t/oauth2-server-create-issue/38638 "2021-01-06T13:10:05Z")

</div>

Hi I am trying to implement an oAuth2 server within node-red. One of the requirements is a model to be used which is declared as follows: const OAuth2Server=global.get('OAuth2Server') Request = OAuth2Server.Request, Re…

---

## [setTimeout - clearTimeout](https://discourse.nodered.org/t/settimeout-cleartimeout/38515)

<div class="topic-metadata">

**Author:** [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Replies:** 3\
**Last updated:** [4 January 2021 13:20 UTC](https://discourse.nodered.org/t/settimeout-cleartimeout/38515 "2021-01-04T13:20:01Z")

</div>

I am trying to understand how setTimeout and clearTimeout works. Please have a look at the attached flow. Normal delay of 5 sec works ok. But when I send a reset the output shows the time of the reset but at the end of…

---

## [How to connect MongoDB with node-red](https://discourse.nodered.org/t/how-to-connect-mongodb-with-node-red/38620)

<div class="topic-metadata">

**Author:** [@sabayke](https://discourse.nodered.org/u/sabayke)\
**Replies:** 16\
**Last updated:** [6 January 2021 02:08 UTC](https://discourse.nodered.org/t/how-to-connect-mongodb-with-node-red/38620 "2021-01-06T02:08:49Z")

</div>

I have this flow when I try to deploy my flows I get this message Error: More than 1 database name in URL here is my url : mongodb+srv://username:password1234@cluster0.hx0l5.mongodb.net/capteurs?retryWrites=true&w=maj…

---

## [CryptoJS encode displays different results despite same input](https://discourse.nodered.org/t/cryptojs-encode-displays-different-results-despite-same-input/38566)

<div class="topic-metadata">

**Author:** [@nicnacnic](https://discourse.nodered.org/u/nicnacnic)\
**Replies:** 17\
**Last updated:** [6 January 2021 01:35 UTC](https://discourse.nodered.org/t/cryptojs-encode-displays-different-results-despite-same-input/38566 "2021-01-06T01:35:01Z")

</div>

Hey all, I've been using the CryptoJS library to encode a string to authenticate a user with another program. The way it works is that you send an auth request, and you get two strings. Then you combine and encode those…

---

## [Bug in node-red-node-random?](https://discourse.nodered.org/t/bug-in-node-red-node-random/38618)

<div class="topic-metadata">

**Author:** [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Replies:** 3\
**Last updated:** [5 January 2021 22:42 UTC](https://discourse.nodered.org/t/bug-in-node-red-node-random/38618 "2021-01-05T22:42:25Z")

</div>

When configured to generate real number bigger than 100 the output is string, not number. Between 1 to 10 works correctly. Don't know exact value were it breaks. node-red-node-random v0.3.0 5 Jan 23:30:28 - \[info\] …

---

## [Help with sub-flow and \`node.status\`](https://discourse.nodered.org/t/help-with-sub-flow-and-node-status/38617)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 11\
**Last updated:** [5 January 2021 22:17 UTC](https://discourse.nodered.org/t/help-with-sub-flow-and-node-status/38617 "2021-01-05T22:17:46Z")

</div>

I am wanting to make the node show either a red or green filled circle depending on the condition. The message I send...... Is the important stuff in payload or do I have to put it in status? (Semi rhetorical, but I…

---

## [Noble doesn´t work](https://discourse.nodered.org/t/noble-doesn-t-work/38590)

<div class="topic-metadata">

**Author:** [@goodcat](https://discourse.nodered.org/u/goodcat)\
**Replies:** 5\
**Last updated:** [5 January 2021 22:14 UTC](https://discourse.nodered.org/t/noble-doesn-t-work/38590 "2021-01-05T22:14:14Z")

</div>

Hi, I´m unable to install the noble node on my Raspberry Pi 4. Somehow it says no permission. But I tried as sudo. Can someone help me, or knuw a newer alternative? big tkanks marcel

---

## [Error: Expected numeric value for, timestamp](https://discourse.nodered.org/t/error-expected-numeric-value-for-timestamp/38586)

<div class="topic-metadata">

**Author:** [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Replies:** 6\
**Last updated:** [5 January 2021 21:33 UTC](https://discourse.nodered.org/t/error-expected-numeric-value-for-timestamp/38586 "2021-01-05T21:33:22Z")

</div>

Hallo a mqtt into Node-Red --\> into influx i got a error like this 5.1.2021, 13:13:08node: 6d00231f.50158c msg : error "Error: Expected numeric value for, timestamp, but got '2021-01-05 12:13:10'!" and the payloa…

---

## [HTTP post Content-Type header not working](https://discourse.nodered.org/t/http-post-content-type-header-not-working/38596)

<div class="topic-metadata">

**Author:** [@JohnnyPicnic](https://discourse.nodered.org/u/JohnnyPicnic)\
**Replies:** 3\
**Last updated:** [5 January 2021 21:22 UTC](https://discourse.nodered.org/t/http-post-content-type-header-not-working/38596 "2021-01-05T21:22:30Z")

</div>

I'm attempting to send an http post request to an API. I can send it successfully using https://apitester.com/ online API tester but when I try it with Node-Red I get a 302 error. The one variable i've found that gets me…

---

## [Installation/restore files question](https://discourse.nodered.org/t/installation-restore-files-question/38562)

<div class="topic-metadata">

**Author:** [@gerry](https://discourse.nodered.org/u/gerry)\
**Replies:** 2\
**Last updated:** [5 January 2021 20:40 UTC](https://discourse.nodered.org/t/installation-restore-files-question/38562 "2021-01-05T20:40:16Z")

</div>

Read through the backup and installation questions however I seek some clarity. If I take a fresh pi OS install then run the node red install script I should have a good running install of node red. If I then take a .no…

---

## [Hyphen character (-) problem in function mqtt tasmota](https://discourse.nodered.org/t/hyphen-character-problem-in-function-mqtt-tasmota/20236)

<div class="topic-metadata">

**Author:** [@fzr91](https://discourse.nodered.org/u/fzr91)\
**Replies:** 34\
**Last updated:** [5 January 2021 17:37 UTC](https://discourse.nodered.org/t/hyphen-character-problem-in-function-mqtt-tasmota/20236 "2021-01-05T17:37:44Z")

</div>

Hi, I have a problem with the dash (-)in this function (mqtt - tasmota temperature sensor): var temp = msg.payload.AM2301-13.Temperature; var msg = { payload:temp }; return msg; How can I use - as simpl…

---

## [Sending message asynchronously? How to send payload once an event occurs?](https://discourse.nodered.org/t/sending-message-asynchronously-how-to-send-payload-once-an-event-occurs/38599)

<div class="topic-metadata">

**Author:** [@adamelli](https://discourse.nodered.org/u/adamelli)\
**Replies:** 1\
**Last updated:** [5 January 2021 16:34 UTC](https://discourse.nodered.org/t/sending-message-asynchronously-how-to-send-payload-once-an-event-occurs/38599 "2021-01-05T16:34:26Z")

</div>

Using the Dashboard, a user selects a sequence of commands (say for robot movement). Once the user is satisfied with their selected sequence, I want that string to be published. Only once the user is done though. So onc…

---

## [OPC UA Client Node Errors](https://discourse.nodered.org/t/opc-ua-client-node-errors/38598)

<div class="topic-metadata">

**Author:** [@psalibe](https://discourse.nodered.org/u/psalibe)\
**Replies:** 0\
**Last updated:** [5 January 2021 15:57 UTC](https://discourse.nodered.org/t/opc-ua-client-node-errors/38598 "2021-01-05T15:57:56Z")

</div>

I am using a Siemens S7-1200 PLC and connecting it within Node-Red on a Siemens IOT2040 and through to the OPC UA Client Node. Sometimes it works and gives the "active reading" and goes on a little run where it works, bu…

---

## [Filter array with out index](https://discourse.nodered.org/t/filter-array-with-out-index/38563)

<div class="topic-metadata">

**Author:** [@Paulf007](https://discourse.nodered.org/u/Paulf007)\
**Replies:** 4\
**Last updated:** [5 January 2021 15:50 UTC](https://discourse.nodered.org/t/filter-array-with-out-index/38563 "2021-01-05T15:50:53Z")

</div>

I am building a Alarm that monitors all the doors on my property and would like to get a notification at 18H00 to inform me if any of them was left open. I created a function that monitors the topic's and then sets thei…

---

## [Setting a value to 0](https://discourse.nodered.org/t/setting-a-value-to-0/38581)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 6\
**Last updated:** [5 January 2021 12:59 UTC](https://discourse.nodered.org/t/setting-a-value-to-0/38581 "2021-01-05T12:59:50Z")

</div>

Hi, I want to disable one of my inverters. If I do, the values freeze. I want to set them to "0". But I don´t get a "0", always error or "undefined". I just want to override with a "0" after disabling the inverter /…

---

## [Value to Array conversion](https://discourse.nodered.org/t/value-to-array-conversion/38568)

<div class="topic-metadata">

**Author:** [@DSongra11\_forum.com](https://discourse.nodered.org/u/DSongra11_forum.com)\
**Replies:** 5\
**Last updated:** [5 January 2021 12:46 UTC](https://discourse.nodered.org/t/value-to-array-conversion/38568 "2021-01-05T12:46:32Z")

</div>

Hello, I want to convert msg.payload Value into an array for sql database. Attached debug message screenshot. Thanks in advance. Br, Devendra

---

## [Node Red into InfluxDB Problems](https://discourse.nodered.org/t/node-red-into-influxdb-problems/38548)

<div class="topic-metadata">

**Author:** [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Replies:** 2\
**Last updated:** [4 January 2021 23:27 UTC](https://discourse.nodered.org/t/node-red-into-influxdb-problems/38548 "2021-01-04T23:27:21Z")

</div>

Hello there i get the water Temperatur of a small River close by. i wish to save it into InfluxDB i think i miss something because there are no data show databases onl\_wa\_pfa use onl\_wa\_pfa show series key Wasse…

---

## [Node-Red & Docker Swarm secrets](https://discourse.nodered.org/t/node-red-docker-swarm-secrets/38585)

<div class="topic-metadata">

**Author:** [@efratha94](https://discourse.nodered.org/u/efratha94)\
**Replies:** 0\
**Last updated:** [5 January 2021 12:05 UTC](https://discourse.nodered.org/t/node-red-docker-swarm-secrets/38585 "2021-01-05T12:05:23Z")

</div>

Hi, Is there a way to define secrets for a node-red service running on docker swarm, and access it from the editor? I want to manage my passwords for a project that way, but I don't know how to configure it in a way I …

---

## [Struggling with async function](https://discourse.nodered.org/t/struggling-with-async-function/38574)

<div class="topic-metadata">

**Author:** [@msupra](https://discourse.nodered.org/u/msupra)\
**Replies:** 1\
**Last updated:** [5 January 2021 12:01 UTC](https://discourse.nodered.org/t/struggling-with-async-function/38574 "2021-01-05T12:01:15Z")

</div>

Hi My node.js skills when it comes to async functions, leaves much to be desired. Below is a copy paste exercise from some code, but I can just not figure out how to return the result from this function call: function …

---

## [Create Rest API Service on PI which act on PUT and GET requests](https://discourse.nodered.org/t/create-rest-api-service-on-pi-which-act-on-put-and-get-requests/38520)

<div class="topic-metadata">

**Author:** [@calberts](https://discourse.nodered.org/u/calberts)\
**Replies:** 2\
**Last updated:** [5 January 2021 11:33 UTC](https://discourse.nodered.org/t/create-rest-api-service-on-pi-which-act-on-put-and-get-requests/38520 "2021-01-05T11:33:01Z")

</div>

Hoi Can some one help me, I like to build some functions on my node-red implementation. to control them via an API. Very simple when sending a PUT I want to control the GPIO and a GET which show some results back P…

---

## [No Website with Firefox Plugin](https://discourse.nodered.org/t/no-website-with-firefox-plugin/38541)

<div class="topic-metadata">

**Author:** [@Manfred53](https://discourse.nodered.org/u/Manfred53)\
**Replies:** 2\
**Last updated:** [5 January 2021 08:32 UTC](https://discourse.nodered.org/t/no-website-with-firefox-plugin/38541 "2021-01-05T08:32:47Z")

</div>

I have installed the Firerfox plugin Noscript (https://noscript.net/). After activating this plugin the node-red websites of the Raspberry are not depict anymore (http://raspberrypi.local:1880 and http://raspberrypi.loca…

---

## [Need Advice For 2 Different X Axis Position](https://discourse.nodered.org/t/need-advice-for-2-different-x-axis-position/38556)

<div class="topic-metadata">

**Author:** [@mrizkywiguna](https://discourse.nodered.org/u/mrizkywiguna)\
**Replies:** 0\
**Last updated:** [5 January 2021 00:12 UTC](https://discourse.nodered.org/t/need-advice-for-2-different-x-axis-position/38556 "2021-01-05T00:12:28Z")

</div>

Hello All, I am making a chart with 2 types of X Axis, one in normal condition and one in invert condition. The two Y Axis data have different topics. I've coded the chart from several references, but they don't seem to…

---

## [Converting timestamp in excel](https://discourse.nodered.org/t/converting-timestamp-in-excel/38537)

<div class="topic-metadata">

**Author:** [@traderjoe](https://discourse.nodered.org/u/traderjoe)\
**Replies:** 8\
**Last updated:** [4 January 2021 23:04 UTC](https://discourse.nodered.org/t/converting-timestamp-in-excel/38537 "2021-01-04T23:04:51Z")

</div>

I'm collecting data into a CSV file. I have timestamp followed by my data. The issue is the timestamp. The code works, and I'm logging the timestamp and data. But when I go to open in excel, I get the above. Colum…

---

## [Set payload message with function node](https://discourse.nodered.org/t/set-payload-message-with-function-node/38551)

<div class="topic-metadata">

**Author:** [@Bobbybau91](https://discourse.nodered.org/u/Bobbybau91)\
**Replies:** 4\
**Last updated:** [4 January 2021 22:29 UTC](https://discourse.nodered.org/t/set-payload-message-with-function-node/38551 "2021-01-04T22:29:15Z")

</div>

Hello, first, sorry for my bad English and for my noob questions (I just started with node red). I have data I want to save in a .csv file. The problem ist, that the data quantity changes, so I don't need some time 3 da…

---

## [Esp 32 and ws2812b leds](https://discourse.nodered.org/t/esp-32-and-ws2812b-leds/38533)

<div class="topic-metadata">

**Author:** [@Newguy2021](https://discourse.nodered.org/u/Newguy2021)\
**Replies:** 5\
**Last updated:** [4 January 2021 21:19 UTC](https://discourse.nodered.org/t/esp-32-and-ws2812b-leds/38533 "2021-01-04T21:19:01Z")

</div>

Hello I am very new to nodered and coding. I have gotten my led matrix blinking and color shifting like I want but now I would like to send messages to the matrix and scroll the text. Can someone point me in the general …

---

## [Function to replace a word with payload](https://discourse.nodered.org/t/function-to-replace-a-word-with-payload/38547)

<div class="topic-metadata">

**Author:** [@paco1503](https://discourse.nodered.org/u/paco1503)\
**Replies:** 5\
**Last updated:** [4 January 2021 20:27 UTC](https://discourse.nodered.org/t/function-to-replace-a-word-with-payload/38547 "2021-01-04T20:27:34Z")

</div>

Hey, hope i am using this forum like it used to be. At first english is not my first language :wink: I am new to node red and programming. I want to replace a word in a msg.payload with coordinates i get from an array…

---

## [SSH key usage with github](https://discourse.nodered.org/t/ssh-key-usage-with-github/38409)

<div class="topic-metadata">

**Author:** [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Replies:** 13\
**Last updated:** [4 January 2021 20:02 UTC](https://discourse.nodered.org/t/ssh-key-usage-with-github/38409 "2021-01-04T20:02:12Z")

</div>

I just received the security deprecation notice form github so I wanted to install my ssh keys. In the node-red UI where I can create a new key, I would like to use an existing key. I have already entered the public ke…

---

## [Is node-red-contrib-kodi OK?](https://discourse.nodered.org/t/is-node-red-contrib-kodi-ok/38387)

<div class="topic-metadata">

**Author:** [@kart-able](https://discourse.nodered.org/u/kart-able)\
**Replies:** 11\
**Last updated:** [4 January 2021 17:32 UTC](https://discourse.nodered.org/t/is-node-red-contrib-kodi-ok/38387 "2021-01-04T17:32:15Z")

</div>

Hello all, I'd like to use the node-red-contrib-kodi nodes, or any other ones that could do it. What I want to do is just start Kodi from node-red (Kodi is installed as an app in my raspbian config). Then I could use K…

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

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