# General

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

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

**Page:** 525

---

## [Seeing the code for custom nodes](https://discourse.nodered.org/t/seeing-the-code-for-custom-nodes/48291)

<div class="topic-metadata">

**Author:** [@ryan1998](https://discourse.nodered.org/u/ryan1998)\
**Replies:** 2\
**Last updated:** [12 July 2021 12:43 UTC](https://discourse.nodered.org/t/seeing-the-code-for-custom-nodes/48291 "2021-07-12T12:43:41Z")

</div>

Hi all. I am new to Node-Red. I just installed a custom node. (node-red-contrib-rate (node) - Node-RED) For learning purposes, it would be great to see the javscript that drives the node functionality. Is there any …

---

## [Flow rate node : Output not in msg object](https://discourse.nodered.org/t/flow-rate-node-output-not-in-msg-object/48307)

<div class="topic-metadata">

**Author:** [@ryan1998](https://discourse.nodered.org/u/ryan1998)\
**Replies:** 3\
**Last updated:** [12 July 2021 12:11 UTC](https://discourse.nodered.org/t/flow-rate-node-output-not-in-msg-object/48307 "2021-07-12T12:11:23Z")

</div>

I am new to Node Red. I am using the "Rate" node. (node-red-contrib-rate (node) - Node-RED) The docs say that the output is "msg.rate". When I add a debug and set it to show the complete object, I get this: {"topic"…

---

## [Need some help with float numbers](https://discourse.nodered.org/t/need-some-help-with-float-numbers/48292)

<div class="topic-metadata">

**Author:** [@Aivaras](https://discourse.nodered.org/u/Aivaras)\
**Replies:** 10\
**Last updated:** [12 July 2021 11:25 UTC](https://discourse.nodered.org/t/need-some-help-with-float-numbers/48292 "2021-07-12T11:25:36Z")

</div>

Hi, I have some difficulties with float numbers. I am usind node-red modbus to read some modbus values. I read two values and they are in array \[34853, 200\]. I need to convert that first number to negative float. Can so…

---

## [How can I use ui like multi-screen(dialog)?](https://discourse.nodered.org/t/how-can-i-use-ui-like-multi-screen-dialog/48286)

<div class="topic-metadata">

**Author:** [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Replies:** 1\
**Last updated:** [12 July 2021 10:05 UTC](https://discourse.nodered.org/t/how-can-i-use-ui-like-multi-screen-dialog/48286 "2021-07-12T10:05:07Z")

</div>

Dear All : Like title, My mean is like below at one screen : into into main -\> dialog1 -\> dialog2 exit exit Thank u.

---

## [How can I use UI standalone?](https://discourse.nodered.org/t/how-can-i-use-ui-standalone/48285)

<div class="topic-metadata">

**Author:** [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Replies:** 10\
**Last updated:** [12 July 2021 09:44 UTC](https://discourse.nodered.org/t/how-can-i-use-ui-standalone/48285 "2021-07-12T09:44:56Z")

</div>

Dear All : Like title, No need flow edit just ui ...Can and How? Thank u

---

## [Pause flows from cmd line](https://discourse.nodered.org/t/pause-flows-from-cmd-line/48293)

<div class="topic-metadata">

**Author:** [@JoshuaG](https://discourse.nodered.org/u/JoshuaG)\
**Replies:** 3\
**Last updated:** [12 July 2021 09:28 UTC](https://discourse.nodered.org/t/pause-flows-from-cmd-line/48293 "2021-07-12T09:28:40Z")

</div>

I'm running my node from within a portainer container system and one of my flows has ran away and now I cannot manage the node from the web interface, does anyone know a command i can use from the console to pause the fl…

---

## [How can I initial all node and send out when ui is first start?](https://discourse.nodered.org/t/how-can-i-initial-all-node-and-send-out-when-ui-is-first-start/48287)

<div class="topic-metadata">

**Author:** [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Replies:** 4\
**Last updated:** [12 July 2021 08:29 UTC](https://discourse.nodered.org/t/how-can-i-initial-all-node-and-send-out-when-ui-is-first-start/48287 "2021-07-12T08:29:03Z")

</div>

Dear All : Does nore-red can do that like title? Thank u.

---

## [Using values from entities directly in function nodes](https://discourse.nodered.org/t/using-values-from-entities-directly-in-function-nodes/48267)

<div class="topic-metadata">

**Author:** [@RonMa](https://discourse.nodered.org/u/RonMa)\
**Replies:** 13\
**Last updated:** [12 July 2021 02:19 UTC](https://discourse.nodered.org/t/using-values-from-entities-directly-in-function-nodes/48267 "2021-07-12T02:19:20Z")

</div>

Hi there, I´m again struggling with my "Home Assistant" integration in Node Red which actually provides global variables for each entity of the system. For what reason ever, all values are provided formated as a string …

---

## [Template node cannot receive POST data correctly](https://discourse.nodered.org/t/template-node-cannot-receive-post-data-correctly/48171)

<div class="topic-metadata">

**Author:** [@homeuser](https://discourse.nodered.org/u/homeuser)\
**Replies:** 2\
**Last updated:** [12 July 2021 02:12 UTC](https://discourse.nodered.org/t/template-node-cannot-receive-post-data-correctly/48171 "2021-07-12T02:12:22Z")

</div>

Hi, I tried to retrieve data in template node from POST by AJAX. However, data is returned in the header and not in the body. Attached is my flow. Help is much appreciated. \[{"id":"1683bd9a.5e0a02","type":"tab","label…

---

## [Sending Json data in PHP url to WhatsAPP](https://discourse.nodered.org/t/sending-json-data-in-php-url-to-whatsapp/48231)

<div class="topic-metadata">

**Author:** [@tramanah](https://discourse.nodered.org/u/tramanah)\
**Replies:** 4\
**Last updated:** [12 July 2021 00:14 UTC](https://discourse.nodered.org/t/sending-json-data-in-php-url-to-whatsapp/48231 "2021-07-12T00:14:24Z")

</div>

Hi , I am trying to send json data in API WhatsApp. But unsuccessful https://api.callmebot.com/whatsapp.php?phone=+6XXXXXXXXX&text={{payload}}&apikey=XXXXX json = {"name":"pippo","surname":"topolino","street":"blablab…

---

## [Change request url for Vattenfall API automatically every day](https://discourse.nodered.org/t/change-request-url-for-vattenfall-api-automatically-every-day/48255)

<div class="topic-metadata">

**Author:** [@masteroftherings](https://discourse.nodered.org/u/masteroftherings)\
**Replies:** 4\
**Last updated:** [12 July 2021 00:03 UTC](https://discourse.nodered.org/t/change-request-url-for-vattenfall-api-automatically-every-day/48255 "2021-07-12T00:03:29Z")

</div>

Hi guys, I'm new in Node Red! I live in Sweden and I have the swedish electricity company Vattenfall as my electricity supplier. They have an API that publishes tomorrow electricity price hour by hour. The problem is t…

---

## [How to change Json text](https://discourse.nodered.org/t/how-to-change-json-text/48273)

<div class="topic-metadata">

**Author:** [@ryan1998](https://discourse.nodered.org/u/ryan1998)\
**Replies:** 1\
**Last updated:** [11 July 2021 17:20 UTC](https://discourse.nodered.org/t/how-to-change-json-text/48273 "2021-07-11T17:20:37Z")

</div>

Hi all. Very new to Node Red. I have an MQTT node, with this output: Preformatted text{"topic":"flow-meter/heartbeat7","payload":"+112","qos":0,"retain":false,"\_msgid":"rf6226f9.aug622"} I want to use a change node t…

---

## [Logic for input value](https://discourse.nodered.org/t/logic-for-input-value/48153)

<div class="topic-metadata">

**Author:** [@Stes](https://discourse.nodered.org/u/Stes)\
**Replies:** 13\
**Last updated:** [11 July 2021 17:12 UTC](https://discourse.nodered.org/t/logic-for-input-value/48153 "2021-07-11T17:12:18Z")

</div>

I have 4 inputs, and Input payload can be one of them ("x", "y" or "z"). And if payload is "z" then it with show msg.payload "1" otherwise zero, and among 4 inputs if atleast one input is "z" then the msg.payload is "1" …

---

## [A better way to Modbus?](https://discourse.nodered.org/t/a-better-way-to-modbus/47851)

<div class="topic-metadata">

**Author:** [@dleberfinger](https://discourse.nodered.org/u/dleberfinger)\
**Replies:** 10\
**Last updated:** [11 July 2021 11:16 UTC](https://discourse.nodered.org/t/a-better-way-to-modbus/47851 "2021-07-11T11:16:15Z")

</div>

I'm trying to communicate with 12 different devices over modbus TCP. I have an ethernet connection to each device and I'm running Node Red on a Raspberry Pi which is also hardwired to the switch. I've managed to get it …

---

## [Inject node with multiple payload and topic](https://discourse.nodered.org/t/inject-node-with-multiple-payload-and-topic/48265)

<div class="topic-metadata">

**Author:** [@tpbillund](https://discourse.nodered.org/u/tpbillund)\
**Replies:** 5\
**Last updated:** [11 July 2021 11:12 UTC](https://discourse.nodered.org/t/inject-node-with-multiple-payload-and-topic/48265 "2021-07-11T11:12:27Z")

</div>

Hi If I need to use an inject node and need to work with two msg.topic where the topic text is: zigbee2mqtt/name1/set zigbee2mqtt/name2/set And name1 is using one payload and name2 another payload, how can I make the…

---

## [Tuya-smart-device and tuya-smart-device-generic node questions](https://discourse.nodered.org/t/tuya-smart-device-and-tuya-smart-device-generic-node-questions/48248)

<div class="topic-metadata">

**Author:** [@grant1](https://discourse.nodered.org/u/grant1)\
**Replies:** 4\
**Last updated:** [11 July 2021 09:35 UTC](https://discourse.nodered.org/t/tuya-smart-device-and-tuya-smart-device-generic-node-questions/48248 "2021-07-11T09:35:33Z")

</div>

I am trying to get either of the above nodes to work. I downloaded the sample flow and it seems straightforward enough. I have a wifi lightswitch that is connected to my wifi and I obtained the DeviceID and DeviceKey. …

---

## [Help with a webscrap](https://discourse.nodered.org/t/help-with-a-webscrap/47694)

<div class="topic-metadata">

**Author:** [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Replies:** 6\
**Last updated:** [11 July 2021 06:30 UTC](https://discourse.nodered.org/t/help-with-a-webscrap/47694 "2021-07-11T06:30:08Z")

</div>

Hello All! Can somebody lend me a hand.. HTML is not my strong point I want to get the oil price from this website Crude Oil Prices - Brent And WTI Oil Price Per Barrel (oilcrudeprice.com) I can find the figure I need …

---

## [Generate offline graph and save in PNG](https://discourse.nodered.org/t/generate-offline-graph-and-save-in-png/1802)

<div class="topic-metadata">

**Author:** [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Replies:** 4\
**Last updated:** [11 July 2021 01:04 UTC](https://discourse.nodered.org/t/generate-offline-graph-and-save-in-png/1802 "2021-07-11T01:04:17Z")

</div>

Hi All, I am looking for a way to generate a graph in the background and save it as a PNG or similar image format. I want to be able to request a graph in Telegram and have Node Red send the image of the generated graph…

---

## [Road traffic information / arrival time](https://discourse.nodered.org/t/road-traffic-information-arrival-time/48214)

<div class="topic-metadata">

**Author:** [@moormel](https://discourse.nodered.org/u/moormel)\
**Replies:** 6\
**Last updated:** [10 July 2021 22:59 UTC](https://discourse.nodered.org/t/road-traffic-information-arrival-time/48214 "2021-07-10T22:59:40Z")

</div>

Hi, does anyone know a way to obtain road traffic information and estimated arrival time from point to point (using car) without using google maps API? Perfect if available in Poland. Cheers!

---

## [Function node: How to "OR" operate](https://discourse.nodered.org/t/function-node-how-to-or-operate/48245)

<div class="topic-metadata">

**Author:** [@RonMa](https://discourse.nodered.org/u/RonMa)\
**Replies:** 3\
**Last updated:** [10 July 2021 12:50 UTC](https://discourse.nodered.org/t/function-node-how-to-or-operate/48245 "2021-07-10T12:50:09Z")

</div>

Hi guys, For one of my Alexa based flows, I´m trying to define the room in which the echo device is located that one is speaking to. Unfortunately, the corresponding "Alexa Event" node does not deliver the information a…

---

## [LIDL Smart LED bulb HG06106C](https://discourse.nodered.org/t/lidl-smart-led-bulb-hg06106c/48246)

<div class="topic-metadata">

**Author:** [@tpbillund](https://discourse.nodered.org/u/tpbillund)\
**Replies:** 10\
**Last updated:** [10 July 2021 14:22 UTC](https://discourse.nodered.org/t/lidl-smart-led-bulb-hg06106c/48246 "2021-07-10T14:22:09Z")

</div>

Hi. I have got a LIDL LED bulb HG06106C and have connected it to Zigbee2Mqtt. It works and I can change the colors. My question is... I have Node-RED and can use the "node-red-contrib-zigbee2mqtt" add-on to get the st…

---

## [Advanced charting for mdashboard (vega?)](https://discourse.nodered.org/t/advanced-charting-for-mdashboard-vega/48241)

<div class="topic-metadata">

**Author:** [@nerevar](https://discourse.nodered.org/u/nerevar)\
**Replies:** 2\
**Last updated:** [10 July 2021 10:03 UTC](https://discourse.nodered.org/t/advanced-charting-for-mdashboard-vega/48241 "2021-07-10T10:03:18Z")

</div>

Hello all, for the last 2 weeks I've been creating new chart in Vega which would replace my current mdashboard chart node. I need timeline + line + point chart all in one. As this can't be done in mdashboard chart I've…

---

## [Max "Array Number" in a msg.payload](https://discourse.nodered.org/t/max-array-number-in-a-msg-payload/48219)

<div class="topic-metadata">

**Author:** [@finch6](https://discourse.nodered.org/u/finch6)\
**Replies:** 4\
**Last updated:** [10 July 2021 09:42 UTC](https://discourse.nodered.org/t/max-array-number-in-a-msg-payload/48219 "2021-07-10T09:42:06Z")

</div>

Hi all, I'm fairly new to Node-Red, so please forgive me incorrectly naming things if I do... I'm trying to use Node-Red to pull data from a Corona API and push this to a telegram bot. I have managed to set up the Tel…

---

## [Sending an Email with a copy to 'Sent Mail'-Folder](https://discourse.nodered.org/t/sending-an-email-with-a-copy-to-sent-mail-folder/48222)

<div class="topic-metadata">

**Author:** [@tfuchs1987](https://discourse.nodered.org/u/tfuchs1987)\
**Replies:** 7\
**Last updated:** [10 July 2021 00:27 UTC](https://discourse.nodered.org/t/sending-an-email-with-a-copy-to-sent-mail-folder/48222 "2021-07-10T00:27:56Z")

</div>

Hi Forum, hope you can guide me in the right direction because I'm uncertain how I could achieve this or where to start. Sending an Email with Node-RED v1.3.5 using the Node node-red-node-email v1.12.2 a copy to the 'Se…

---

## [Background from a picture](https://discourse.nodered.org/t/background-from-a-picture/48184)

<div class="topic-metadata">

**Author:** [@madmax](https://discourse.nodered.org/u/madmax)\
**Replies:** 21\
**Last updated:** [9 July 2021 22:14 UTC](https://discourse.nodered.org/t/background-from-a-picture/48184 "2021-07-09T22:14:38Z")

</div>

Hello! Is there a way to remove the background from a picture? Here's an example.

---

## [Can't update NodeRed on Pi3](https://discourse.nodered.org/t/cant-update-nodered-on-pi3/48208)

<div class="topic-metadata">

**Author:** [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Replies:** 83\
**Last updated:** [9 July 2021 21:29 UTC](https://discourse.nodered.org/t/cant-update-nodered-on-pi3/48208 "2021-07-09T21:29:46Z")

</div>

Hi, I'm using the bash recomended: bash \<(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) But it says I've the nodejs version 10 and won't proceed. I've remove…

---

## [Github Authentication Changing as of August 13, 2021](https://discourse.nodered.org/t/github-authentication-changing-as-of-august-13-2021/48221)

<div class="topic-metadata">

**Author:** [@jmorris644](https://discourse.nodered.org/u/jmorris644)\
**Replies:** 1\
**Last updated:** [9 July 2021 20:14 UTC](https://discourse.nodered.org/t/github-authentication-changing-as-of-august-13-2021/48221 "2021-07-09T20:14:56Z")

</div>

This has been happening for a little while now but when I commit my project to github, node-red asks for my loginId/password combo. I have been receiving an email from github that they method of authenticating will be de…

---

## [Multiple URL posts in a single session](https://discourse.nodered.org/t/multiple-url-posts-in-a-single-session/48191)

<div class="topic-metadata">

**Author:** [@zuasive](https://discourse.nodered.org/u/zuasive)\
**Replies:** 10\
**Last updated:** [9 July 2021 15:26 UTC](https://discourse.nodered.org/t/multiple-url-posts-in-a-single-session/48191 "2021-07-09T15:26:41Z")

</div>

Hello everyone, I have a bit of a conundrum that I'm not sure why it is occuring. I'm building a middleware of sorts to facilitate the communications of two systems. It's fairly straight forward and I've already had suc…

---

## [Setting time into flow](https://discourse.nodered.org/t/setting-time-into-flow/48209)

<div class="topic-metadata">

**Author:** [@OmkarNodered](https://discourse.nodered.org/u/OmkarNodered)\
**Replies:** 1\
**Last updated:** [9 July 2021 10:54 UTC](https://discourse.nodered.org/t/setting-time-into-flow/48209 "2021-07-09T10:54:52Z")

</div>

I have a flow which is inserting data into mongo db database. I am using trigger node so that my flow will keep on running for 4 hrs. let us consider i have started flow at 8 AM it will insert data into database after 4…

---

## [If I have 1 input but multi output...How to do?](https://discourse.nodered.org/t/if-i-have-1-input-but-multi-output-how-to-do/48156)

<div class="topic-metadata">

**Author:** [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Replies:** 37\
**Last updated:** [9 July 2021 09:57 UTC](https://discourse.nodered.org/t/if-i-have-1-input-but-multi-output-how-to-do/48156 "2021-07-09T09:57:34Z")

</div>

Dear All Sir : Look at Pic and below : Just 1 input(RX). The function node code like: for(i=0;i\<6;i++) { switch(rx\_data\[1\]) { case 0 : //show o3 value msg.topic="Read\_All\_is\_OK"; …

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

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