# Latest

**URL:** https://discourse.nodered.org/latest.md?page=578

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

**Page:** 579

---

## [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;

---

## [REST Service Examples](https://discourse.nodered.org/t/rest-service-examples/51874)

<div class="topic-metadata">

**Author:** [@rozek](https://discourse.nodered.org/u/rozek)\
**Replies:** 2\
**Last updated:** [1 May 2022 05:40 UTC](https://discourse.nodered.org/t/rest-service-examples/51874 "2022-05-01T05:40:26Z")

</div>

I'm currently preparing a set of Node-RED flows and use cases for my students in order to motivate and encourage them to invent and build web sites and REST services without having to know, learn and program much. As pa…

---

## [How can I make switch block data?](https://discourse.nodered.org/t/how-can-i-make-switch-block-data/61979)

<div class="topic-metadata">

**Author:** [@Mohannad\_Alobaid](https://discourse.nodered.org/u/Mohannad_Alobaid)\
**Replies:** 7\
**Last updated:** [30 April 2022 20:43 UTC](https://discourse.nodered.org/t/how-can-i-make-switch-block-data/61979 "2022-04-30T20:43:14Z")

</div>

Welcome Please I need help I have data that comes from a sen sor and I want to use a switch to block the sensor and activate it. When the switch is set to true, the output value will be zero When false, the outpu…

---

## [How to disable button's default onclick background effect in template node?](https://discourse.nodered.org/t/how-to-disable-buttons-default-onclick-background-effect-in-template-node/62004)

<div class="topic-metadata">

**Author:** [@thematrixrearwindow](https://discourse.nodered.org/u/thematrixrearwindow)\
**Replies:** 0\
**Last updated:** [30 April 2022 18:23 UTC](https://discourse.nodered.org/t/how-to-disable-buttons-default-onclick-background-effect-in-template-node/62004 "2022-04-30T18:23:25Z")

</div>

Hi there, can anyone help me removing the gray background when i click on button? Template node code, what i tried so far: \<style\> .container { overflow: hidden !important; } .btn, .btn:focus, .btn:active { …

---

## [Fill in array of values when payload data is empty/incorrect](https://discourse.nodered.org/t/fill-in-array-of-values-when-payload-data-is-empty-incorrect/61959)

<div class="topic-metadata">

**Author:** [@Venomz](https://discourse.nodered.org/u/Venomz)\
**Replies:** 6\
**Last updated:** [30 April 2022 17:25 UTC](https://discourse.nodered.org/t/fill-in-array-of-values-when-payload-data-is-empty-incorrect/61959 "2022-04-30T17:25:25Z")

</div>

Hi! I am currently reading 5 different Modbus Slaves and retrieving data and would like to push in "invalid" values whenever there is a connection or error retrieving the data for that specific Modbus slave. What is…

---

## [PSA: documenting your setup for the inevitable](https://discourse.nodered.org/t/psa-documenting-your-setup-for-the-inevitable/61997)

<div class="topic-metadata">

**Author:** [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Replies:** 0\
**Last updated:** [30 April 2022 12:31 UTC](https://discourse.nodered.org/t/psa-documenting-your-setup-for-the-inevitable/61997 "2022-04-30T12:31:21Z")

</div>

Public Service Announcement (PSA) In a recent conversation I was reminded about a video I saw about documenting your home automation for when the inevitable happens. It’s 5 years old but still relevant. Here is a link t…

---

## [String value from mqtt to Node Red Dashboard](https://discourse.nodered.org/t/string-value-from-mqtt-to-node-red-dashboard/62000)

<div class="topic-metadata">

**Author:** [@rolandoartha](https://discourse.nodered.org/u/rolandoartha)\
**Replies:** 3\
**Last updated:** [30 April 2022 15:00 UTC](https://discourse.nodered.org/t/string-value-from-mqtt-to-node-red-dashboard/62000 "2022-04-30T15:00:33Z")

</div>

Guys, i use mqtt to send data to node red, the values are string, how can i input the temperature and humidity value to the gauge dashboard separately? Please help me :slight\_smile:

---

## [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 …

---

## [How do I use Gsheet to store data in Google Sheet?](https://discourse.nodered.org/t/how-do-i-use-gsheet-to-store-data-in-google-sheet/61981)

<div class="topic-metadata">

**Author:** [@Mohannad\_Alobaid](https://discourse.nodered.org/u/Mohannad_Alobaid)\
**Replies:** 2\
**Last updated:** [30 April 2022 11:19 UTC](https://discourse.nodered.org/t/how-do-i-use-gsheet-to-store-data-in-google-sheet/61981 "2022-04-30T11:19:59Z")

</div>

Hello, I don't know how to use the Google Sheet node, can you help?

---

## [Request to publish node-red-contrib-google-translate-plus](https://discourse.nodered.org/t/request-to-publish-node-red-contrib-google-translate-plus/61993)

<div class="topic-metadata">

**Author:** [@6ebeng](https://discourse.nodered.org/u/6ebeng)\
**Replies:** 4\
**Last updated:** [30 April 2022 10:15 UTC](https://discourse.nodered.org/t/request-to-publish-node-red-contrib-google-translate-plus/61993 "2022-04-30T10:15:30Z")

</div>

I have updated node-red-contrib-google-translate-plus based latest version "vitalets/google-translate-api" on Github, please let the package be published to be useful for community. Thanks.

---

## [Update switch stage in dashboard](https://discourse.nodered.org/t/update-switch-stage-in-dashboard/61990)

<div class="topic-metadata">

**Author:** [@yingkhun](https://discourse.nodered.org/u/yingkhun)\
**Replies:** 2\
**Last updated:** [30 April 2022 07:42 UTC](https://discourse.nodered.org/t/update-switch-stage-in-dashboard/61990 "2022-04-30T07:42:36Z")

</div>

Hi I try to use tasmota and MQTT on NodeRed Dashboard but I need to update switch stage when I pressed Btn on hardware this is what Im try but yes this is infinity loop LOL Please Help thank you :smiley:

---

## [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…

---

## [Hide/show nodes in dashboard](https://discourse.nodered.org/t/hide-show-nodes-in-dashboard/61975)

<div class="topic-metadata">

**Author:** [@emnabk\_12](https://discourse.nodered.org/u/emnabk_12)\
**Replies:** 1\
**Last updated:** [29 April 2022 21:04 UTC](https://discourse.nodered.org/t/hide-show-nodes-in-dashboard/61975 "2022-04-29T21:04:09Z")

</div>

Hello , how to hide/show nodes in node-red intead of groups/tabs with the "ui\_control" node? For exemple if i click on "manual" button the input1 hides and input2 shows and when I click on "auto" button the input2 hide…

---

## [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…

---

## [Duplicate of http request](https://discourse.nodered.org/t/duplicate-of-http-request/61954)

<div class="topic-metadata">

**Author:** [@Kai](https://discourse.nodered.org/u/Kai)\
**Replies:** 6\
**Last updated:** [29 April 2022 11:57 UTC](https://discourse.nodered.org/t/duplicate-of-http-request/61954 "2022-04-29T11:57:33Z")

</div>

Hi, I have do a function to list out the files from specific directory, and set a delete button besides the file name, when user click the delete button, Node Red will delete the file and refresh the file list. But th…

---

## [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…

---

## [Sending msg.payload from ui template](https://discourse.nodered.org/t/sending-msg-payload-from-ui-template/61453)

<div class="topic-metadata">

**Author:** [@paulalsmith1000](https://discourse.nodered.org/u/paulalsmith1000)\
**Replies:** 14\
**Last updated:** [29 April 2022 08:15 UTC](https://discourse.nodered.org/t/sending-msg-payload-from-ui-template/61453 "2022-04-29T08:15:43Z")

</div>

Hello again, I know there are loads of posts / threads online about this, but I have been reading and trying for hours and I cannot understand it at all. I have a v basic table on a dashboard template, where you can se…

---

## [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 …

[Previous page](https://discourse.nodered.org/latest.md?page=577)

[Next page](https://discourse.nodered.org/latest.md?page=579)
