# General

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

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

**Page:** 384

---

## [Struggling with data expression](https://discourse.nodered.org/t/struggling-with-data-expression/62007)

<div class="topic-metadata">

**Author:** [@TheLoudSteve](https://discourse.nodered.org/u/TheLoudSteve)\
**Replies:** 3\
**Last updated:** [1 May 2022 07:05 UTC](https://discourse.nodered.org/t/struggling-with-data-expression/62007 "2022-05-01T07:05:52Z")

</div>

I am using the injection node, with a msg.device set to "Fridge" If I pass it straight to the debug node, it works as expected. I'm trying to pass it to a Home Assistant call service node, and have it push the strin…

---

## [How can I generate a random value but limited between two values such as a value between (25 - 50)? please I want a code similar to this code](https://discourse.nodered.org/t/how-can-i-generate-a-random-value-but-limited-between-two-values-such-as-a-value-between-25-50-please-i-want-a-code-similar-to-this-code/62001)

<div class="topic-metadata">

**Author:** [@Mohannad\_Alobaid](https://discourse.nodered.org/u/Mohannad_Alobaid)\
**Replies:** 9\
**Last updated:** [1 May 2022 06:01 UTC](https://discourse.nodered.org/t/how-can-i-generate-a-random-value-but-limited-between-two-values-such-as-a-value-between-25-50-please-i-want-a-code-similar-to-this-code/62001 "2022-05-01T06:01:33Z")

</div>

msg.payload = {}; msg.payload.DamA = parseInt(Math.random() \* 100); return msg;

---

## [Password of dashboard in multiples intances](https://discourse.nodered.org/t/password-of-dashboard-in-multiples-intances/61996)

<div class="topic-metadata">

**Author:** [@Lucas](https://discourse.nodered.org/u/Lucas)\
**Replies:** 4\
**Last updated:** [30 April 2022 11:40 UTC](https://discourse.nodered.org/t/password-of-dashboard-in-multiples-intances/61996 "2022-04-30T11:40:23Z")

</div>

Good morning to everybody; I have two instances running on my device (localhost:1881 and localhost:1882), does anybody knows how can I put diferents passwords on dashboard on the both instances? Normaly when I'm using …

---

## [I2c node help. Anyleaf pH sensor. Help with data](https://discourse.nodered.org/t/i2c-node-help-anyleaf-ph-sensor-help-with-data/61984)

<div class="topic-metadata">

**Author:** [@trefnrow](https://discourse.nodered.org/u/trefnrow)\
**Replies:** 1\
**Last updated:** [30 April 2022 02:35 UTC](https://discourse.nodered.org/t/i2c-node-help-anyleaf-ph-sensor-help-with-data/61984 "2022-04-30T02:35:00Z")

</div>

I apologize if this has been answered. I am bleary eyed reading all the posts. I am new to the node red world. I am likely a little over my head. I have a pH probe from Anyleaf. It funtions properly. I can run a scrpit…

---

## [Message of another flow received from delay node of first flow](https://discourse.nodered.org/t/message-of-another-flow-received-from-delay-node-of-first-flow/61983)

<div class="topic-metadata">

**Author:** [@shannonrex](https://discourse.nodered.org/u/shannonrex)\
**Replies:** 1\
**Last updated:** [29 April 2022 23:18 UTC](https://discourse.nodered.org/t/message-of-another-flow-received-from-delay-node-of-first-flow/61983 "2022-04-29T23:18:06Z")

</div>

I have two flows. Both are triggered by the same event. The first flow ends with function that sends out to msg.payload node a command string like "reboot". The second flow ends with function that sends out a msg with p…

---

## [Upload file to Synology Filestation over API (one more try)](https://discourse.nodered.org/t/upload-file-to-synology-filestation-over-api-one-more-try/61945)

<div class="topic-metadata">

**Author:** [@tfuchs1987](https://discourse.nodered.org/u/tfuchs1987)\
**Replies:** 2\
**Last updated:** [29 April 2022 21:53 UTC](https://discourse.nodered.org/t/upload-file-to-synology-filestation-over-api-one-more-try/61945 "2022-04-29T21:53:55Z")

</div>

Hi Node-REDers, UweG already had the same question a few months ago. I decided to give this issue another push. We are looking for help with a function node to call a http-request-node properly in order to upload a fil…

---

## [TCP connection to establish communication with Telenet device](https://discourse.nodered.org/t/tcp-connection-to-establish-communication-with-telenet-device/61974)

<div class="topic-metadata">

**Author:** [@Michael\_Wood](https://discourse.nodered.org/u/Michael_Wood)\
**Replies:** 1\
**Last updated:** [29 April 2022 20:26 UTC](https://discourse.nodered.org/t/tcp-connection-to-establish-communication-with-telenet-device/61974 "2022-04-29T20:26:17Z")

</div>

Any advice on how to send a TCP response to device running Telenet connections? I can ping/connect to the device via the tcp in node but i need to select interface connection 1 at this point and I am not sure how to send…

---

## [Onkyo select TuneIn presets with node-red-contrib-eiscp](https://discourse.nodered.org/t/onkyo-select-tunein-presets-with-node-red-contrib-eiscp/60793)

<div class="topic-metadata">

**Author:** [@F150](https://discourse.nodered.org/u/F150)\
**Replies:** 1\
**Last updated:** [29 April 2022 18:50 UTC](https://discourse.nodered.org/t/onkyo-select-tunein-presets-with-node-red-contrib-eiscp/60793 "2022-04-29T18:50:59Z")

</div>

Hi, sorry in advance for my probably bad english. I try to control my ONKYO NCP-320 with homematic and node red. power on/off volume up/down are working. But now I want to select my TuneIn presets and I don't know w…

---

## [Inject triggers only once?](https://discourse.nodered.org/t/inject-triggers-only-once/61301)

<div class="topic-metadata">

**Author:** [@fugit185](https://discourse.nodered.org/u/fugit185)\
**Replies:** 13\
**Last updated:** [29 April 2022 17:26 UTC](https://discourse.nodered.org/t/inject-triggers-only-once/61301 "2022-04-29T17:26:31Z")

</div>

I have inject node which should trigger every day 23:59, but it triggers only once. \[{"id":"ed7e17df32d773b0","type":"inject","z":"f89c8950.ff2658","name":"","props":\[{"p":"payload"},{"p":"topic","vt":"str"}\],"repeat":"…

---

## [PROBLEM "2147549457 - Unknown error!" in node node-red-contrib-opc-da](https://discourse.nodered.org/t/problem-2147549457-unknown-error-in-node-node-red-contrib-opc-da/61938)

<div class="topic-metadata">

**Author:** [@eruiz](https://discourse.nodered.org/u/eruiz)\
**Replies:** 7\
**Last updated:** [29 April 2022 16:34 UTC](https://discourse.nodered.org/t/problem-2147549457-unknown-error-in-node-node-red-contrib-opc-da/61938 "2022-04-29T16:34:44Z")

</div>

Hello good morning I am trying to connect my OPC DA server, I have the Simulator and Historian running connected in Explorer as you can see in the image, when I see the data in explore it confirms that if my server is fi…

---

## [MQTT in Node, changed some how?](https://discourse.nodered.org/t/mqtt-in-node-changed-some-how/61957)

<div class="topic-metadata">

**Author:** [@Cathprotech](https://discourse.nodered.org/u/Cathprotech)\
**Replies:** 7\
**Last updated:** [29 April 2022 11:52 UTC](https://discourse.nodered.org/t/mqtt-in-node-changed-some-how/61957 "2022-04-29T11:52:53Z")

</div>

I have just come across something that puzzles me about the MQTT-in-Node. I have some old flows (maybe 2 or more years) which have an MQTT-in-Node, the data going through the broker is just a simple string with names an…

---

## [Would a subflow environment variable be able to set a password for a Database?](https://discourse.nodered.org/t/would-a-subflow-environment-variable-be-able-to-set-a-password-for-a-database/61958)

<div class="topic-metadata">

**Author:** [@Shan](https://discourse.nodered.org/u/Shan)\
**Replies:** 1\
**Last updated:** [29 April 2022 10:39 UTC](https://discourse.nodered.org/t/would-a-subflow-environment-variable-be-able-to-set-a-password-for-a-database/61958 "2022-04-29T10:39:23Z")

</div>

Let's say I take an InfluxDB In node in a subflow and configure it to some default settings based on how my stack is i.e., Database Address Database Port Default Database Username Password Subflow Subflow Environme…

---

## [Name information of generated subflows get lost when running nodered as docker container](https://discourse.nodered.org/t/name-information-of-generated-subflows-get-lost-when-running-nodered-as-docker-container/61948)

<div class="topic-metadata">

**Author:** [@GowriAradhya](https://discourse.nodered.org/u/GowriAradhya)\
**Replies:** 1\
**Last updated:** [29 April 2022 08:46 UTC](https://discourse.nodered.org/t/name-information-of-generated-subflows-get-lost-when-running-nodered-as-docker-container/61948 "2022-04-29T08:46:16Z")

</div>

Name information of generated subflows get lost when running Node-red as docker container. subflow name is not displaying in the palette. Find the below image Node-red Version: 2.1.4 Node Version: 14.8.2

---

## [Plotting values from obj](https://discourse.nodered.org/t/plotting-values-from-obj/61955)

<div class="topic-metadata">

**Author:** [@Olivia](https://discourse.nodered.org/u/Olivia)\
**Replies:** 2\
**Last updated:** [29 April 2022 08:27 UTC](https://discourse.nodered.org/t/plotting-values-from-obj/61955 "2022-04-29T08:27:05Z")

</div>

Hello everyone, @E1cid helped me with a script to make a list of the values that he automaticly searched from a bigger array. Now I would like to get the values appart from eatch other to plot them in a graph... can so…

---

## [How detect Z-Wave JS driver frozen/stuck](https://discourse.nodered.org/t/how-detect-z-wave-js-driver-frozen-stuck/61628)

<div class="topic-metadata">

**Author:** [@Mamonetti](https://discourse.nodered.org/u/Mamonetti)\
**Replies:** 6\
**Last updated:** [29 April 2022 07:39 UTC](https://discourse.nodered.org/t/how-detect-z-wave-js-driver-frozen-stuck/61628 "2022-04-29T07:39:46Z")

</div>

While I was playing with node-red-contrib-zwave-js, and based on my previous experience with certain packages that might end up letting Node-RED sort of stuck (I saw it with node-red-contrib-openzwave, when randomly the …

---

## [Ignition edge OPC server to node red connection](https://discourse.nodered.org/t/ignition-edge-opc-server-to-node-red-connection/61953)

<div class="topic-metadata">

**Author:** [@Rocky](https://discourse.nodered.org/u/Rocky)\
**Replies:** 0\
**Last updated:** [29 April 2022 07:13 UTC](https://discourse.nodered.org/t/ignition-edge-opc-server-to-node-red-connection/61953 "2022-04-29T07:13:54Z")

</div>

how to establish opc ua connection to node red using security policy (Basic256Sha256) and security Mode (sign and Encrypt) and read tag values. which directory we need to add security file. I am using node-red-contrib-…

---

## [Msg from function block](https://discourse.nodered.org/t/msg-from-function-block/61207)

<div class="topic-metadata">

**Author:** [@jonkers71](https://discourse.nodered.org/u/jonkers71)\
**Replies:** 5\
**Last updated:** [29 April 2022 00:12 UTC](https://discourse.nodered.org/t/msg-from-function-block/61207 "2022-04-29T00:12:30Z")

</div>

Hello. I have been using net-snmp inside a function node to get some snmpv3 information. I thanks to some help earlier I was able to get it to send the message with the information I need. I am wanting to use a switch…

---

## [How to write code to point to/get message subparts?](https://discourse.nodered.org/t/how-to-write-code-to-point-to-get-message-subparts/61830)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 5\
**Last updated:** [28 April 2022 21:02 UTC](https://discourse.nodered.org/t/how-to-write-code-to-point-to-get-message-subparts/61830 "2022-04-28T21:02:40Z")

</div>

I am writing this as I am on another quest to try and get my head around how to do something. Taking it to basics - the flow: \[{"id":"75a8babad6400d8f","type":"inject","z":"7e987ddf260bdf0d","name":"","props":\[{"p":"pa…

---

## [Node Red Wisenet PNM-7002VD working](https://discourse.nodered.org/t/node-red-wisenet-pnm-7002vd-working/61881)

<div class="topic-metadata">

**Author:** [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Replies:** 1\
**Last updated:** [28 April 2022 19:29 UTC](https://discourse.nodered.org/t/node-red-wisenet-pnm-7002vd-working/61881 "2022-04-28T19:29:09Z")

</div>

hello i have a Wisenet PNM-7002VD camera in my LAN network. what would be a good Node to connect to this camera. i would like at the end do some Test with recognition and so on thanks for your feedbacks have a nice …

---

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

<div class="topic-metadata">

**Author:** [@TiaPreve](https://discourse.nodered.org/u/TiaPreve)\
**Replies:** 4\
**Last updated:** [28 April 2022 19:03 UTC](https://discourse.nodered.org/t/node-red-doesnt-open-anymore/61932 "2022-04-28T19:03:41Z")

</div>

Hi there. I got a problem with Nodered. Til 7 days ago everything works good. I installed Grafana on the same Pi and all good. Since yesterday Nodered is dead. I tried to reboot the pi, to stop the service and restart i…

---

## [How to find Node with error?](https://discourse.nodered.org/t/how-to-find-node-with-error/61931)

<div class="topic-metadata">

**Author:** [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Replies:** 2\
**Last updated:** [28 April 2022 16:14 UTC](https://discourse.nodered.org/t/how-to-find-node-with-error/61931 "2022-04-28T16:14:31Z")

</div>

Hello i have installed a plugin and because not working removed. Now i have still a error Flows gestoppt aufgrund fehlender Node-Typen server But i can't find which flow to "hold" this server node because all is del…

---

## [Yet another question about function error returning a string](https://discourse.nodered.org/t/yet-another-question-about-function-error-returning-a-string/61926)

<div class="topic-metadata">

**Author:** [@Tomadoggy](https://discourse.nodered.org/u/Tomadoggy)\
**Replies:** 10\
**Last updated:** [28 April 2022 15:59 UTC](https://discourse.nodered.org/t/yet-another-question-about-function-error-returning-a-string/61926 "2022-04-28T15:59:45Z")

</div>

First off yes I have spent a lot of time reading the documentation on JSON and Node Red working with messages as well as trying a number of different structures within the function node but I still am unable to resolve m…

---

## [How can I create 'functions' that any flow can access?](https://discourse.nodered.org/t/how-can-i-create-functions-that-any-flow-can-access/61900)

<div class="topic-metadata">

**Author:** [@ncherry](https://discourse.nodered.org/u/ncherry)\
**Replies:** 7\
**Last updated:** [28 April 2022 15:24 UTC](https://discourse.nodered.org/t/how-can-i-create-functions-that-any-flow-can-access/61900 "2022-04-28T15:24:43Z")

</div>

I'm working on some 'functions' that I can us to keep the states (JSON) of various HA devices but I'd like to keep these as functions instead of a REST flow. Is there a way to create functions that can be use in other f…

---

## [Help with Flow (Arrive at home and open garage door)](https://discourse.nodered.org/t/help-with-flow-arrive-at-home-and-open-garage-door/61888)

<div class="topic-metadata">

**Author:** [@rocksolidsr](https://discourse.nodered.org/u/rocksolidsr)\
**Replies:** 2\
**Last updated:** [28 April 2022 15:04 UTC](https://discourse.nodered.org/t/help-with-flow-arrive-at-home-and-open-garage-door/61888 "2022-04-28T15:04:26Z")

</div>

I'm trying to create a Flow that will detect when I get home and open my garage door (if it is closed) based on which vehicle is present. I have separate flows for the following: When I arrive at home \[ { …

---

## [Downloading Latest File from Dashboard](https://discourse.nodered.org/t/downloading-latest-file-from-dashboard/61875)

<div class="topic-metadata">

**Author:** [@adamt](https://discourse.nodered.org/u/adamt)\
**Replies:** 6\
**Last updated:** [28 April 2022 14:51 UTC](https://discourse.nodered.org/t/downloading-latest-file-from-dashboard/61875 "2022-04-28T14:51:08Z")

</div>

Hey all, I'm trying to create a simple flow to download the latest .csv file generated to the user's machine. Context: When the user turns logging on, some other flows log external measurements to a local .csv file sto…

---

## [Can't enable https](https://discourse.nodered.org/t/cant-enable-https/61719)

<div class="topic-metadata">

**Author:** [@LCMilstein](https://discourse.nodered.org/u/LCMilstein)\
**Replies:** 19\
**Last updated:** [28 April 2022 14:26 UTC](https://discourse.nodered.org/t/cant-enable-https/61719 "2022-04-28T14:26:53Z")

</div>

Hi, all. I'm using Node-Red (v2.2.2npm) in a Docker Container on a Synology NAS and it's set up for the purpose of automations with Home Assistant. I'm trying to enable https and can't get it working; was hoping this was…

---

## [Max-http-header-size how to set](https://discourse.nodered.org/t/max-http-header-size-how-to-set/61907)

<div class="topic-metadata">

**Author:** [@ketpa](https://discourse.nodered.org/u/ketpa)\
**Replies:** 5\
**Last updated:** [28 April 2022 12:30 UTC](https://discourse.nodered.org/t/max-http-header-size-how-to-set/61907 "2022-04-28T12:30:29Z")

</div>

I have error "HPE\_HEADER\_OVERFLOW" from http request. How to set max http header size in node-red?

---

## [MySQL table to html table](https://discourse.nodered.org/t/mysql-table-to-html-table/61925)

<div class="topic-metadata">

**Author:** [@hbb999](https://discourse.nodered.org/u/hbb999)\
**Replies:** 0\
**Last updated:** [28 April 2022 12:18 UTC](https://discourse.nodered.org/t/mysql-table-to-html-table/61925 "2022-04-28T12:18:14Z")

</div>

Just a simple flow if you want to export MySQL table to HTML table: \[{"id":"93c06615.8f7438","type":"http in","z":"b95f374a.161db8","name":"","url":"/sqltabletohtmltable","method":"get","upload":false,"swaggerDoc":"","x…

---

## [Node-RED Flow - How to access List of HttpIn node flows in dot net application](https://discourse.nodered.org/t/node-red-flow-how-to-access-list-of-httpin-node-flows-in-dot-net-application/61922)

<div class="topic-metadata">

**Author:** [@arminder.lubana](https://discourse.nodered.org/u/arminder.lubana)\
**Replies:** 2\
**Last updated:** [28 April 2022 11:28 UTC](https://discourse.nodered.org/t/node-red-flow-how-to-access-list-of-httpin-node-flows-in-dot-net-application/61922 "2022-04-28T11:28:49Z")

</div>

I have list of flows created in Node RED flow editor and want to access all the flows which has used HTTPIn node as a list in dotnet application. Please guide me how we can achieve it. Thanks Arminder

---

## [Restart node-red sever every day](https://discourse.nodered.org/t/restart-node-red-sever-every-day/61917)

<div class="topic-metadata">

**Author:** [@rubenbraekman](https://discourse.nodered.org/u/rubenbraekman)\
**Replies:** 6\
**Last updated:** [28 April 2022 09:48 UTC](https://discourse.nodered.org/t/restart-node-red-sever-every-day/61917 "2022-04-28T09:48:35Z")

</div>

Hello, node-red noob here, I need help, how do I automatically restart the node-red server completely at let's say midnight everyday? I want to do this because I want to start a graph everyday beginning at midnight.

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

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