# General

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

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

**Page:** 237

---

## [Node Red, MQTT NodeMCU and LWT questions](https://discourse.nodered.org/t/node-red-mqtt-nodemcu-and-lwt-questions/76256)

<div class="topic-metadata">

**Author:** [@gerry](https://discourse.nodered.org/u/gerry)\
**Replies:** 19\
**Last updated:** [8 March 2023 07:46 UTC](https://discourse.nodered.org/t/node-red-mqtt-nodemcu-and-lwt-questions/76256 "2023-03-08T07:46:31Z")

</div>

I have a baker's dozen or so Nodemcu's running MQTT back to Node red. For the most part they all work fine doing what they are supposed to do. I have one that refuses to stay connected for extended periods of time. It ma…

---

## [Please help me with creating a simple generator counter](https://discourse.nodered.org/t/please-help-me-with-creating-a-simple-generator-counter/76117)

<div class="topic-metadata">

**Author:** [@alexsahka](https://discourse.nodered.org/u/alexsahka)\
**Replies:** 15\
**Last updated:** [8 March 2023 00:17 UTC](https://discourse.nodered.org/t/please-help-me-with-creating-a-simple-generator-counter/76117 "2023-03-08T00:17:19Z")

</div>

Could someone help me with creating a simple generator counter, only using the JavaScript function node without using context storage? Here is the prototype, but I can't use it in my application because it uses an addit…

---

## [How to view SQLlite data in any userinterface apart from the terminal window](https://discourse.nodered.org/t/how-to-view-sqllite-data-in-any-userinterface-apart-from-the-terminal-window/76071)

<div class="topic-metadata">

**Author:** [@YashPisat](https://discourse.nodered.org/u/YashPisat)\
**Replies:** 14\
**Last updated:** [7 March 2023 23:14 UTC](https://discourse.nodered.org/t/how-to-view-sqllite-data-in-any-userinterface-apart-from-the-terminal-window/76071 "2023-03-07T23:14:30Z")

</div>

I have sensor data which I am storing in sqlite database, Apart from terminal window, how can I view data in UI ?

---

## [Convert UTF-8 to ISO 8859-1](https://discourse.nodered.org/t/convert-utf-8-to-iso-8859-1/76264)

<div class="topic-metadata">

**Author:** [@Marty1982](https://discourse.nodered.org/u/Marty1982)\
**Replies:** 1\
**Last updated:** [7 March 2023 22:42 UTC](https://discourse.nodered.org/t/convert-utf-8-to-iso-8859-1/76264 "2023-03-07T22:42:37Z")

</div>

Hi all! Any clue about converting UTF 8 to ISO 8859-1 ?. I have this XML file with special characters but when i post the information to the DB those special characters transforms and the post goes wrong. \<WSInput\> \<…

---

## [Curl command to openDTU](https://discourse.nodered.org/t/curl-command-to-opendtu/76249)

<div class="topic-metadata">

**Author:** [@Andre7tyone](https://discourse.nodered.org/u/Andre7tyone)\
**Replies:** 6\
**Last updated:** [7 March 2023 22:00 UTC](https://discourse.nodered.org/t/curl-command-to-opendtu/76249 "2023-03-07T22:00:42Z")

</div>

Hello, I have tried for two days to post a curl command to a openDTU, but I was not sucessful :frowning: I want to set a limit and send it to the openDTU (to set a limit in an microinverter). I can set the limit with a…

---

## [Uibuilder to use jquery (example fails?)](https://discourse.nodered.org/t/uibuilder-to-use-jquery-example-fails/76230)

<div class="topic-metadata">

**Author:** [@gNeandr](https://discourse.nodered.org/u/gNeandr)\
**Replies:** 11\
**Last updated:** [7 March 2023 21:46 UTC](https://discourse.nodered.org/t/uibuilder-to-use-jquery-example-fails/76230 "2023-03-07T21:46:09Z")

</div>

How can jquery be used within NR/uibuilder? This is necessary to migrate an existing project with intensive use of jquery.

---

## [How to check if a value is in array using the switch node](https://discourse.nodered.org/t/how-to-check-if-a-value-is-in-array-using-the-switch-node/76262)

<div class="topic-metadata">

**Author:** [@dcaccount](https://discourse.nodered.org/u/dcaccount)\
**Replies:** 3\
**Last updated:** [7 March 2023 20:12 UTC](https://discourse.nodered.org/t/how-to-check-if-a-value-is-in-array-using-the-switch-node/76262 "2023-03-07T20:12:37Z")

</div>

Hello, I am quite new to Node Red and I need to ask for your help as I cannot solve a simple problem. I have a flow where the mgs.payload is an array like \["Intrusion","Alarm","Input"\] I would like to introduce a swi…

---

## [Web3 contract execution](https://discourse.nodered.org/t/web3-contract-execution/75712)

<div class="topic-metadata">

**Author:** [@Helix78](https://discourse.nodered.org/u/Helix78)\
**Replies:** 1\
**Last updated:** [7 March 2023 18:10 UTC](https://discourse.nodered.org/t/web3-contract-execution/75712 "2023-03-07T18:10:48Z")

</div>

I want to execute web3 contracts with node-red. There was a "node-red-contrib-web3" node but it does not seem to available anymore. How to execute web3 contracts? Are there any solutions?

---

## [Miele@home integration - set target temperature](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218)

<div class="topic-metadata">

**Author:** [@John245](https://discourse.nodered.org/u/John245)\
**Replies:** 28\
**Last updated:** [7 March 2023 17:44 UTC](https://discourse.nodered.org/t/miele-home-integration-set-target-temperature/76218 "2023-03-07T17:44:51Z")

</div>

Trying to set the target temperature of a refrigerator. Using the Miele Swagger I can set the temperature. In Miele Swagger the command set is: curl -X 'PUT' \\ 'https://api.mcs3.miele.com/v1/devices/000712266404/acti…

---

## [Can't install node-red-contrib-msg-queue on node-red docker image. Is sqlite3 related?](https://discourse.nodered.org/t/cant-install-node-red-contrib-msg-queue-on-node-red-docker-image-is-sqlite3-related/76253)

<div class="topic-metadata">

**Author:** [@elyancorrea](https://discourse.nodered.org/u/elyancorrea)\
**Replies:** 0\
**Last updated:** [7 March 2023 17:27 UTC](https://discourse.nodered.org/t/cant-install-node-red-contrib-msg-queue-on-node-red-docker-image-is-sqlite3-related/76253 "2023-03-07T17:27:46Z")

</div>

Hello, I can't install (manually or pallete manager) this node-red-contrib-msg-queue on node-red latest docker image. Is something related to alpine linux? I've tried to update npm and install sqlite3 manually and can'…

---

## [Switch from json not working for me](https://discourse.nodered.org/t/switch-from-json-not-working-for-me/76251)

<div class="topic-metadata">

**Author:** [@alveron](https://discourse.nodered.org/u/alveron)\
**Replies:** 3\
**Last updated:** [7 March 2023 17:31 UTC](https://discourse.nodered.org/t/switch-from-json-not-working-for-me/76251 "2023-03-07T17:31:41Z")

</div>

Really basic but it is not working for me Here is a snippet of the flow I am working with here is the switch node setup Here is the debug messages 3/7/2023, 12:16:23 PMnode: debug 8 fdrs/data : msg.payload : stri…

---

## [Inject JSON data to a web form](https://discourse.nodered.org/t/inject-json-data-to-a-web-form/76235)

<div class="topic-metadata">

**Author:** [@richiep](https://discourse.nodered.org/u/richiep)\
**Replies:** 13\
**Last updated:** [7 March 2023 17:03 UTC](https://discourse.nodered.org/t/inject-json-data-to-a-web-form/76235 "2023-03-07T17:03:44Z")

</div>

Hey All, I'm learning how to work with JSON in Node Red and I'm trying to inject some JSON data into a web form so I can work on it from the back end. On the inject node I'm using Inject --\> JSON and I've tried a bunc…

---

## [Date.now makes Node-RED crash](https://discourse.nodered.org/t/date-now-makes-node-red-crash/76056)

<div class="topic-metadata">

**Author:** [@rce](https://discourse.nodered.org/u/rce)\
**Replies:** 6\
**Last updated:** [7 March 2023 16:54 UTC](https://discourse.nodered.org/t/date-now-makes-node-red-crash/76056 "2023-03-07T16:54:25Z")

</div>

Hi, I'm trying to run through a sequence of steps and update a timer for the user to see what time is left on each step. I came up with the code below, which I thought would be similar to what is used on Arduino micro-c…

---

## [Msg.payload : undefined message](https://discourse.nodered.org/t/msg-payload-undefined-message/76234)

<div class="topic-metadata">

**Author:** [@alveron](https://discourse.nodered.org/u/alveron)\
**Replies:** 2\
**Last updated:** [7 March 2023 16:46 UTC](https://discourse.nodered.org/t/msg-payload-undefined-message/76234 "2023-03-07T16:46:38Z")

</div>

Thanks in advance, Here is a snippet of a flow I am working with (newbie to node-red) here is the function code I am using var newMsg = { "topic": "INSERT INTO SENSORDATA VALUES ( " + msg.payload.time + ", " + m…

---

## [Initialize Node-Red](https://discourse.nodered.org/t/initialize-node-red/76204)

<div class="topic-metadata">

**Author:** [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Replies:** 14\
**Last updated:** [7 March 2023 15:27 UTC](https://discourse.nodered.org/t/initialize-node-red/76204 "2023-03-07T15:27:02Z")

</div>

I'm relatively new to using Node-Red. I've been able to create several flows, but this is not like any development environment I've ever worked with. When Node-Red opens in a browser the old flow is present; I've alrea…

---

## [Asking for advice about remote](https://discourse.nodered.org/t/asking-for-advice-about-remote/76239)

<div class="topic-metadata">

**Author:** [@issambfs1](https://discourse.nodered.org/u/issambfs1)\
**Replies:** 1\
**Last updated:** [7 March 2023 16:05 UTC](https://discourse.nodered.org/t/asking-for-advice-about-remote/76239 "2023-03-07T16:05:44Z")

</div>

i m using raspberry pi zero so i wanna get access to the flow or dashboard in anywhere i try ngrok.com and dataplictity.com and "remote.it" as a free account now my question is if the site are secure to share url of n…

---

## [Using ENV vars to set MQTT server](https://discourse.nodered.org/t/using-env-vars-to-set-mqtt-server/76244)

<div class="topic-metadata">

**Author:** [@kitkat159](https://discourse.nodered.org/u/kitkat159)\
**Replies:** 2\
**Last updated:** [7 March 2023 15:43 UTC](https://discourse.nodered.org/t/using-env-vars-to-set-mqtt-server/76244 "2023-03-07T15:43:14Z")

</div>

Hello there, I'm running Node-RED under Docker. In my flow, I want to subscribe to MQTT topics. The MQTT broker server should be read from the ENV vars: My broker only accepts connections via websocket (like ws://\[ip…

---

## [Mqtt message sends to output nodes that are not connected](https://discourse.nodered.org/t/mqtt-message-sends-to-output-nodes-that-are-not-connected/76240)

<div class="topic-metadata">

**Author:** [@freiheit2018](https://discourse.nodered.org/u/freiheit2018)\
**Replies:** 2\
**Last updated:** [7 March 2023 15:38 UTC](https://discourse.nodered.org/t/mqtt-message-sends-to-output-nodes-that-are-not-connected/76240 "2023-03-07T15:38:19Z")

</div>

Hi there, I recently encountered the following problem: If I send a mqtt-message to an output node, another output node sends the exact same message, even though it is not connected. How can I fix that? Thank you for y…

---

## [Is it possible to clear the debug console on deploy?](https://discourse.nodered.org/t/is-it-possible-to-clear-the-debug-console-on-deploy/76231)

<div class="topic-metadata">

**Author:** [@richiep](https://discourse.nodered.org/u/richiep)\
**Replies:** 5\
**Last updated:** [7 March 2023 14:28 UTC](https://discourse.nodered.org/t/is-it-possible-to-clear-the-debug-console-on-deploy/76231 "2023-03-07T14:28:49Z")

</div>

When I hit deploy the debug console fills up with a bunch of gobbelty gook. I'd prefer it to be empty. Is there a way to keep it clear so I don't have to clear it? Thanks Rich

---

## [HTTP Request Node and payload propagation](https://discourse.nodered.org/t/http-request-node-and-payload-propagation/76185)

<div class="topic-metadata">

**Author:** [@tenti](https://discourse.nodered.org/u/tenti)\
**Replies:** 2\
**Last updated:** [7 March 2023 13:28 UTC](https://discourse.nodered.org/t/http-request-node-and-payload-propagation/76185 "2023-03-07T13:28:01Z")

</div>

Hi, I've to do a sequence of http request (REST API) and i've to propagate some initial information, so i've to put on the response after each HTTP Request Block the input payload. How i can do this ? I've see that wit…

---

## [Reset global (or) flow counter values when session is closed](https://discourse.nodered.org/t/reset-global-or-flow-counter-values-when-session-is-closed/76228)

<div class="topic-metadata">

**Author:** [@rchandrashekar53](https://discourse.nodered.org/u/rchandrashekar53)\
**Replies:** 2\
**Last updated:** [7 March 2023 12:04 UTC](https://discourse.nodered.org/t/reset-global-or-flow-counter-values-when-session-is-closed/76228 "2023-03-07T12:04:51Z")

</div>

i am looking for an approach where my counter values are reset when the session of my flow is closed (or) node red server is turned off. in my current implementation i am using- global.set("counter",1); and then i inc…

---

## [\`samsung\` node remote control flow working - then it doesn't](https://discourse.nodered.org/t/samsung-node-remote-control-flow-working-then-it-doesnt/75336)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 14\
**Last updated:** [7 March 2023 10:09 UTC](https://discourse.nodered.org/t/samsung-node-remote-control-flow-working-then-it-doesnt/75336 "2023-03-07T10:09:43Z")

</div>

Sorry folks, little information to give, but if I don't ask the problem won't go away. I have a flow that uses the samsung node to control my Samsung TV. At given times it controls the channel. Alas recently one of th…

---

## [Node-RED - Oracle Linux Cloud Developer 8 or Canonical Ubuntu v22.04](https://discourse.nodered.org/t/node-red-oracle-linux-cloud-developer-8-or-canonical-ubuntu-v22-04/76186)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 3\
**Last updated:** [7 March 2023 09:44 UTC](https://discourse.nodered.org/t/node-red-oracle-linux-cloud-developer-8-or-canonical-ubuntu-v22-04/76186 "2023-03-07T09:44:15Z")

</div>

Anyone know which is the best OS for Node-RED to operate? I have a choice between Oracle Linux Cloud Developer 8 & Canonical Ubuntu v22.04? I understand that Oracle Linux Cloud Developer 8 is based upon Red Hat Enterpri…

---

## [Using Modbus RTU/TCP - parallel sub second query to multiple modbus devices](https://discourse.nodered.org/t/using-modbus-rtu-tcp-parallel-sub-second-query-to-multiple-modbus-devices/76220)

<div class="topic-metadata">

**Author:** [@jakonnode](https://discourse.nodered.org/u/jakonnode)\
**Replies:** 0\
**Last updated:** [7 March 2023 09:42 UTC](https://discourse.nodered.org/t/using-modbus-rtu-tcp-parallel-sub-second-query-to-multiple-modbus-devices/76220 "2023-03-07T09:42:27Z")

</div>

I have a daisy-chained energy meters (\>15) connected to a modbus-RTU. Now RTU has a single serially queryable master interface for getting data. Even with RTU to TCP converter I am assuming all the query would go sequ…

---

## [Write file node issue with usb on rpi](https://discourse.nodered.org/t/write-file-node-issue-with-usb-on-rpi/76174)

<div class="topic-metadata">

**Author:** [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Replies:** 16\
**Last updated:** [7 March 2023 09:09 UTC](https://discourse.nodered.org/t/write-file-node-issue-with-usb-on-rpi/76174 "2023-03-07T09:09:42Z")

</div>

I am trying to save some objects to a file on an USB-stick in my raspberry pi. This USB-stick I am already using for daily backup of influx database with an exec node, that runs simple without any issues. Now I am tryi…

---

## [Limit memory 2GB](https://discourse.nodered.org/t/limit-memory-2gb/76198)

<div class="topic-metadata">

**Author:** [@glauberjnb](https://discourse.nodered.org/u/glauberjnb)\
**Replies:** 2\
**Last updated:** [7 March 2023 07:46 UTC](https://discourse.nodered.org/t/limit-memory-2gb/76198 "2023-03-07T07:46:27Z")

</div>

Hello, We have a Nodered process that is consuming a maximum of 2GB of ram and we would like to increase consumption to meet demand. Below tracks information and actions taken. Server: amazon EC2 T3.xlarge memory: 16…

---

## [Dashboard first page (not loading.html!)](https://discourse.nodered.org/t/dashboard-first-page-not-loading-html/76189)

<div class="topic-metadata">

**Author:** [@antmar](https://discourse.nodered.org/u/antmar)\
**Replies:** 7\
**Last updated:** [7 March 2023 06:39 UTC](https://discourse.nodered.org/t/dashboard-first-page-not-loading-html/76189 "2023-03-07T06:39:51Z")

</div>

Hello all, I'm having trouble finding the page that loads before the loading.html that is located in node-red/node\_modules/dashboard-evi/dist/ I have attached a screenshot of the page!

---

## [Hide change ip address on address bar in browser](https://discourse.nodered.org/t/hide-change-ip-address-on-address-bar-in-browser/76200)

<div class="topic-metadata">

**Author:** [@devifast](https://discourse.nodered.org/u/devifast)\
**Replies:** 4\
**Last updated:** [7 March 2023 04:44 UTC](https://discourse.nodered.org/t/hide-change-ip-address-on-address-bar-in-browser/76200 "2023-03-07T04:44:43Z")

</div>

How to change address bar to custom name? Thanks in advance.

---

## [Void function() inside a function node](https://discourse.nodered.org/t/void-function-inside-a-function-node/76206)

<div class="topic-metadata">

**Author:** [@rchandrashekar53](https://discourse.nodered.org/u/rchandrashekar53)\
**Replies:** 1\
**Last updated:** [7 March 2023 02:08 UTC](https://discourse.nodered.org/t/void-function-inside-a-function-node/76206 "2023-03-07T02:08:16Z")

</div>

Hi, I have a question - i have a nested if-else block and majority of the implementation within the block have similar lines of code. Is there a way how i can have a void function() within a function block? i did try b…

---

## [Node-RED Projects: using an organization's Github repository with SSH](https://discourse.nodered.org/t/node-red-projects-using-an-organizations-github-repository-with-ssh/76075)

<div class="topic-metadata">

**Author:** [@raspberry](https://discourse.nodered.org/u/raspberry)\
**Replies:** 1\
**Last updated:** [6 March 2023 22:21 UTC](https://discourse.nodered.org/t/node-red-projects-using-an-organizations-github-repository-with-ssh/76075 "2023-03-06T22:21:20Z")

</div>

Hello! I am wondering if anyone has tied Node-RED to an organization repo over SSH before, because I am having some trouble. Is it possible? I have setup a Github remote over SSH to a personal repo before without issue. …

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

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