# Latest

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

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

**Page:** 864

---

## [Problem with Jsonata function $toMillis](https://discourse.nodered.org/t/problem-with-jsonata-function-tomillis/42453)

<div class="topic-metadata">

**Author:** [@Xenokrates](https://discourse.nodered.org/u/Xenokrates)\
**Replies:** 9\
**Last updated:** [11 March 2021 11:37 UTC](https://discourse.nodered.org/t/problem-with-jsonata-function-tomillis/42453 "2021-03-11T11:37:39Z")

</div>

I see a strange error thrown by the JSONATA $toMillis() function, when I try to process a payload from the feedparser node. The 'article.date' field from the feedparser node seems to yield a perfect DateTime string. Wh…

---

## [How best to create node-red docker applications having flow credentials?](https://discourse.nodered.org/t/how-best-to-create-node-red-docker-applications-having-flow-credentials/19312)

<div class="topic-metadata">

**Author:** [@janvda](https://discourse.nodered.org/u/janvda)\
**Replies:** 8\
**Last updated:** [11 March 2021 11:21 UTC](https://discourse.nodered.org/t/how-best-to-create-node-red-docker-applications-having-flow-credentials/19312 "2021-03-11T11:21:48Z")

</div>

I would like to build a docker application that exists of a node-red application using nodes having credentials (which are stored in the flows\_cred.json). I am especially struggling with the credentials aspect. I woul…

---

## [M-bus heatmeter problem](https://discourse.nodered.org/t/m-bus-heatmeter-problem/42328)

<div class="topic-metadata">

**Author:** [@darcc84](https://discourse.nodered.org/u/darcc84)\
**Replies:** 1\
**Last updated:** [11 March 2021 10:32 UTC](https://discourse.nodered.org/t/m-bus-heatmeter-problem/42328 "2021-03-11T10:32:21Z")

</div>

Hi have a problem with reading heatmeters. Installed node-red-contrib-m-bus 2.0.0 and after scanning there are no meters found, when i try scanning it trough rs485 to usb converter and other app, it will find all meters…

---

## [Extract data from each element of an array (for train departures board)](https://discourse.nodered.org/t/extract-data-from-each-element-of-an-array-for-train-departures-board/41895)

<div class="topic-metadata">

**Author:** [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Replies:** 2\
**Last updated:** [11 March 2021 09:56 UTC](https://discourse.nodered.org/t/extract-data-from-each-element-of-an-array-for-train-departures-board/41895 "2021-03-11T09:56:11Z")

</div>

Using the realtimetrains.co.uk API I can get a JSON formatted list of the next 50 (or less) trains to stop at / pass my local station. So msg.payload.services is an array containing various fields of interest, eg msg.p…

---

## [Chart plotting live data hangs due to browser high cpu/gpu usage](https://discourse.nodered.org/t/chart-plotting-live-data-hangs-due-to-browser-high-cpu-gpu-usage/41770)

<div class="topic-metadata">

**Author:** [@palaing](https://discourse.nodered.org/u/palaing)\
**Replies:** 26\
**Last updated:** [11 March 2021 09:49 UTC](https://discourse.nodered.org/t/chart-plotting-live-data-hangs-due-to-browser-high-cpu-gpu-usage/41770 "2021-03-11T09:49:26Z")

</div>

I've been working on a visualization project for a hydronic heating system and ran into a few glitches with charts. I'm posting temperature data via an MQTT broker, to a 3 line chart, with updates every 5 seconds. The ch…

---

## [Node red - mysql](https://discourse.nodered.org/t/node-red-mysql/42437)

<div class="topic-metadata">

**Author:** [@carmar19](https://discourse.nodered.org/u/carmar19)\
**Replies:** 4\
**Last updated:** [11 March 2021 09:15 UTC](https://discourse.nodered.org/t/node-red-mysql/42437 "2021-03-11T09:15:30Z")

</div>

Good afternoon with everyone visiting here I have a query I have generated a code watching some tutorials on node red and mysql, communication has already been established and the data is inserted all right until there, …

---

## [CRON+ Question: Turn lamp on at fixed time unless sunrise has happened](https://discourse.nodered.org/t/cron-question-turn-lamp-on-at-fixed-time-unless-sunrise-has-happened/42456)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 1\
**Last updated:** [11 March 2021 09:07 UTC](https://discourse.nodered.org/t/cron-question-turn-lamp-on-at-fixed-time-unless-sunrise-has-happened/42456 "2021-03-11T09:07:40Z")

</div>

Hi all, quick question for the brains in the forum :grin: I have a lamp that I want to turn on at a fixed time in the morning but ONLY if sunrise has not already happened. The lamp is turned off based on sunrise so obvi…

---

## [Settings file not found on debugging with vscode](https://discourse.nodered.org/t/settings-file-not-found-on-debugging-with-vscode/42447)

<div class="topic-metadata">

**Author:** [@DenisMtfl](https://discourse.nodered.org/u/DenisMtfl)\
**Replies:** 8\
**Last updated:** [11 March 2021 09:03 UTC](https://discourse.nodered.org/t/settings-file-not-found-on-debugging-with-vscode/42447 "2021-03-11T09:03:31Z")

</div>

Hey i have started a debug session with vscode. My launch.json look likes the following. And when i start to debug it cannot found the settings file. But why there is an settings next to red.js !? { "version": "0.2…

---

## [How to ensure gpio is low after deployment or nodered start](https://discourse.nodered.org/t/how-to-ensure-gpio-is-low-after-deployment-or-nodered-start/42420)

<div class="topic-metadata">

**Author:** [@riker65](https://discourse.nodered.org/u/riker65)\
**Replies:** 2\
**Last updated:** [11 March 2021 07:34 UTC](https://discourse.nodered.org/t/how-to-ensure-gpio-is-low-after-deployment-or-nodered-start/42420 "2021-03-11T07:34:47Z")

</div>

Hi I have an injection - timestamp to set GPIO to low but it is always high after a deployment or restart i did read: but did not "understande" the solution https://discourse.nodered.org/t/rpi-gpio-in-node-always-inc…

---

## [Bacnet node help](https://discourse.nodered.org/t/bacnet-node-help/38480)

<div class="topic-metadata">

**Author:** [@steven\_191](https://discourse.nodered.org/u/steven_191)\
**Replies:** 8\
**Last updated:** [11 March 2021 06:34 UTC](https://discourse.nodered.org/t/bacnet-node-help/38480 "2021-03-11T06:34:26Z")

</div>

regarding this node Im trying to set up a device that will send some values to bacnet points in a remote device. I know enough about bacnet, but cant really get my head around setting it up with this node in node red…

---

## [Configuration Node with Credentials Version Difference](https://discourse.nodered.org/t/configuration-node-with-credentials-version-difference/42436)

<div class="topic-metadata">

**Author:** [@justin](https://discourse.nodered.org/u/justin)\
**Replies:** 1\
**Last updated:** [11 March 2021 05:41 UTC](https://discourse.nodered.org/t/configuration-node-with-credentials-version-difference/42436 "2021-03-11T05:41:13Z")

</div>

I have an interesting dilemma... I have two node red servers running, one running v1.2.7 and the other running v1.1.3 (I didn't install the second). Anyway I have some configuration nodes that represent servers with AP…

---

## [\[n00b Javascript\] creating an object from multiple objects using a custom function with for loop](https://discourse.nodered.org/t/n00b-javascript-creating-an-object-from-multiple-objects-using-a-custom-function-with-for-loop/42223)

<div class="topic-metadata">

**Author:** [@vongomben](https://discourse.nodered.org/u/vongomben)\
**Replies:** 13\
**Last updated:** [11 March 2021 05:03 UTC](https://discourse.nodered.org/t/n00b-javascript-creating-an-object-from-multiple-objects-using-a-custom-function-with-for-loop/42223 "2021-03-11T05:03:06Z")

</div>

Hi! I have a dataset in a excel sheet. I know how to iterate in it, every 8 cells. I need a function that would create an object from each row. I am not able in writign that function. payload\[8\].t would become pay…

---

## [What is wrong with the temperature?](https://discourse.nodered.org/t/what-is-wrong-with-the-temperature/42428)

<div class="topic-metadata">

**Author:** [@kamcio](https://discourse.nodered.org/u/kamcio)\
**Replies:** 7\
**Last updated:** [11 March 2021 04:19 UTC](https://discourse.nodered.org/t/what-is-wrong-with-the-temperature/42428 "2021-03-11T04:19:26Z")

</div>

Hello together, I don't know what I'm doing wrong with the temperature. Although we have 10.4 degrees today, all shutters fell down (see photo). Could someone help me how to configure everything to work properly? \[…

---

## [MySQL Data Logging Issue](https://discourse.nodered.org/t/mysql-data-logging-issue/42294)

<div class="topic-metadata">

**Author:** [@reachrao01](https://discourse.nodered.org/u/reachrao01)\
**Replies:** 26\
**Last updated:** [11 March 2021 03:28 UTC](https://discourse.nodered.org/t/mysql-data-logging-issue/42294 "2021-03-11T03:28:28Z")

</div>

Dear All, We are trying to insert some data to MySQL - Table but data not adding. Any issue with the following configuration since data logging is not happening. Table showing no records.

---

## [Http get with header problem](https://discourse.nodered.org/t/http-get-with-header-problem/42440)

<div class="topic-metadata">

**Author:** [@umtksa](https://discourse.nodered.org/u/umtksa)\
**Replies:** 1\
**Last updated:** [11 March 2021 03:09 UTC](https://discourse.nodered.org/t/http-get-with-header-problem/42440 "2021-03-11T03:09:43Z")

</div>

Hi all I'm getting data from an api with a bearer token. when I enter bearer token to http node I can connect to server and get my api data when ever token expires I copy the new one and paste it to http node and deplo…

---

## [String to number problem](https://discourse.nodered.org/t/string-to-number-problem/42439)

<div class="topic-metadata">

**Author:** [@Rufus](https://discourse.nodered.org/u/Rufus)\
**Replies:** 3\
**Last updated:** [11 March 2021 01:07 UTC](https://discourse.nodered.org/t/string-to-number-problem/42439 "2021-03-11T01:07:11Z")

</div>

Hello I am scarping data from a web and I need to change from string to number. If I try to use this: msg.payload = Number(msg.payload); return msg It doesn´t work for me as in Spain we use "," as "." The fisrt debu…

---

## [Light control, need help with long button press](https://discourse.nodered.org/t/light-control-need-help-with-long-button-press/42434)

<div class="topic-metadata">

**Author:** [@iamhermes](https://discourse.nodered.org/u/iamhermes)\
**Replies:** 0\
**Last updated:** [10 March 2021 22:08 UTC](https://discourse.nodered.org/t/light-control-need-help-with-long-button-press/42434 "2021-03-10T22:08:10Z")

</div>

i need help to realize a long press function for the following flow For now, a key press switches the relais on or off and defines a flow var for timeout (automatic off) Next step is to add an additional "on" time to t…

---

## [Storing JSON formatted values in a file and retrieving them](https://discourse.nodered.org/t/storing-json-formatted-values-in-a-file-and-retrieving-them/42400)

<div class="topic-metadata">

**Author:** [@beetlezap](https://discourse.nodered.org/u/beetlezap)\
**Replies:** 11\
**Last updated:** [10 March 2021 22:00 UTC](https://discourse.nodered.org/t/storing-json-formatted-values-in-a-file-and-retrieving-them/42400 "2021-03-10T22:00:38Z")

</div>

I am getting stuck with an extremely simple use-case and I really do not understand why it is failing. This is where i store the data: This is the output stored in the file: }{ "name": "surf-John Doe", "fnam…

---

## [Days left from date to date](https://discourse.nodered.org/t/days-left-from-date-to-date/42432)

<div class="topic-metadata">

**Author:** [@Andersk87](https://discourse.nodered.org/u/Andersk87)\
**Replies:** 3\
**Last updated:** [10 March 2021 21:36 UTC](https://discourse.nodered.org/t/days-left-from-date-to-date/42432 "2021-03-10T21:36:56Z")

</div>

Hi I´m struggling with my function node. collection data from an API, get dates in this format: "2021-04-19T00:00:00" I would like to take the date from today, and show remaining days to the date from the api. tried …

---

## [Javascript for PWM (Pulse Width Modulation) to dim a heater](https://discourse.nodered.org/t/javascript-for-pwm-pulse-width-modulation-to-dim-a-heater/41730)

<div class="topic-metadata">

**Author:** [@Jeff](https://discourse.nodered.org/u/Jeff)\
**Replies:** 21\
**Last updated:** [10 March 2021 21:06 UTC](https://discourse.nodered.org/t/javascript-for-pwm-pulse-width-modulation-to-dim-a-heater/41730 "2021-03-10T21:06:59Z")

</div>

Hello, NodeRed is new for me, and I'm new here.... I Installed Node-RED on a Unipi Neuron S103 (Raspberry Pi inside) and want to dim an electrical heater. I want to send short pulses (PWM) to a solid state relais. Can s…

---

## [Table of Variables](https://discourse.nodered.org/t/table-of-variables/42323)

<div class="topic-metadata">

**Author:** [@PHewson](https://discourse.nodered.org/u/PHewson)\
**Replies:** 6\
**Last updated:** [10 March 2021 20:59 UTC](https://discourse.nodered.org/t/table-of-variables/42323 "2021-03-10T20:59:01Z")

</div>

Hi, For transparency, I am not a programmer in C, C#, json etc, but by using multiple guides I got there! I work with Crestron Simpl windows and my Simpl+ (C deriviant) is limited. I have done a search but NodeRed is …

---

## [Value calculation "last day"](https://discourse.nodered.org/t/value-calculation-last-day/42419)

<div class="topic-metadata">

**Author:** [@joselitoo](https://discourse.nodered.org/u/joselitoo)\
**Replies:** 11\
**Last updated:** [10 March 2021 20:57 UTC](https://discourse.nodered.org/t/value-calculation-last-day/42419 "2021-03-10T20:57:09Z")

</div>

Hi, i want to find out which power consumption i have over the last day (not last 24h). I can´t find any information on the inet around this. I know i can do this all manually etc but an automaton would be nice. So her…

---

## [Getting RGB values from general light](https://discourse.nodered.org/t/getting-rgb-values-from-general-light/42410)

<div class="topic-metadata">

**Author:** [@JJdave](https://discourse.nodered.org/u/JJdave)\
**Replies:** 5\
**Last updated:** [10 March 2021 19:27 UTC](https://discourse.nodered.org/t/getting-rgb-values-from-general-light/42410 "2021-03-10T19:27:08Z")

</div>

Hi there just wondering how to get the current RGB values from a light bulb? I have currently Mueller Licht lights installed via a Conbee II Zigbee stick. Everything works properly. But want to know how to read out cu…

---

## [What I did to run Rpi touchscreen in Kiosk mode](https://discourse.nodered.org/t/what-i-did-to-run-rpi-touchscreen-in-kiosk-mode/42413)

<div class="topic-metadata">

**Author:** [@PaulKana](https://discourse.nodered.org/u/PaulKana)\
**Replies:** 6\
**Last updated:** [10 March 2021 19:04 UTC](https://discourse.nodered.org/t/what-i-did-to-run-rpi-touchscreen-in-kiosk-mode/42413 "2021-03-10T19:04:23Z")

</div>

So I have this project of linking together two machines. As I didn't want to relay on the router for local network and to control the central Rpi through the network with a tablet I decided two buy the official Rpi touch…

---

## [Newbie question on changing abbreviations to string from array](https://discourse.nodered.org/t/newbie-question-on-changing-abbreviations-to-string-from-array/42355)

<div class="topic-metadata">

**Author:** [@viixxiiv](https://discourse.nodered.org/u/viixxiiv)\
**Replies:** 3\
**Last updated:** [10 March 2021 17:09 UTC](https://discourse.nodered.org/t/newbie-question-on-changing-abbreviations-to-string-from-array/42355 "2021-03-10T17:09:28Z")

</div>

Hi all! I’ve just starting putting together my first node red project but and stuck. I managed to make an api call and extracted the data I want but it’s in an abbreviated form. I want to convert it to a string base on…

---

## [Need advice about node-red multiple user instances](https://discourse.nodered.org/t/need-advice-about-node-red-multiple-user-instances/42313)

<div class="topic-metadata">

**Author:** [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Replies:** 11\
**Last updated:** [10 March 2021 16:44 UTC](https://discourse.nodered.org/t/need-advice-about-node-red-multiple-user-instances/42313 "2021-03-10T16:44:59Z")

</div>

Hello everyone, I'm about to build a dashboard for multiple users, lets say an admin dashboard, where you can access each tab and get the most information and control, and an user dashboard where you have only the view …

---

## [Monitor variables in a table](https://discourse.nodered.org/t/monitor-variables-in-a-table/42304)

<div class="topic-metadata">

**Author:** [@cbp](https://discourse.nodered.org/u/cbp)\
**Replies:** 4\
**Last updated:** [10 March 2021 16:32 UTC](https://discourse.nodered.org/t/monitor-variables-in-a-table/42304 "2021-03-10T16:32:15Z")

</div>

I'm an embedded programmer and work extensively on the STM32 MCUs. They have a tool called Cubemonitor for live monitoring variables within the executable and is based on Node-red. I'm trying to figure out how to monitor…

---

## [Global Function for multiple Function Nodes](https://discourse.nodered.org/t/global-function-for-multiple-function-nodes/42394)

<div class="topic-metadata">

**Author:** [@ozdeadmeat](https://discourse.nodered.org/u/ozdeadmeat)\
**Replies:** 6\
**Last updated:** [10 March 2021 16:23 UTC](https://discourse.nodered.org/t/global-function-for-multiple-function-nodes/42394 "2021-03-10T16:23:40Z")

</div>

Is there a way to have a set of functions loaded into a global or flow space that i can use in multiple function nodes? I use function nodes alot to do formatting and other such things and depending on the flow I will h…

---

## [Using inject node](https://discourse.nodered.org/t/using-inject-node/42391)

<div class="topic-metadata">

**Author:** [@Parit](https://discourse.nodered.org/u/Parit)\
**Replies:** 10\
**Last updated:** [10 March 2021 15:39 UTC](https://discourse.nodered.org/t/using-inject-node/42391 "2021-03-10T15:39:34Z")

</div>

I want to use the inject node to send to value every 5 seconds but i'm not sure to to do it.

---

## [Modbus TCP Client not connecting via Pi](https://discourse.nodered.org/t/modbus-tcp-client-not-connecting-via-pi/42414)

<div class="topic-metadata">

**Author:** [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Replies:** 5\
**Last updated:** [10 March 2021 15:21 UTC](https://discourse.nodered.org/t/modbus-tcp-client-not-connecting-via-pi/42414 "2021-03-10T15:21:17Z")

</div>

Hi All, I am trying to connect a my modbus client on Pi to my server on my S7. I initially set the modbus client up on my node red on my laptop which was working. I copied over the flow to my Pi and installed it into no…

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

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