# Latest

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

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

**Page:** 495

---

## [How can i initialize a variable in JS file with msg.payload or context.flow() variable?](https://discourse.nodered.org/t/how-can-i-initialize-a-variable-in-js-file-with-msg-payload-or-context-flow-variable/68084)

<div class="topic-metadata">

**Author:** [@hero](https://discourse.nodered.org/u/hero)\
**Replies:** 3\
**Last updated:** [22 September 2022 18:56 UTC](https://discourse.nodered.org/t/how-can-i-initialize-a-variable-in-js-file-with-msg-payload-or-context-flow-variable/68084 "2022-09-22T18:56:30Z")

</div>

hi i want to use flow variable or msg.payload variable which is array to initialize a variable in JS file i used this.context().flow.get("name") but, it didn't work because the execution of that line is earlier than in…

---

## [Issue with generate csv file for data collection](https://discourse.nodered.org/t/issue-with-generate-csv-file-for-data-collection/68046)

<div class="topic-metadata">

**Author:** [@Luigi28](https://discourse.nodered.org/u/Luigi28)\
**Replies:** 4\
**Last updated:** [22 September 2022 18:12 UTC](https://discourse.nodered.org/t/issue-with-generate-csv-file-for-data-collection/68046 "2022-09-22T18:12:24Z")

</div>

Hello everybody, I have an issue, I have done a project to record datas on a csv file from a Siemens PLC (Tia Portal). Everything is ok, files are correctly generated and datas ( real, string , integers) are in csv fil…

---

## [How to read and parse object names in node-red?](https://discourse.nodered.org/t/how-to-read-and-parse-object-names-in-node-red/68063)

<div class="topic-metadata">

**Author:** [@JH-Kim88](https://discourse.nodered.org/u/JH-Kim88)\
**Replies:** 1\
**Last updated:** [22 September 2022 15:57 UTC](https://discourse.nodered.org/t/how-to-read-and-parse-object-names-in-node-red/68063 "2022-09-22T15:57:57Z")

</div>

I want to read and use Xjlp10Vdamd5HrZWYTwJeFMrGrh2, koglQNzQT5WNtYNXBKi3clqi9T52, null from msg.payload or create another msg.payload, how do I do it?

---

## [Pass SQL Username and Password programatically with Flows.json](https://discourse.nodered.org/t/pass-sql-username-and-password-programatically-with-flows-json/68033)

<div class="topic-metadata">

**Author:** [@stokes776](https://discourse.nodered.org/u/stokes776)\
**Replies:** 1\
**Last updated:** [22 September 2022 15:56 UTC](https://discourse.nodered.org/t/pass-sql-username-and-password-programatically-with-flows-json/68033 "2022-09-22T15:56:40Z")

</div>

Hello, I am using this package: I am trying to take my flows.json from one device running Node-Red and move it over to another device using Node-Red. I save the Username and Password in the UI as so, as I am using En…

---

## [Is there a flag in Node-RED which can be used to reset the Node-RED Tour UI upon next login?](https://discourse.nodered.org/t/is-there-a-flag-in-node-red-which-can-be-used-to-reset-the-node-red-tour-ui-upon-next-login/68083)

<div class="topic-metadata">

**Author:** [@Shan](https://discourse.nodered.org/u/Shan)\
**Replies:** 0\
**Last updated:** [22 September 2022 15:42 UTC](https://discourse.nodered.org/t/is-there-a-flag-in-node-red-which-can-be-used-to-reset-the-node-red-tour-ui-upon-next-login/68083 "2022-09-22T15:42:32Z")

</div>

Version v2.2.x of Node-RED Requirement I am doing some internal testing of the UI using Python Playwright and I generally have automated the test to go through the tour using the Next Button. However, I wish to reset th…

---

## [Email node issue](https://discourse.nodered.org/t/email-node-issue/68075)

<div class="topic-metadata">

**Author:** [@MiliH](https://discourse.nodered.org/u/MiliH)\
**Replies:** 3\
**Last updated:** [22 September 2022 12:35 UTC](https://discourse.nodered.org/t/email-node-issue/68075 "2022-09-22T12:35:55Z")

</div>

Hello, At time of sending email, when I configure "TO" email address in email node at that time email body is received in email. But when I configure "TO" email address in function node as msg.to at that time email is …

---

## [Sensitivity of hue motion sensor in huemagic](https://discourse.nodered.org/t/sensitivity-of-hue-motion-sensor-in-huemagic/68078)

<div class="topic-metadata">

**Author:** [@jeburkha](https://discourse.nodered.org/u/jeburkha)\
**Replies:** 0\
**Last updated:** [22 September 2022 12:37 UTC](https://discourse.nodered.org/t/sensitivity-of-hue-motion-sensor-in-huemagic/68078 "2022-09-22T12:37:14Z")

</div>

Hi I use a Philips Hue motion sensor in Node Red with HueMagic. This works fine so far, but I haven't found out how to adjust the sensitivity of the motion sensor in HueMagic. Does anyone have a tip for me? Thanks, re…

---

## [Pivottable implementation in Node-RED-Dashboard](https://discourse.nodered.org/t/pivottable-implementation-in-node-red-dashboard/67972)

<div class="topic-metadata">

**Author:** [@JustinB](https://discourse.nodered.org/u/JustinB)\
**Replies:** 14\
**Last updated:** [22 September 2022 11:27 UTC](https://discourse.nodered.org/t/pivottable-implementation-in-node-red-dashboard/67972 "2022-09-22T11:27:01Z")

</div>

Hello people, I'm currently trying to implement a pivot table into my Node-RED-Dashboard. I searched for some examples and found this one. I want to import a CSV so the user can edit the table and export it in the end. …

---

## [Suspected serial port problem -- how to view logs?](https://discourse.nodered.org/t/suspected-serial-port-problem-how-to-view-logs/68073)

<div class="topic-metadata">

**Author:** [@grant1](https://discourse.nodered.org/u/grant1)\
**Replies:** 2\
**Last updated:** [22 September 2022 10:48 UTC](https://discourse.nodered.org/t/suspected-serial-port-problem-how-to-view-logs/68073 "2022-09-22T10:48:44Z")

</div>

I have two flows, where each one runs independently of the other. Each flow has a serial input node that receives the value from a Rice Lake weigh indicator via RS232. I am using this RS232-to-USB cable to convert from…

---

## [Modbus installation error in WIN10](https://discourse.nodered.org/t/modbus-installation-error-in-win10/68028)

<div class="topic-metadata">

**Author:** [@Rohit0026](https://discourse.nodered.org/u/Rohit0026)\
**Replies:** 10\
**Last updated:** [22 September 2022 08:25 UTC](https://discourse.nodered.org/t/modbus-installation-error-in-win10/68028 "2022-09-22T08:25:30Z")

</div>

I have installed nodejs exe from website. used this command : npm install -g --unsafe-perm node-red THEN started "Node-red" in command prompt and tried installing modbus node. npm install node-red-contrib-modbus Can …

---

## [Will node-red work on MINT?](https://discourse.nodered.org/t/will-node-red-work-on-mint/67967)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 6\
**Last updated:** [22 September 2022 07:49 UTC](https://discourse.nodered.org/t/will-node-red-work-on-mint/67967 "2022-09-22T07:49:23Z")

</div>

I seem to have painted myself into a cornet - at which I am good at doing. I am running Ubuntu 21.04 and it seems that they have wiped their hands of it completely. It is becoming harder to get things for it - 21.04. S…

---

## [Is there has any way to make node-html quickly？](https://discourse.nodered.org/t/is-there-has-any-way-to-make-node-html-quickly/68006)

<div class="topic-metadata">

**Author:** [@Nash-x9](https://discourse.nodered.org/u/Nash-x9)\
**Replies:** 4\
**Last updated:** [22 September 2022 01:42 UTC](https://discourse.nodered.org/t/is-there-has-any-way-to-make-node-html-quickly/68006 "2022-09-22T01:42:55Z")

</div>

Thanks for Node-red team first. I'm new here, and trying to find some way to create node's ui quickly and simple. DashBoard and UIbuilder are useful, but they are better suited for making individual businesses or produ…

---

## [Errors with UI templates](https://discourse.nodered.org/t/errors-with-ui-templates/68038)

<div class="topic-metadata">

**Author:** [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Replies:** 8\
**Last updated:** [22 September 2022 00:55 UTC](https://discourse.nodered.org/t/errors-with-ui-templates/68038 "2022-09-22T00:55:34Z")

</div>

I'm using this ui template to display some Grafana charts in an iframe. The flow works OK, but on page refresh I see TypeError: Cannot read properties of undefined (reading 'payload') in browser console. Is there some…

---

## [Need help with this error](https://discourse.nodered.org/t/need-help-with-this-error/67953)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 16\
**Last updated:** [21 September 2022 23:06 UTC](https://discourse.nodered.org/t/need-help-with-this-error/67953 "2022-09-21T23:06:16Z")

</div>

I am seeing this error: {"\_msgid":"772966b40bfa3282","\_event":"node:eafdfa87.79d67","error":{"message":"TypeError: Cannot read property 'colour' of undefined","source":{"id":"fed40e07.141c68","type":"function","name":"A…

---

## [Error upgrading Dashboard node](https://discourse.nodered.org/t/error-upgrading-dashboard-node/67980)

<div class="topic-metadata">

**Author:** [@hazymat](https://discourse.nodered.org/u/hazymat)\
**Replies:** 2\
**Last updated:** [21 September 2022 20:56 UTC](https://discourse.nodered.org/t/error-upgrading-dashboard-node/67980 "2022-09-21T20:56:14Z")

</div>

I tried to upgrade node-red-dashboard from 2.29.3 to 3.2.0, from pallete manager. I get this error: 2022-09-20T14:49:17.592Z Install : node-red-dashboard 3.2.0 2022-09-20T14:57:45.748Z \[err\] npm 2022-09-20T14:57:45.748Z…

---

## [Inject number to Global](https://discourse.nodered.org/t/inject-number-to-global/67985)

<div class="topic-metadata">

**Author:** [@edstobi](https://discourse.nodered.org/u/edstobi)\
**Replies:** 3\
**Last updated:** [21 September 2022 20:52 UTC](https://discourse.nodered.org/t/inject-number-to-global/67985 "2022-09-21T20:52:41Z")

</div>

Hi I tried to use an "inject" to global.Gas \> did not work I tried "change" msg.Gaszähler to the value global.Gas \> did not work I tried "function"var Gas=msg.Gaszähler; flow.set("Gas",Gas); that works, but I do not …

---

## [S7 2 integers to Dint](https://discourse.nodered.org/t/s7-2-integers-to-dint/68047)

<div class="topic-metadata">

**Author:** [@KarolisL](https://discourse.nodered.org/u/KarolisL)\
**Replies:** 0\
**Last updated:** [21 September 2022 20:03 UTC](https://discourse.nodered.org/t/s7-2-integers-to-dint/68047 "2022-09-21T20:03:24Z")

</div>

Hello, I'm trying to understand how S7 node reads variables. I read 2 signed integers and try to merge them back to DINT. Results I get: DINT1011103: INT0 15, INT2 28063. 15\*2^16 + 28063 = 1011103 - Looks OK. DINT…

---

## [Node Red - insert](https://discourse.nodered.org/t/node-red-insert/67491)

<div class="topic-metadata">

**Author:** [@dantekempfen](https://discourse.nodered.org/u/dantekempfen)\
**Replies:** 4\
**Last updated:** [21 September 2022 20:02 UTC](https://discourse.nodered.org/t/node-red-insert/67491 "2022-09-21T20:02:38Z")

</div>

Hi! I would need help on this matter. How do I differentiate the Var, so it does not take the same values ​​as shown in the attachment. msg.fecha=new Date(); var fecha = msg.payload var Tension1 = msg.payload var Ten…

---

## [Resetting a timer with new input](https://discourse.nodered.org/t/resetting-a-timer-with-new-input/17979)

<div class="topic-metadata">

**Author:** [@roybosch](https://discourse.nodered.org/u/roybosch)\
**Replies:** 9\
**Last updated:** [21 September 2022 19:08 UTC](https://discourse.nodered.org/t/resetting-a-timer-with-new-input/17979 "2022-09-21T19:08:08Z")

</div>

Hi, I'm trying to make a timer using the function node in NodeRED. I've got the basics working, but I'm missing some key functionality that I can't get to work. This is my flow: I'm injecting number 5 in my function …

---

## [Debug button not appearing in right sidebar](https://discourse.nodered.org/t/debug-button-not-appearing-in-right-sidebar/68030)

<div class="topic-metadata">

**Author:** [@jackcarey](https://discourse.nodered.org/u/jackcarey)\
**Replies:** 4\
**Last updated:** [21 September 2022 16:55 UTC](https://discourse.nodered.org/t/debug-button-not-appearing-in-right-sidebar/68030 "2022-09-21T16:55:14Z")

</div>

This question seems stupid, but I haven't seen it anywhere else. I'm using node-red 3.0.2 on Chrome on Windows without any browser extensions. The debug button has disappeared from the right sidebar in the interface. Wha…

---

## [Request for rpi-gpio out functional modification to maintain IO state when deploying](https://discourse.nodered.org/t/request-for-rpi-gpio-out-functional-modification-to-maintain-io-state-when-deploying/68022)

<div class="topic-metadata">

**Author:** [@mibian](https://discourse.nodered.org/u/mibian)\
**Replies:** 6\
**Last updated:** [21 September 2022 13:43 UTC](https://discourse.nodered.org/t/request-for-rpi-gpio-out-functional-modification-to-maintain-io-state-when-deploying/68022 "2022-09-21T13:43:31Z")

</div>

I'm using the rpi-gpio out node to control the status of a relay that control the power to some component. Unfortunately whenever I modify the controlling parameters in my code, and hit deploy, the default behaviour of t…

---

## [Conflict in node](https://discourse.nodered.org/t/conflict-in-node/67937)

<div class="topic-metadata">

**Author:** [@droneman83](https://discourse.nodered.org/u/droneman83)\
**Replies:** 1\
**Last updated:** [21 September 2022 13:37 UTC](https://discourse.nodered.org/t/conflict-in-node/67937 "2022-09-21T13:37:23Z")

</div>

I have a small issue where i have a conflict, i need to sllep sometimes during the day. so i need my ikea coveres to stay down when needet, but when the temperatur is below 15 i have set my covers to stay oppen to hav…

---

## [Serial filter separates the outputs into different outputs](https://discourse.nodered.org/t/serial-filter-separates-the-outputs-into-different-outputs/67875)

<div class="topic-metadata">

**Author:** [@maxino101578](https://discourse.nodered.org/u/maxino101578)\
**Replies:** 14\
**Last updated:** [21 September 2022 12:56 UTC](https://discourse.nodered.org/t/serial-filter-separates-the-outputs-into-different-outputs/67875 "2022-09-21T12:56:08Z")

</div>

I read the following Strings from an RS232 but I would like to have each String in a separate output does anyone have an idea how to do it? Thanks so much

---

## [Using with openapi generated code in multiple nodes](https://discourse.nodered.org/t/using-with-openapi-generated-code-in-multiple-nodes/67969)

<div class="topic-metadata">

**Author:** [@Flatric](https://discourse.nodered.org/u/Flatric)\
**Replies:** 7\
**Last updated:** [21 September 2022 12:49 UTC](https://discourse.nodered.org/t/using-with-openapi-generated-code-in-multiple-nodes/67969 "2022-09-21T12:49:16Z")

</div>

Hello everyone, I have a few nodes that all use the same API. Currently I build the needed URLs by hand. Since I don't want to do that for every function the API provides and because I want to have an easy way to see if…

---

## [UI DASHBOARD for multiple user](https://discourse.nodered.org/t/ui-dashboard-for-multiple-user/68004)

<div class="topic-metadata">

**Author:** [@node-to](https://discourse.nodered.org/u/node-to)\
**Replies:** 1\
**Last updated:** [21 September 2022 12:44 UTC](https://discourse.nodered.org/t/ui-dashboard-for-multiple-user/68004 "2022-09-21T12:44:12Z")

</div>

Hello, everyone I read some of the topic that current node red ui is created for multiple user. Do we have any other way.

---

## [Fresh NodeRED instance is waiting for a non-existent type to be registered](https://discourse.nodered.org/t/fresh-nodered-instance-is-waiting-for-a-non-existent-type-to-be-registered/68027)

<div class="topic-metadata">

**Author:** [@jackcarey](https://discourse.nodered.org/u/jackcarey)\
**Replies:** 2\
**Last updated:** [21 September 2022 12:20 UTC](https://discourse.nodered.org/t/fresh-nodered-instance-is-waiting-for-a-non-existent-type-to-be-registered/68027 "2022-09-21T12:20:38Z")

</div>

I am using NodeRED as an embedded package on a Windows machine. I'm trying to create a custom node and I ran into a problem with it not being registered. I thought I'd start again in a new NodeJS project in a new folder…

---

## [Unwanted nested array](https://discourse.nodered.org/t/unwanted-nested-array/68017)

<div class="topic-metadata">

**Author:** [@Switchblade2](https://discourse.nodered.org/u/Switchblade2)\
**Replies:** 4\
**Last updated:** [21 September 2022 11:43 UTC](https://discourse.nodered.org/t/unwanted-nested-array/68017 "2022-09-21T11:43:26Z")

</div>

Hi, I'm quite new to Java script and Node Red so looking for help with a hopefully simple but strange issue. I have a function that create an array with 10 values that I store as a flow variable. If I check the array\_n…

---

## [Help me to create day counter](https://discourse.nodered.org/t/help-me-to-create-day-counter/67997)

<div class="topic-metadata">

**Author:** [@boo](https://discourse.nodered.org/u/boo)\
**Replies:** 3\
**Last updated:** [21 September 2022 11:03 UTC](https://discourse.nodered.org/t/help-me-to-create-day-counter/67997 "2022-09-21T11:03:22Z")

</div>

Hi i want to create a day counter. from today - the day i wanted(like 01/12/2022) and i want the output to be in days( like "24" days). can someone help me do this?

---

## [Power consumption of a heatpump](https://discourse.nodered.org/t/power-consumption-of-a-heatpump/67978)

<div class="topic-metadata">

**Author:** [@Nilpferd](https://discourse.nodered.org/u/Nilpferd)\
**Replies:** 4\
**Last updated:** [21 September 2022 10:39 UTC](https://discourse.nodered.org/t/power-consumption-of-a-heatpump/67978 "2022-09-21T10:39:19Z")

</div>

Hello My heat pump sends once a day the accumulated power consumption. I want to write the power consumption of the last three days in a bar chart. So first of all I have to subtract the value from two days ago from th…

---

## [Oauth Node-RED editor adminAuth](https://discourse.nodered.org/t/oauth-node-red-editor-adminauth/68018)

<div class="topic-metadata">

**Author:** [@AMWN](https://discourse.nodered.org/u/AMWN)\
**Replies:** 0\
**Last updated:** [21 September 2022 10:00 UTC](https://discourse.nodered.org/t/oauth-node-red-editor-adminauth/68018 "2022-09-21T10:00:16Z")

</div>

I have setup oAuth authentication with azure-ad. Everything works well except the part how to handle invalid users. I only allow users which have a specific group in azure ad. I check this in de verify function. verify…

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

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