# General

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

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

**Page:** 337

---

## [Value for modbus write](https://discourse.nodered.org/t/value-for-modbus-write/66374)

<div class="topic-metadata">

**Author:** [@Tobbbbe18](https://discourse.nodered.org/u/Tobbbbe18)\
**Replies:** 7\
**Last updated:** [14 August 2022 04:58 UTC](https://discourse.nodered.org/t/value-for-modbus-write/66374 "2022-08-14T04:58:08Z")

</div>

I try to read electricity prices, and pass on to the heating system. Got stuck a bit now. Have managed to get the modbus communication to work and read home the price from the electricity company. not quite sure how to…

---

## [New date() bug?](https://discourse.nodered.org/t/new-date-bug/66149)

<div class="topic-metadata">

**Author:** [@Draax](https://discourse.nodered.org/u/Draax)\
**Replies:** 7\
**Last updated:** [13 August 2022 20:18 UTC](https://discourse.nodered.org/t/new-date-bug/66149 "2022-08-13T20:18:23Z")

</div>

Hi! Im very new to Node-Red and are trying to create a function. My code looks like this: let startDate = new Date(2022,8,7,0,0,0,0); node.warn(\["your\_variable=", startDate\]); the debug log output is this: 2022-09-…

---

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

---

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

---

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

---

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

---

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

---

## [Best options to autorun a flow on RPi?](https://discourse.nodered.org/t/best-options-to-autorun-a-flow-on-rpi/66272)

<div class="topic-metadata">

**Author:** [@EaB11](https://discourse.nodered.org/u/EaB11)\
**Replies:** 5\
**Last updated:** [11 August 2022 09:19 UTC](https://discourse.nodered.org/t/best-options-to-autorun-a-flow-on-rpi/66272 "2022-08-11T09:19:02Z")

</div>

is there an efficient method to make a flow run on RPi immediately from bootup ? ideally without needing a full OS installed ? i was thinking it would be great if there was a utility that could make a RPi boot disk whic…

---

## [Bigtimer challenge](https://discourse.nodered.org/t/bigtimer-challenge/66190)

<div class="topic-metadata">

**Author:** [@cmartens](https://discourse.nodered.org/u/cmartens)\
**Replies:** 22\
**Last updated:** [10 August 2022 22:21 UTC](https://discourse.nodered.org/t/bigtimer-challenge/66190 "2022-08-10T22:21:05Z")

</div>

Hi, I am using Nodered and Bigtimer for my irrigation. Everything is working fine. However I would like to display the date and time of the next run. I was hoping that this could be calculated based on the combination o…

---

## [kevinGodell's node installation](https://discourse.nodered.org/t/kevingodells-node-installation/66207)

<div class="topic-metadata">

**Author:** [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)\
**Replies:** 2\
**Last updated:** [11 August 2022 08:28 UTC](https://discourse.nodered.org/t/kevingodells-node-installation/66207 "2022-08-11T08:28:41Z")

</div>

@kevinGodell Hi Kevin, I installed last node-red's version V3. I have to install your nodes but searhing I came across with several version and way to do it. Just to be sure to install the last ones, could you please r…

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

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