# Latest

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

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

**Page:** 518

---

## [🎉 Node-RED 2.0 Released](https://discourse.nodered.org/t/node-red-2-0-released/48647)

<div class="topic-metadata">

**Author:** [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Replies:** 54\
**Last updated:** [13 August 2022 18:28 UTC](https://discourse.nodered.org/t/node-red-2-0-released/48647 "2022-08-13T18:28:56Z")

</div>

Node-RED 2.0 is now generally available for everyone to use! Thanks to everyone who tested the beta releases and provided feedback. Full details of the release are available on the blog: Updated docker images will b…

---

## [Getting temperature readings from DS18B20 into an Alexa virtual device](https://discourse.nodered.org/t/getting-temperature-readings-from-ds18b20-into-an-alexa-virtual-device/66396)

<div class="topic-metadata">

**Author:** [@cyrilbl](https://discourse.nodered.org/u/cyrilbl)\
**Replies:** 2\
**Last updated:** [13 August 2022 15:52 UTC](https://discourse.nodered.org/t/getting-temperature-readings-from-ds18b20-into-an-alexa-virtual-device/66396 "2022-08-13T15:52:35Z")

</div>

Hi, There must be a simple answer to this can any one help please? I have a DSI8B20 temperature sensor which is measuring water temperature.I want to ask Alexa to tell me the current temp.I have set up the Alexa virtual …

---

## [Is there ways to inject past 23 hours data from website](https://discourse.nodered.org/t/is-there-ways-to-inject-past-23-hours-data-from-website/66390)

<div class="topic-metadata">

**Author:** [@Camper](https://discourse.nodered.org/u/Camper)\
**Replies:** 3\
**Last updated:** [13 August 2022 14:38 UTC](https://discourse.nodered.org/t/is-there-ways-to-inject-past-23-hours-data-from-website/66390 "2022-08-13T14:38:20Z")

</div>

Hello, i currently learning how to inject historical data into MQTT but no luck so far. The data is only being updated every hours and i only learn how to inject the current hour's data. I wanted to inject past 23 hours …

---

## [JavaScript on template fails to Fetch JSON](https://discourse.nodered.org/t/javascript-on-template-fails-to-fetch-json/66392)

<div class="topic-metadata">

**Author:** [@pcborges](https://discourse.nodered.org/u/pcborges)\
**Replies:** 15\
**Last updated:** [13 August 2022 14:26 UTC](https://discourse.nodered.org/t/javascript-on-template-fails-to-fetch-json/66392 "2022-08-13T14:26:37Z")

</div>

Hello, I am trying to Fetch a JSON from my API in Node-Red but fail to get the contents. I have simulated my problem in the following image: Time stamp will work locally but browsing "/test" will require a URL to ge…

---

## [Novice question](https://discourse.nodered.org/t/novice-question/66386)

<div class="topic-metadata">

**Author:** [@EaB11](https://discourse.nodered.org/u/EaB11)\
**Replies:** 4\
**Last updated:** [13 August 2022 13:47 UTC](https://discourse.nodered.org/t/novice-question/66386 "2022-08-13T13:47:27Z")

</div>

i have a lumix camera which (it appears) i can control via http.. to start recording on the camera the address is... http://IP ADDRESS/cam.cgi?mode=camcmd&value=video\_recstart i am trying to work out how to trigger thi…

---

## [\[Solved\] 'Angular filters' link in ui-gauge 'help' not working](https://discourse.nodered.org/t/solved-angular-filters-link-in-ui-gauge-help-not-working/66387)

<div class="topic-metadata">

**Author:** [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Replies:** 0\
**Last updated:** [13 August 2022 09:12 UTC](https://discourse.nodered.org/t/solved-angular-filters-link-in-ui-gauge-help-not-working/66387 "2022-08-13T09:12:26Z")

</div>

In the 'help' tab of the ui-gauge there is a link 'Angular filters' that previously took you to a website with a tutorial all about the built in angularjs filters but the website no longer exists and you are taken to htt…

---

## [Cost Calculation](https://discourse.nodered.org/t/cost-calculation/66321)

<div class="topic-metadata">

**Author:** [@swanside](https://discourse.nodered.org/u/swanside)\
**Replies:** 14\
**Last updated:** [13 August 2022 06:37 UTC](https://discourse.nodered.org/t/cost-calculation/66321 "2022-08-13T06:37:57Z")

</div>

I have an energy meter which I would like to accumulate a cost per unit of electric. Does anybody have a flow I can copy and paste or guid me hoe I can accumulate my Kwh and put that into a cost per Kwh per Hour and then…

---

## [Trying to fill msg more efficient but gives errors](https://discourse.nodered.org/t/trying-to-fill-msg-more-efficient-but-gives-errors/66372)

<div class="topic-metadata">

**Author:** [@WesleyFranken](https://discourse.nodered.org/u/WesleyFranken)\
**Replies:** 4\
**Last updated:** [12 August 2022 22:43 UTC](https://discourse.nodered.org/t/trying-to-fill-msg-more-efficient-but-gives-errors/66372 "2022-08-12T22:43:44Z")

</div>

Dear community, I couldn't find the answer so I've to ask it. I would like to send the following messages. But it gives an error. What am I doing wrong? The error given at msg+d is "Bad assignment" The error given at…

---

## [Node-Red JavaScript Reference Manual](https://discourse.nodered.org/t/node-red-javascript-reference-manual/66368)

<div class="topic-metadata">

**Author:** [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Replies:** 11\
**Last updated:** [12 August 2022 21:40 UTC](https://discourse.nodered.org/t/node-red-javascript-reference-manual/66368 "2022-08-12T21:40:48Z")

</div>

Hello, Being somewhat new to Node-Red, and in particular JavaScript. Node-Red JavaScript appears to be a subset of standard JavaScript; is there a reference manual for JavaScript as it relates to Node-Red. For instance…

---

## [Downloaded a flow - how do I find unknown node dependencies?](https://discourse.nodered.org/t/downloaded-a-flow-how-do-i-find-unknown-node-dependencies/66365)

<div class="topic-metadata">

**Author:** [@filipmu](https://discourse.nodered.org/u/filipmu)\
**Replies:** 8\
**Last updated:** [12 August 2022 21:05 UTC](https://discourse.nodered.org/t/downloaded-a-flow-how-do-i-find-unknown-node-dependencies/66365 "2022-08-12T21:05:31Z")

</div>

First time user here - I managed to download a flow from the flows.nodered.org library: https://flows.nodered.org/flow/54bea677f001eb07b2f68171fab028d4 I see it depends on some unknown nodes, like 'ui\_button', 'ftp in',…

---

## [Possible to change the location of settings.js when running Node-RED as a service?](https://discourse.nodered.org/t/possible-to-change-the-location-of-settings-js-when-running-node-red-as-a-service/66342)

<div class="topic-metadata">

**Author:** [@janedoe123](https://discourse.nodered.org/u/janedoe123)\
**Replies:** 13\
**Last updated:** [12 August 2022 19:50 UTC](https://discourse.nodered.org/t/possible-to-change-the-location-of-settings-js-when-running-node-red-as-a-service/66342 "2022-08-12T19:50:25Z")

</div>

Hi all, For security reason, I would like to change the location of settings.js when running Node-RED as a service. Is it possible to do so? (From what I've seen, it's only possible from the command line, hence my que…

---

## [How can I get a msg.payload value to use it in a template and plot a map on a dashboard? ](https://discourse.nodered.org/t/how-can-i-get-a-msg-payload-value-to-use-it-in-a-template-and-plot-a-map-on-a-dashboard/66310)

<div class="topic-metadata">

**Author:** [@fmino0312](https://discourse.nodered.org/u/fmino0312)\
**Replies:** 4\
**Last updated:** [12 August 2022 16:26 UTC](https://discourse.nodered.org/t/how-can-i-get-a-msg-payload-value-to-use-it-in-a-template-and-plot-a-map-on-a-dashboard/66310 "2022-08-12T16:26:09Z")

</div>

I need help to be able to get a value that I already got from a database. This value was obtained through a function and is found in a msg.payload. At the time of making the html code for the template, I cannot obtain th…

---

## [Docker won't start after settings.json changes](https://discourse.nodered.org/t/docker-wont-start-after-settings-json-changes/66363)

<div class="topic-metadata">

**Author:** [@dereckradford](https://discourse.nodered.org/u/dereckradford)\
**Replies:** 2\
**Last updated:** [12 August 2022 16:01 UTC](https://discourse.nodered.org/t/docker-wont-start-after-settings-json-changes/66363 "2022-08-12T16:01:23Z")

</div>

I was trying to enable HTTPS on the container and didn't realize that the container couldn't access the host file system. Noob mistake and still learning docker. I am trying to copy the files from container to the host a…

---

## [I have some questions please](https://discourse.nodered.org/t/i-have-some-questions-please/66237)

<div class="topic-metadata">

**Author:** [@Fathi2022](https://discourse.nodered.org/u/Fathi2022)\
**Replies:** 33\
**Last updated:** [12 August 2022 15:43 UTC](https://discourse.nodered.org/t/i-have-some-questions-please/66237 "2022-08-12T15:43:41Z")

</div>

Does the Node REd support Machine learning? Does the Node REd support only one language which is java?

---

## [Formatting of my battery responses and display in the dashboard](https://discourse.nodered.org/t/formatting-of-my-battery-responses-and-display-in-the-dashboard/66331)

<div class="topic-metadata">

**Author:** [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Replies:** 9\
**Last updated:** [12 August 2022 08:32 UTC](https://discourse.nodered.org/t/formatting-of-my-battery-responses-and-display-in-the-dashboard/66331 "2022-08-12T08:32:18Z")

</div>

Hello to all. I try to format my battery response in a table format in the dashboard. I have already succeeded but at the cost of a "lamentable" programming (see below the result, it looks nice but it's ugly on the pro…

---

## [Problem with RED.library in v3.0.x](https://discourse.nodered.org/t/problem-with-red-library-in-v3-0-x/66341)

<div class="topic-metadata">

**Author:** [@Fredrik](https://discourse.nodered.org/u/Fredrik)\
**Replies:** 2\
**Last updated:** [12 August 2022 07:08 UTC](https://discourse.nodered.org/t/problem-with-red-library-in-v3-0-x/66341 "2022-08-12T07:08:15Z")

</div>

I'm using RED.library in node-red-contrib-hal2, and I'm having some problems in Node-RED v3.0.x. 'Open library...' no longer works with error red.min.js?v=3.0.2:18 Uncaught TypeError: Cannot read properties of undefined…

---

## [Node loop restarting before it is finished?](https://discourse.nodered.org/t/node-loop-restarting-before-it-is-finished/66256)

<div class="topic-metadata">

**Author:** [@VinistoisR](https://discourse.nodered.org/u/VinistoisR)\
**Replies:** 13\
**Last updated:** [12 August 2022 06:13 UTC](https://discourse.nodered.org/t/node-loop-restarting-before-it-is-finished/66256 "2022-08-12T06:13:48Z")

</div>

I have a couple of function nodes in a row, each with loops. The first node seems to be doing its business. The second function looks like this: for (let i = 0; i \< msg.payload\[0\].timeseries.length; i++) { var valu…

---

## [Events: state - AND](https://discourse.nodered.org/t/events-state-and/65719)

<div class="topic-metadata">

**Author:** [@gregolin](https://discourse.nodered.org/u/gregolin)\
**Replies:** 4\
**Last updated:** [12 August 2022 03:14 UTC](https://discourse.nodered.org/t/events-state-and/65719 "2022-08-12T03:14:48Z")

</div>

Hi. Is it possible to check these entities below with the AND and not OR? I'd like to have a check for this condition and the return true or false only if ALL OF THESE ENTITIES are OFF. Thanks.

---

## [HTML code to transfer images to Node-Red http-request node](https://discourse.nodered.org/t/html-code-to-transfer-images-to-node-red-http-request-node/66187)

<div class="topic-metadata">

**Author:** [@pcborges](https://discourse.nodered.org/u/pcborges)\
**Replies:** 10\
**Last updated:** [12 August 2022 00:11 UTC](https://discourse.nodered.org/t/html-code-to-transfer-images-to-node-red-http-request-node/66187 "2022-08-12T00:11:10Z")

</div>

Hi, I need to transfer images to Node-red, found many examples on how to handle the image once it arrives but no example on the html/JavaScript that would post a local image to Node-Red. Where can I find such example co…

---

## [Trigger Flow on Deploy Updates](https://discourse.nodered.org/t/trigger-flow-on-deploy-updates/66189)

<div class="topic-metadata">

**Author:** [@plfinch](https://discourse.nodered.org/u/plfinch)\
**Replies:** 7\
**Last updated:** [11 August 2022 23:49 UTC](https://discourse.nodered.org/t/trigger-flow-on-deploy-updates/66189 "2022-08-11T23:49:15Z")

</div>

I would like to have a flow run after every deploy of new code. I think I can easily do this with a full deploy using just an inject node to trigger (since it is essentially a restart). But what about for flow-only deplo…

---

## [How to launch specific .json files in Node-Red](https://discourse.nodered.org/t/how-to-launch-specific-json-files-in-node-red/66333)

<div class="topic-metadata">

**Author:** [@xytsrm](https://discourse.nodered.org/u/xytsrm)\
**Replies:** 17\
**Last updated:** [11 August 2022 21:07 UTC](https://discourse.nodered.org/t/how-to-launch-specific-json-files-in-node-red/66333 "2022-08-11T21:07:52Z")

</div>

Using Windows 10: In experimenting with Node-Red I've been able to create several flows, and exported as .json files to a folder. To execute I have a short-cut saved that starts a .cmd (command file) that starts the No…

---

## [Signed Integer showing 3 phase power factor for electrical metering](https://discourse.nodered.org/t/signed-integer-showing-3-phase-power-factor-for-electrical-metering/66250)

<div class="topic-metadata">

**Author:** [@HansZnarf](https://discourse.nodered.org/u/HansZnarf)\
**Replies:** 17\
**Last updated:** [11 August 2022 18:35 UTC](https://discourse.nodered.org/t/signed-integer-showing-3-phase-power-factor-for-electrical-metering/66250 "2022-08-11T18:35:04Z")

</div>

This is a signed three phase power factor value. The manual states the following "-100 to +1000 to +100 in 1000th. It is from a 16 bit register. The most significant bit is left as read and is the sign value. When "0…

---

## [Setting variables in uibuilder js file when using ESM client](https://discourse.nodered.org/t/setting-variables-in-uibuilder-js-file-when-using-esm-client/66332)

<div class="topic-metadata">

**Author:** [@magicman](https://discourse.nodered.org/u/magicman)\
**Replies:** 2\
**Last updated:** [11 August 2022 18:29 UTC](https://discourse.nodered.org/t/setting-variables-in-uibuilder-js-file-when-using-esm-client/66332 "2022-08-11T18:29:10Z")

</div>

When using the vue template at the top of the js file is this section: const app = new Vue ({ el:: #app, data() { return{ var1: "abc", var2: "def", }}, // end of data// where i stored my variables and my initial …

---

## [Using Environment Variables in settings.js](https://discourse.nodered.org/t/using-environment-variables-in-settings-js/66295)

<div class="topic-metadata">

**Author:** [@stokes776](https://discourse.nodered.org/u/stokes776)\
**Replies:** 3\
**Last updated:** [11 August 2022 15:41 UTC](https://discourse.nodered.org/t/using-environment-variables-in-settings-js/66295 "2022-08-11T15:41:00Z")

</div>

Hello, I am trying to dynamically set my pageTitle. "editorTheme": { "page": { "title": "${BALENA\_DEVICE\_NAME\_AT\_INIT}" } } I use Balena, and it has an environment variable, that is…

---

## [Node-red terminology confusion](https://discourse.nodered.org/t/node-red-terminology-confusion/66323)

<div class="topic-metadata">

**Author:** [@omrid](https://discourse.nodered.org/u/omrid)\
**Replies:** 3\
**Last updated:** [11 August 2022 15:21 UTC](https://discourse.nodered.org/t/node-red-terminology-confusion/66323 "2022-08-11T15:21:07Z")

</div>

Hi, We started using Node-red in our projects, and really love it. Part of what I do is train new people on how to use Node-red properly. a thing which many people find confusing in the terminology, is that the term "F…

---

## [CSV node, write output node is not working](https://discourse.nodered.org/t/csv-node-write-output-node-is-not-working/66253)

<div class="topic-metadata">

**Author:** [@NeetaJ](https://discourse.nodered.org/u/NeetaJ)\
**Replies:** 10\
**Last updated:** [11 August 2022 14:13 UTC](https://discourse.nodered.org/t/csv-node-write-output-node-is-not-working/66253 "2022-08-11T14:13:58Z")

</div>

Hello, I have a flow where i am passing payload to csv node and then to write file. I have also mentioned absolute path of that file. But it is not updated. I do get the output with values but nothing is written in the…

---

## [Change node {} syntax](https://discourse.nodered.org/t/change-node-syntax/66315)

<div class="topic-metadata">

**Author:** [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Replies:** 6\
**Last updated:** [11 August 2022 13:29 UTC](https://discourse.nodered.org/t/change-node-syntax/66315 "2022-08-11T13:29:41Z")

</div>

I want to change msg.payload from a single value to a javascript object. In a function it's one line msg.payload = { temperature: msg.payload}; In a change node I can do it like this, which is very inelegant No do…

---

## [Remove unused nodes from contrib with settings file](https://discourse.nodered.org/t/remove-unused-nodes-from-contrib-with-settings-file/66317)

<div class="topic-metadata">

**Author:** [@alevher](https://discourse.nodered.org/u/alevher)\
**Replies:** 1\
**Last updated:** [11 August 2022 11:56 UTC](https://discourse.nodered.org/t/remove-unused-nodes-from-contrib-with-settings-file/66317 "2022-08-11T11:56:54Z")

</div>

Hello Everyone, i discovered how to disable and not show some default nodes via settings file using : nodesExcludes: I downloaded a contrib via npm but i want to show only some nodes of the contribution and writing the…

---

## [Error install dashboard](https://discourse.nodered.org/t/error-install-dashboard/66172)

<div class="topic-metadata">

**Author:** [@gideon](https://discourse.nodered.org/u/gideon)\
**Replies:** 12\
**Last updated:** [11 August 2022 11:08 UTC](https://discourse.nodered.org/t/error-install-dashboard/66172 "2022-08-11T11:08:55Z")

</div>

Hi all I am trying to install dashboard from Node Red on raspberry pi 4 and I get the message gideon@raspberrypi:~ $ npm i node-red-dashboard npm ERR! code FETCH\_ERROR npm ERR! errno FETCH\_ERROR npm ERR! invalid j…

---

## [Node object is not a node-red Node error](https://discourse.nodered.org/t/node-object-is-not-a-node-red-node-error/66262)

<div class="topic-metadata">

**Author:** [@Maruthi](https://discourse.nodered.org/u/Maruthi)\
**Replies:** 14\
**Last updated:** [11 August 2022 09:45 UTC](https://discourse.nodered.org/t/node-object-is-not-a-node-red-node-error/66262 "2022-08-11T09:45:44Z")

</div>

I'm getting this error every minute but all Flows are working correctly, The same flows was working fine few days back without this error, now without any changes to flow getting this error Info: Node object is not a n…

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

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