# General

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

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

**Page:** 765

---

## [Compare sun events to time](https://discourse.nodered.org/t/compare-sun-events-to-time/24963)

<div class="topic-metadata">

**Author:** [@tompijls](https://discourse.nodered.org/u/tompijls)\
**Replies:** 0\
**Last updated:** [16 April 2020 17:47 UTC](https://discourse.nodered.org/t/compare-sun-events-to-time/24963 "2020-04-16T17:47:49Z")

</div>

Hi, I'm using node red with home assistant to switch on my home lights when I'm not at home. I was using a time range node, set to Start Time 7:00 and End Time SunriseEnd. This worked pretty well until recently, when …

---

## [Can't install node-red-node-sqlite](https://discourse.nodered.org/t/cant-install-node-red-node-sqlite/24955)

<div class="topic-metadata">

**Author:** [@ellerre](https://discourse.nodered.org/u/ellerre)\
**Replies:** 2\
**Last updated:** [16 April 2020 17:17 UTC](https://discourse.nodered.org/t/cant-install-node-red-node-sqlite/24955 "2020-04-16T17:17:38Z")

</div>

Hello everyone! Due a my error, I reinstalled Armbian, Node Red etc... on Armbian Buster with Linux 4.14.174-odroidxu4 Everything worked, but ... (there is always a "but :)) I can't install "node-red-node-sqlite" from…

---

## [Confused between the "credentials" in APP/settings versus APP/credentials](https://discourse.nodered.org/t/confused-between-the-credentials-in-app-settings-versus-app-credentials/24945)

<div class="topic-metadata">

**Author:** [@etawyy](https://discourse.nodered.org/u/etawyy)\
**Replies:** 1\
**Last updated:** [16 April 2020 17:15 UTC](https://discourse.nodered.org/t/confused-between-the-credentials-in-app-settings-versus-app-credentials/24945 "2020-04-16T17:15:33Z")

</div>

I'm running nodered in bluemix and am putting that system in production. In my cloudant storage (the "nodered" db) I see 2 credentials: in APPNAME/credential: {"credentials":{"$":"XXXXX"}} in APPNAME/settings: { "sett…

---

## [SDS011 contrib, how to set the working period](https://discourse.nodered.org/t/sds011-contrib-how-to-set-the-working-period/24624)

<div class="topic-metadata">

**Author:** [@calcioscacchi](https://discourse.nodered.org/u/calcioscacchi)\
**Replies:** 13\
**Last updated:** [16 April 2020 14:58 UTC](https://discourse.nodered.org/t/sds011-contrib-how-to-set-the-working-period/24624 "2020-04-16T14:58:07Z")

</div>

Hi everyone, I'm a newbie with node red. Actually, i'i'm trying to configure my SDS011 sensor node in my rapsberry pi3, you can find it here: https://flows.nodered.org/node/node-red-contrib-sds011 The sensor works fin…

---

## [Create a function for delete and copy files](https://discourse.nodered.org/t/create-a-function-for-delete-and-copy-files/24942)

<div class="topic-metadata">

**Author:** [@PaulL](https://discourse.nodered.org/u/PaulL)\
**Replies:** 5\
**Last updated:** [16 April 2020 14:14 UTC](https://discourse.nodered.org/t/create-a-function-for-delete-and-copy-files/24942 "2020-04-16T14:14:30Z")

</div>

Hi, I need to create a function to delete files if exists and after deleting I need to copy one file to another... I start to write import java.io.File; // Import the File class public class DeleteFile; public stat…

---

## [Node Red devices not responding in Google assistant](https://discourse.nodered.org/t/node-red-devices-not-responding-in-google-assistant/24939)

<div class="topic-metadata">

**Author:** [@gaika123](https://discourse.nodered.org/u/gaika123)\
**Replies:** 0\
**Last updated:** [16 April 2020 11:19 UTC](https://discourse.nodered.org/t/node-red-devices-not-responding-in-google-assistant/24939 "2020-04-16T11:19:20Z")

</div>

Hi guys. I'm using the Google assistant smart speaker to control all my smart devices over Node Red. I've registered an account with red.cb-net.co.uk and linked the account to my Google assistant. I was then able to con…

---

## [Context is reset to default when input is 0](https://discourse.nodered.org/t/context-is-reset-to-default-when-input-is-0/24914)

<div class="topic-metadata">

**Author:** [@Assi](https://discourse.nodered.org/u/Assi)\
**Replies:** 2\
**Last updated:** [16 April 2020 11:11 UTC](https://discourse.nodered.org/t/context-is-reset-to-default-when-input-is-0/24914 "2020-04-16T11:11:14Z")

</div>

Im testing my function with a inject node of topic dim with payload values of 0 and 1. the code is like: node.warn("xx context.dimpre:" + context.dim); context.dim = context.dim || 100.0; node.warn("xx context.dimpo…

---

## [Msg.params from ui\_control node](https://discourse.nodered.org/t/msg-params-from-ui-control-node/24907)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 4\
**Last updated:** [16 April 2020 10:32 UTC](https://discourse.nodered.org/t/msg-params-from-ui-control-node/24907 "2020-04-16T10:32:08Z")

</div>

I notice that if I deploy a ui\_control node and open the dashboard using a url such as http://localhost:1880/ui/#!/0?socketid=&fred=hello&jim=42 that I get two messages from the ui\_control node. The first is the conne…

---

## [Serial port install problem](https://discourse.nodered.org/t/serial-port-install-problem/24859)

<div class="topic-metadata">

**Author:** [@arpit8851](https://discourse.nodered.org/u/arpit8851)\
**Replies:** 7\
**Last updated:** [16 April 2020 08:40 UTC](https://discourse.nodered.org/t/serial-port-install-problem/24859 "2020-04-16T08:40:27Z")

</div>

2020-04-15T08:59:58.980Z Install : node-red-node-serialport 0.10.1 2020-04-15T08:59:59.018Z npm.cmd install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-node-serialport@0.10.1 2020-04…

---

## [Node.js: Server-side JavaScript has stopped working | node-red](https://discourse.nodered.org/t/node-js-server-side-javascript-has-stopped-working-node-red/24882)

<div class="topic-metadata">

**Author:** [@sahebdatta](https://discourse.nodered.org/u/sahebdatta)\
**Replies:** 5\
**Last updated:** [16 April 2020 07:38 UTC](https://discourse.nodered.org/t/node-js-server-side-javascript-has-stopped-working-node-red/24882 "2020-04-16T07:38:15Z")

</div>

Hello everyone, I'm trying to run node-red on windows 10. whenever I try to fire-up node-red from cmd, I get a pop-up with the following error, "Node.js: Server-side JavaScript has stopped working". It wasn't the same a…

---

## [UI builder Vue CLI](https://discourse.nodered.org/t/ui-builder-vue-cli/24783)

<div class="topic-metadata">

**Author:** [@Beefy\_carrot](https://discourse.nodered.org/u/Beefy_carrot)\
**Replies:** 2\
**Last updated:** [16 April 2020 07:33 UTC](https://discourse.nodered.org/t/ui-builder-vue-cli/24783 "2020-04-16T07:33:27Z")

</div>

Does anyone have experience adding a Vue Cli structure to uibuilder, or do i need to use the traditonal way ?

---

## [Npm ERR! code ELOCKVERIFY](https://discourse.nodered.org/t/npm-err-code-elockverify/24873)

<div class="topic-metadata">

**Author:** [@StrongTown](https://discourse.nodered.org/u/StrongTown)\
**Replies:** 21\
**Last updated:** [15 April 2020 22:41 UTC](https://discourse.nodered.org/t/npm-err-code-elockverify/24873 "2020-04-15T22:41:24Z")

</div>

When I try to run Node Red it gets to a point and the log reports "Killed" and loading of Node Red stops. I was modifying code however I was not doing anything so major as to cause this problem (I was adjusting colors an…

---

## [Persist user/password info for nodes](https://discourse.nodered.org/t/persist-user-password-info-for-nodes/24874)

<div class="topic-metadata">

**Author:** [@louison](https://discourse.nodered.org/u/louison)\
**Replies:** 8\
**Last updated:** [15 April 2020 19:47 UTC](https://discourse.nodered.org/t/persist-user-password-info-for-nodes/24874 "2020-04-15T19:47:26Z")

</div>

Hello, Specifics nodes need user/pwd informations like MQTT broker for example. If I want to persist informations after nodered restart, I need to put them in flows\_cred.json. It works. If I only fill these informati…

---

## [Auto-destruction function](https://discourse.nodered.org/t/auto-destruction-function/24803)

<div class="topic-metadata">

**Author:** [@lenny1972](https://discourse.nodered.org/u/lenny1972)\
**Replies:** 8\
**Last updated:** [15 April 2020 17:00 UTC](https://discourse.nodered.org/t/auto-destruction-function/24803 "2020-04-15T17:00:07Z")

</div>

Willing to protect my flows running on remote RASP - and without a safe method to protect my MicroSD (even if gluing the MicroSD should be a possible solution) - I'm thinking about implementing a simil "self-distruction"…

---

## [Linking 2 or more instances on a local network](https://discourse.nodered.org/t/linking-2-or-more-instances-on-a-local-network/24879)

<div class="topic-metadata">

**Author:** [@MDAR](https://discourse.nodered.org/u/MDAR)\
**Replies:** 9\
**Last updated:** [15 April 2020 13:50 UTC](https://discourse.nodered.org/t/linking-2-or-more-instances-on-a-local-network/24879 "2020-04-15T13:50:41Z")

</div>

---

## [Communication between node-red servers](https://discourse.nodered.org/t/communication-between-node-red-servers/1727)

<div class="topic-metadata">

**Author:** [@drmacro](https://discourse.nodered.org/u/drmacro)\
**Replies:** 5\
**Last updated:** [22 July 2018 13:41 UTC](https://discourse.nodered.org/t/communication-between-node-red-servers/1727 "2018-07-22T13:41:40Z")

</div>

I plan to have multiple node-red servers running. There will be, most likely, a main server that needs to collect data from flows running on the other servers. Any pointers to reading on setting up such a thing? Or, hi…

---

## [How to write query in using input voice data to comapre with data in database](https://discourse.nodered.org/t/how-to-write-query-in-using-input-voice-data-to-comapre-with-data-in-database/24877)

<div class="topic-metadata">

**Author:** [@lingzhongli](https://discourse.nodered.org/u/lingzhongli)\
**Replies:** 0\
**Last updated:** [15 April 2020 13:29 UTC](https://discourse.nodered.org/t/how-to-write-query-in-using-input-voice-data-to-comapre-with-data-in-database/24877 "2020-04-15T13:29:29Z")

</div>

Hello guys, this is my project "Voice Activated Entrance System" USER database HISTORY database \[{"id":"ee60c3e3.69e03","type":"mysql","z":"98f4cc17.965b","mydb":"7c738c44.e9a364","name":"DB\_MYSQL","x":670,"y":2…

---

## [Unable to read value from object](https://discourse.nodered.org/t/unable-to-read-value-from-object/24867)

<div class="topic-metadata">

**Author:** [@Birdy](https://discourse.nodered.org/u/Birdy)\
**Replies:** 1\
**Last updated:** [15 April 2020 12:14 UTC](https://discourse.nodered.org/t/unable-to-read-value-from-object/24867 "2020-04-15T12:14:56Z")

</div>

Hi, I have this specific JSON-Object: 15.4.2020, 13:46:47node: 8ab35232.361e7 tele/TB01\_Orgon/SENSOR : msg : Object object topic: "tele/TB01\_Orgon/SENSOR" payload: object Time: "2020-04-15T12:46:47" SDS0X1: object PM2.…

---

## [Combine Payloads into an object](https://discourse.nodered.org/t/combine-payloads-into-an-object/24865)

<div class="topic-metadata">

**Author:** [@Chaos](https://discourse.nodered.org/u/Chaos)\
**Replies:** 1\
**Last updated:** [15 April 2020 11:22 UTC](https://discourse.nodered.org/t/combine-payloads-into-an-object/24865 "2020-04-15T11:22:29Z")

</div>

I am trying to combine two output topic, payload pairs into an object made up of the payloads. the two msg's come out of node-red-ramp-thermostat as topic = current / payload = value & topic = target / payload = value …

---

## [Logic for ESP live status on google home](https://discourse.nodered.org/t/logic-for-esp-live-status-on-google-home/24860)

<div class="topic-metadata">

**Author:** [@srinidhichiru](https://discourse.nodered.org/u/srinidhichiru)\
**Replies:** 0\
**Last updated:** [15 April 2020 09:08 UTC](https://discourse.nodered.org/t/logic-for-esp-live-status-on-google-home/24860 "2020-04-15T09:08:02Z")

</div>

Hello Everyone, Iam a new bee to Node-red forums and correct me if iam wrong. first of all iam very glad i find NODE RED to work on my hobbie projects, iam not soo familiar with java language but this made it soo simpl…

---

## [Msg in a file, thanks :)](https://discourse.nodered.org/t/msg-in-a-file-thanks/24855)

<div class="topic-metadata">

**Author:** [@Oxbow](https://discourse.nodered.org/u/Oxbow)\
**Replies:** 1\
**Last updated:** [15 April 2020 08:56 UTC](https://discourse.nodered.org/t/msg-in-a-file-thanks/24855 "2020-04-15T08:56:23Z")

</div>

Hello, I have datas from sensor (temperature, lignt, humidity, etc.) that are received in a node-red function with this code : var split = msg.payload.split("\\r"); var Humidity = parseInt(split\[1\].slice(12, split\[1\].…

---

## [Using slider to change rate limit](https://discourse.nodered.org/t/using-slider-to-change-rate-limit/24854)

<div class="topic-metadata">

**Author:** [@Torix](https://discourse.nodered.org/u/Torix)\
**Replies:** 0\
**Last updated:** [15 April 2020 08:23 UTC](https://discourse.nodered.org/t/using-slider-to-change-rate-limit/24854 "2020-04-15T08:23:10Z")

</div>

Hi, I'm pretty new here and I have a little project going. I need to change the rate of messages passing through the delay node using a slider. The point of this flow is that the user can start to log values using the…

---

## [Accessing Node-Red on RasPi Standalone Network](https://discourse.nodered.org/t/accessing-node-red-on-raspi-standalone-network/24650)

<div class="topic-metadata">

**Author:** [@fbilo](https://discourse.nodered.org/u/fbilo)\
**Replies:** 6\
**Last updated:** [15 April 2020 07:33 UTC](https://discourse.nodered.org/t/accessing-node-red-on-raspi-standalone-network/24650 "2020-04-15T07:33:04Z")

</div>

Hi, I'm a beginner working on a Raspberry PI 3 Node-Red project. I first connected the Raspberry PI on my home Wifi and created a flow and UI by connecting to node-red over the network using the web-browser on my laptop …

---

## [Strange variable values within a function](https://discourse.nodered.org/t/strange-variable-values-within-a-function/24832)

<div class="topic-metadata">

**Author:** [@Cyber](https://discourse.nodered.org/u/Cyber)\
**Replies:** 3\
**Last updated:** [15 April 2020 07:24 UTC](https://discourse.nodered.org/t/strange-variable-values-within-a-function/24832 "2020-04-15T07:24:18Z")

</div>

Hi, it's about the variable SpieleraumHZGTime. The function below is the only function where I set it (except one time a day where I reset it to 0). It counts the time where a GPIO of a easyesp node, which is controll…

---

## [Modbus ON-Line / OFF-line status](https://discourse.nodered.org/t/modbus-on-line-off-line-status/24813)

<div class="topic-metadata">

**Author:** [@farcry](https://discourse.nodered.org/u/farcry)\
**Replies:** 1\
**Last updated:** [14 April 2020 14:38 UTC](https://discourse.nodered.org/t/modbus-on-line-off-line-status/24813 "2020-04-14T14:38:05Z")

</div>

Hello. I would like to monitor the OFFLINE status of Modbus device. For now I'm using SERIAL comunication. If the device is OFFLINE I would lit RED LIGHT. If it is ONLINE the light would be GREEN. I tried with STATU…

---

## [Start folder location in fs-file-lister node](https://discourse.nodered.org/t/start-folder-location-in-fs-file-lister-node/5968)

<div class="topic-metadata">

**Author:** [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Replies:** 1\
**Last updated:** [19 December 2018 16:02 UTC](https://discourse.nodered.org/t/start-folder-location-in-fs-file-lister-node/5968 "2018-12-19T16:02:13Z")

</div>

I'am working on displaying files in my dashboard. So, is there anyway to add the location start folder dynamically. for exemple, can'i set the a msg.foldername then send it to fs-file-lister node?? i have read the node…

---

## [How to display an image on Node red dashboard using template node](https://discourse.nodered.org/t/how-to-display-an-image-on-node-red-dashboard-using-template-node/24734)

<div class="topic-metadata">

**Author:** [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)\
**Replies:** 6\
**Last updated:** [15 April 2020 02:37 UTC](https://discourse.nodered.org/t/how-to-display-an-image-on-node-red-dashboard-using-template-node/24734 "2020-04-15T02:37:14Z")

</div>

I just wanna display a local path image on node red dashboard using template node. nothing worked so far. any help would be highly appreciated! thanks

---

## [Raspberry PI conexión con node-red utilizando protocolo Coap](https://discourse.nodered.org/t/raspberry-pi-conexion-con-node-red-utilizando-protocolo-coap/24837)

<div class="topic-metadata">

**Author:** [@pablocatota](https://discourse.nodered.org/u/pablocatota)\
**Replies:** 0\
**Last updated:** [14 April 2020 22:11 UTC](https://discourse.nodered.org/t/raspberry-pi-conexion-con-node-red-utilizando-protocolo-coap/24837 "2020-04-14T22:11:32Z")

</div>

Hola estoy desarrollando un proyecto, soy nuevo utilizando node-red y quiero que me ayuden con información de como conectar utilizando protocolo coap, node-red y Raspebbry PI, luego a la nube de IMB.

---

## [Compare Numbers](https://discourse.nodered.org/t/compare-numbers/24825)

<div class="topic-metadata">

**Author:** [@SavageSkull](https://discourse.nodered.org/u/SavageSkull)\
**Replies:** 3\
**Last updated:** [14 April 2020 20:27 UTC](https://discourse.nodered.org/t/compare-numbers/24825 "2020-04-14T20:27:46Z")

</div>

Hi there, i am new to Node Red and most of programming. Searching Google and the forum didn't help me at all, almost because english is not my native language and i dont understand most of the subjects. My very little…

---

## [How to detect empty string in a structure](https://discourse.nodered.org/t/how-to-detect-empty-string-in-a-structure/24826)

<div class="topic-metadata">

**Author:** [@monkeyjacob17](https://discourse.nodered.org/u/monkeyjacob17)\
**Replies:** 1\
**Last updated:** [14 April 2020 17:41 UTC](https://discourse.nodered.org/t/how-to-detect-empty-string-in-a-structure/24826 "2020-04-14T17:41:44Z")

</div>

Hello, I'm getting data from a PLC and I get a strucutre like below : {"signal":"MsgAppro\_UK28","path":"DB58,STRING134..63","error":0,"value":\[""\]} With the function "Switch", I test with the "Empty" or "Not Empty" co…

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

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