# General

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

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

**Page:** 493

---

## [Need assistance with a function](https://discourse.nodered.org/t/need-assistance-with-a-function/51368)

<div class="topic-metadata">

**Author:** [@k5map](https://discourse.nodered.org/u/k5map)\
**Replies:** 3\
**Last updated:** [22 September 2021 02:54 UTC](https://discourse.nodered.org/t/need-assistance-with-a-function/51368 "2021-09-22T02:54:16Z")

</div>

I have a very simple function but for some reason it is not working as I expected... I've attached a screenshot of the function. Via Debug messages, I've confirmed global.Rain is true and msg.payload.value = "on" but th…

---

## [Watson IoT Message Structure](https://discourse.nodered.org/t/watson-iot-message-structure/51370)

<div class="topic-metadata">

**Author:** [@Cuzman\_44](https://discourse.nodered.org/u/Cuzman_44)\
**Replies:** 0\
**Last updated:** [22 September 2021 02:49 UTC](https://discourse.nodered.org/t/watson-iot-message-structure/51370 "2021-09-22T02:49:36Z")

</div>

Hello, I am trying to send data to the Watson IoT Platform, but am having some difficulty having the data parsed correctly? I have created a very simple flow to simulate temperature and humidity as follows: \[{"id":"a45…

---

## [Send SMS via Node-Red without internet](https://discourse.nodered.org/t/send-sms-via-node-red-without-internet/50800)

<div class="topic-metadata">

**Author:** [@subwayfootlong](https://discourse.nodered.org/u/subwayfootlong)\
**Replies:** 5\
**Last updated:** [9 September 2021 21:39 UTC](https://discourse.nodered.org/t/send-sms-via-node-red-without-internet/50800 "2021-09-09T21:39:20Z")

</div>

Hi all curently im using an external service provider,twilio, to send SMS. However, I would like to send SMS without using internet as the data is sensitive. Is there any hardware that I can interface with node red easi…

---

## [Low severity vulnerability that won't go away](https://discourse.nodered.org/t/low-severity-vulnerability-that-wont-go-away/51358)

<div class="topic-metadata">

**Author:** [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Replies:** 5\
**Last updated:** [21 September 2021 21:47 UTC](https://discourse.nodered.org/t/low-severity-vulnerability-that-wont-go-away/51358 "2021-09-21T21:47:14Z")

</div>

For a long time npm audit on my main Node-Red machine has reported 1 vulnerability in node-red-node-email: I have run the Raspberry install script several times, which has updated to the latest Node-Red but not fi…

---

## [Can't display image on Dashboard?](https://discourse.nodered.org/t/cant-display-image-on-dashboard/50545)

<div class="topic-metadata">

**Author:** [@smithy](https://discourse.nodered.org/u/smithy)\
**Replies:** 14\
**Last updated:** [21 September 2021 20:52 UTC](https://discourse.nodered.org/t/cant-display-image-on-dashboard/50545 "2021-09-21T20:52:20Z")

</div>

Using the Hikvision Ultimate node to capture a picture from CCTV camera but won't display on dashboard? Using the flow below, send image by email(node removed) and preview in editor both work fine just not in Dashboard? …

---

## [Importing NodeJs libraries](https://discourse.nodered.org/t/importing-nodejs-libraries/51357)

<div class="topic-metadata">

**Author:** [@tusharacc](https://discourse.nodered.org/u/tusharacc)\
**Replies:** 3\
**Last updated:** [21 September 2021 20:06 UTC](https://discourse.nodered.org/t/importing-nodejs-libraries/51357 "2021-09-21T20:06:29Z")

</div>

I am using node-red 2.0.5. Node version is 14+ I am trying to import 'fs' library as I want to use readdirSync. I am following the steps mentioned in document - loading additional module Please note, I am on windows 10…

---

## [How to use the Time Range Switch](https://discourse.nodered.org/t/how-to-use-the-time-range-switch/50915)

<div class="topic-metadata">

**Author:** [@Vlad](https://discourse.nodered.org/u/Vlad)\
**Replies:** 8\
**Last updated:** [21 September 2021 20:02 UTC](https://discourse.nodered.org/t/how-to-use-the-time-range-switch/50915 "2021-09-21T20:02:17Z")

</div>

Hi, I am pretty new to node-red. I am trying to use the time range switc. The documentation says: Ican send a message like msg.\_\_config = { startTime: '12:35', endTime: 'dusk', startOffset: 0, endOffset: 0, lat: …

---

## [Sorting Values - JSON](https://discourse.nodered.org/t/sorting-values-json/51299)

<div class="topic-metadata">

**Author:** [@joshwilliams](https://discourse.nodered.org/u/joshwilliams)\
**Replies:** 5\
**Last updated:** [21 September 2021 18:48 UTC](https://discourse.nodered.org/t/sorting-values-json/51299 "2021-09-21T18:48:27Z")

</div>

Hi Everyone, I'm really new to all of this! I currently have a UDP stream of scoreboard data and I can parse it with CSV and JSON and then output it to a file that my graphics system can look at. What I'm trying to do…

---

## [Nested Array from MySQL Statement](https://discourse.nodered.org/t/nested-array-from-mysql-statement/51329)

<div class="topic-metadata">

**Author:** [@thierryd](https://discourse.nodered.org/u/thierryd)\
**Replies:** 4\
**Last updated:** [21 September 2021 15:11 UTC](https://discourse.nodered.org/t/nested-array-from-mysql-statement/51329 "2021-09-21T15:11:06Z")

</div>

Hi, I have searched & read through some of the topics on here to figure this out before posting, however I haven't found anything to help me solve this. Prior to looking on here I have made several attempts to work this…

---

## [How acknowledge an opcua alarm](https://discourse.nodered.org/t/how-acknowledge-an-opcua-alarm/50278)

<div class="topic-metadata">

**Author:** [@oualid](https://discourse.nodered.org/u/oualid)\
**Replies:** 2\
**Last updated:** [21 September 2021 15:00 UTC](https://discourse.nodered.org/t/how-acknowledge-an-opcua-alarm/50278 "2021-09-21T15:00:44Z")

</div>

hi, Since yesterday i am looking for how acknowledge an opcua alarm using the node opcu ua methode. in fact, i have create an opc ua server with java script from witch i generate an alarms and from node-red side, i cr…

---

## [Unable to download files from the browser](https://discourse.nodered.org/t/unable-to-download-files-from-the-browser/51314)

<div class="topic-metadata">

**Author:** [@el\_pablo](https://discourse.nodered.org/u/el_pablo)\
**Replies:** 7\
**Last updated:** [21 September 2021 13:01 UTC](https://discourse.nodered.org/t/unable-to-download-files-from-the-browser/51314 "2021-09-21T13:01:19Z")

</div>

Hi guys, I'm trying download files from a directory listing on my node-red server. I'm using node-red-contrib-fs-ops to display the directory content, but when I click on the generated links, I get the error Cannot GET…

---

## [Calling an NPM module from a function within a function](https://discourse.nodered.org/t/calling-an-npm-module-from-a-function-within-a-function/51331)

<div class="topic-metadata">

**Author:** [@mcdonald\_ajr](https://discourse.nodered.org/u/mcdonald_ajr)\
**Replies:** 4\
**Last updated:** [21 September 2021 12:34 UTC](https://discourse.nodered.org/t/calling-an-npm-module-from-a-function-within-a-function/51331 "2021-09-21T12:34:13Z")

</div>

I'd be grateful for some help here. I attach two examples of functions, one works, the other doesn't. I have simplified the problem down to these trivial examples. I am trying to use external NPM modules from within a …

---

## [Is it possible to make Node-RED into a windows portable app](https://discourse.nodered.org/t/is-it-possible-to-make-node-red-into-a-windows-portable-app/11259)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 18\
**Last updated:** [20 September 2021 15:48 UTC](https://discourse.nodered.org/t/is-it-possible-to-make-node-red-into-a-windows-portable-app/11259 "2021-09-20T15:48:45Z")

</div>

I came across https://sourceforge.net/projects/nodejsportable/ and it made me think - if node.js can be made to run off a USB drive - could Node-RED be run from the same USB drive? When I mean "possible" I mean by a sui…

---

## [Reorder sidebar for Default Sidebar](https://discourse.nodered.org/t/reorder-sidebar-for-default-sidebar/51327)

<div class="topic-metadata">

**Author:** [@Vinzenz](https://discourse.nodered.org/u/Vinzenz)\
**Replies:** 3\
**Last updated:** [21 September 2021 10:43 UTC](https://discourse.nodered.org/t/reorder-sidebar-for-default-sidebar/51327 "2021-09-21T10:43:39Z")

</div>

Hi, I am using Node-Red to control a Robot Arm. Therefore I developed a custom sidebar. Now I want that this sidebar is displayed first instead of the information sidebar. Here I red that one can reorder the Sidebars. H…

---

## [How do I get Node-red to show envirophat sensor values?](https://discourse.nodered.org/t/how-do-i-get-node-red-to-show-envirophat-sensor-values/51260)

<div class="topic-metadata">

**Author:** [@Richard238](https://discourse.nodered.org/u/Richard238)\
**Replies:** 23\
**Last updated:** [21 September 2021 09:25 UTC](https://discourse.nodered.org/t/how-do-i-get-node-red-to-show-envirophat-sensor-values/51260 "2021-09-21T09:25:56Z")

</div>

Using - Raspberry Pi 3B with Pimoroni EviroPhat sensors. I have envirophat working fine, sending data to Initial State, and would now like to try it on Node-Red. Debug shows this: 19/09/2021, 16:22:18node: 618da7a0094…

---

## [SubFlow wires disconnected frequently](https://discourse.nodered.org/t/subflow-wires-disconnected-frequently/50677)

<div class="topic-metadata">

**Author:** [@kamaal](https://discourse.nodered.org/u/kamaal)\
**Replies:** 4\
**Last updated:** [21 September 2021 09:18 UTC](https://discourse.nodered.org/t/subflow-wires-disconnected-frequently/50677 "2021-09-21T09:18:27Z")

</div>

Preformatted textWe are noticing frequent disconnects to input and output nodes . There is nothing in the logs to detect any issue. But the frequency of the nodes disconnecting in subflow is high. sample FLow \[{"id":"…

---

## [Use one function-node for many lights](https://discourse.nodered.org/t/use-one-function-node-for-many-lights/51318)

<div class="topic-metadata">

**Author:** [@burton666](https://discourse.nodered.org/u/burton666)\
**Replies:** 6\
**Last updated:** [21 September 2021 08:44 UTC](https://discourse.nodered.org/t/use-one-function-node-for-many-lights/51318 "2021-09-21T08:44:45Z")

</div>

Ok, sorry for the bad title but I could not figure out how to formulate myself. I have several lights where I use several separate flows that are almost identical. It checks for motion and for the time of day and the rea…

---

## [OPC-UA Server Compact](https://discourse.nodered.org/t/opc-ua-server-compact/15723)

<div class="topic-metadata">

**Author:** [@smalhao](https://discourse.nodered.org/u/smalhao)\
**Replies:** 1\
**Last updated:** [21 September 2021 08:42 UTC](https://discourse.nodered.org/t/opc-ua-server-compact/15723 "2021-09-21T08:42:17Z")

</div>

I'm trying to configure the node block OPC-UA Server Compact, I tried to follow one of the examples but I can't get the value of the inductive sensor in Ua Expert that I can even access the variable defined in the code b…

---

## [If(.. && ...) Please help with this bit of code](https://discourse.nodered.org/t/if-please-help-with-this-bit-of-code/51278)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 13\
**Last updated:** [21 September 2021 07:04 UTC](https://discourse.nodered.org/t/if-please-help-with-this-bit-of-code/51278 "2021-09-21T07:04:37Z")

</div>

I have never been good at handling this structure. This bit of code should (maybe even did used to) work. But now it is failing and I am getting 22 for x. if(Array.isArray(msg.table) && msg.table.length) { x = msg…

---

## [credentialSecret](https://discourse.nodered.org/t/credentialsecret/51316)

<div class="topic-metadata">

**Author:** [@russ57](https://discourse.nodered.org/u/russ57)\
**Replies:** 2\
**Last updated:** [21 September 2021 07:03 UTC](https://discourse.nodered.org/t/credentialsecret/51316 "2021-09-21T07:03:31Z")

</div>

hi i'm trying to set credentialSecret, in preparation to moving my installation to a new Pi. I uncomment the credentialSecret line in settings.js, and put in my secret password. On restart i get credentialSecret: 'xx…

---

## [Issues/questions about Modbus TCP and controlling the application with context](https://discourse.nodered.org/t/issues-questions-about-modbus-tcp-and-controlling-the-application-with-context/51264)

<div class="topic-metadata">

**Author:** [@stgj](https://discourse.nodered.org/u/stgj)\
**Replies:** 7\
**Last updated:** [21 September 2021 05:14 UTC](https://discourse.nodered.org/t/issues-questions-about-modbus-tcp-and-controlling-the-application-with-context/51264 "2021-09-21T05:14:23Z")

</div>

I have a system that controls heating of metal through temperature sensors and a PID controller in Node-red. I use context too file for the controlling and storing of setpoints, temperature, statuses and so forth. I ha…

---

## [Is there a professional IDE hidden in node red?](https://discourse.nodered.org/t/is-there-a-professional-ide-hidden-in-node-red/51313)

<div class="topic-metadata">

**Author:** [@essereumano](https://discourse.nodered.org/u/essereumano)\
**Replies:** 0\
**Last updated:** [20 September 2021 23:54 UTC](https://discourse.nodered.org/t/is-there-a-professional-ide-hidden-in-node-red/51313 "2021-09-20T23:54:08Z")

</div>

Hi everyone, when I found out about Node Red I wanted to try it immediately, certainly due to its ease of use and its accommodating graphics, I treated it more like a toy than a development system, I created more and mor…

---

## [How to connect android phone via websocket with Node-RED to recieve messages](https://discourse.nodered.org/t/how-to-connect-android-phone-via-websocket-with-node-red-to-recieve-messages/51127)

<div class="topic-metadata">

**Author:** [@peterminztee](https://discourse.nodered.org/u/peterminztee)\
**Replies:** 8\
**Last updated:** [20 September 2021 21:20 UTC](https://discourse.nodered.org/t/how-to-connect-android-phone-via-websocket-with-node-red-to-recieve-messages/51127 "2021-09-20T21:20:55Z")

</div>

Hi I am currently working on a project for my university and I am not really familiar with Node-RED, and Java Websockets. Bascily the Project is a voice assistant: you speak into a Rasspberry PI which runs Rhasspy(voi…

---

## [Output standard template script data](https://discourse.nodered.org/t/output-standard-template-script-data/51304)

<div class="topic-metadata">

**Author:** [@notnice](https://discourse.nodered.org/u/notnice)\
**Replies:** 0\
**Last updated:** [20 September 2021 19:44 UTC](https://discourse.nodered.org/t/output-standard-template-script-data/51304 "2021-09-20T19:44:24Z")

</div>

I want users to confirm a web form action in a standard template before its POST'ed to prevent them accidentally erasing some data in the next function. I have this script in my html which returns true or false on test,…

---

## [Issues while experimenting with node-red-contrib-ui-mp4frag](https://discourse.nodered.org/t/issues-while-experimenting-with-node-red-contrib-ui-mp4frag/51257)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 3\
**Last updated:** [20 September 2021 15:17 UTC](https://discourse.nodered.org/t/issues-while-experimenting-with-node-red-contrib-ui-mp4frag/51257 "2021-09-20T15:17:17Z")

</div>

Hi folks, I started playing with the node-red-contrib-ui-mp4frag node of @kevinGodell, but I have a few beginner issues: When I try the example flow from the readme page, the "France 24 News" stream does not start pl…

---

## [Uibuilder Webpack Wiki](https://discourse.nodered.org/t/uibuilder-webpack-wiki/51131)

<div class="topic-metadata">

**Author:** [@joinke](https://discourse.nodered.org/u/joinke)\
**Replies:** 7\
**Last updated:** [20 September 2021 14:53 UTC](https://discourse.nodered.org/t/uibuilder-webpack-wiki/51131 "2021-09-20T14:53:55Z")

</div>

Hello, I've got some questions on the Wiki wrt to this topic :slight\_smile: (Node Red : 2.0.5) (UiBuilder : 4.1.1) (copy-webpack-plugin@9.0.1) https://github.com/TotallyInformation/node-red-contrib-uibuilder/wiki/Us…

---

## [How check undefined msg in a function node?](https://discourse.nodered.org/t/how-check-undefined-msg-in-a-function-node/51263)

<div class="topic-metadata">

**Author:** [@essereumano](https://discourse.nodered.org/u/essereumano)\
**Replies:** 30\
**Last updated:** [20 September 2021 12:45 UTC](https://discourse.nodered.org/t/how-check-undefined-msg-in-a-function-node/51263 "2021-09-20T12:45:56Z")

</div>

Hi again everyone, this time I'm going crazy with the function node. To understand which message arrived (each has a different name and arrives at different times) I tried various ways but seems they are wrong: if (!ms…

---

## [Node-red doesn't start](https://discourse.nodered.org/t/node-red-doesnt-start/51274)

<div class="topic-metadata">

**Author:** [@federico.barenghi](https://discourse.nodered.org/u/federico.barenghi)\
**Replies:** 10\
**Last updated:** [20 September 2021 11:28 UTC](https://discourse.nodered.org/t/node-red-doesnt-start/51274 "2021-09-20T11:28:43Z")

</div>

I start node-red but i have this error and the web interface is not loading nothing. How can I fix this?

---

## [Gateway Time-out error](https://discourse.nodered.org/t/gateway-time-out-error/51267)

<div class="topic-metadata">

**Author:** [@Aakash](https://discourse.nodered.org/u/Aakash)\
**Replies:** 2\
**Last updated:** [20 September 2021 11:13 UTC](https://discourse.nodered.org/t/gateway-time-out-error/51267 "2021-09-20T11:13:18Z")

</div>

Hi, I got this error while working midway on node red. I got a pop up saying session expired and it logged out of the flows, but when I am trying to log back in again it says something like "Gateway time-out" ngix. Has …

---

## [Modbus help to read messages](https://discourse.nodered.org/t/modbus-help-to-read-messages/51282)

<div class="topic-metadata">

**Author:** [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Replies:** 0\
**Last updated:** [20 September 2021 11:05 UTC](https://discourse.nodered.org/t/modbus-help-to-read-messages/51282 "2021-09-20T11:05:02Z")

</div>

Hi all, I'm new in modbus protocol communication and I would ask few questions. I have a slave and an excel with a table of registers, quantities and description and I would understant how to receive the data in correct…

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

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