# General

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

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

**Page:** 638

---

## [File lister: problem "File could not be accessed"](https://discourse.nodered.org/t/file-lister-problem-file-could-not-be-accessed/37579)

<div class="topic-metadata">

**Author:** [@rg24git](https://discourse.nodered.org/u/rg24git)\
**Replies:** 2\
**Last updated:** [16 December 2020 16:48 UTC](https://discourse.nodered.org/t/file-lister-problem-file-could-not-be-accessed/37579 "2020-12-16T16:48:02Z")

</div>

I have Synology with hassio and node-red I work in administrator account I search to use File Lister. into node-red No succes :frowning: I have message "File could not be accessed" \[{"id":"a99e9181.01db6","type"…

---

## [Jsonata & Multiple context stores](https://discourse.nodered.org/t/jsonata-multiple-context-stores/37582)

<div class="topic-metadata">

**Author:** [@lowlow](https://discourse.nodered.org/u/lowlow)\
**Replies:** 2\
**Last updated:** [16 December 2020 14:52 UTC](https://discourse.nodered.org/t/jsonata-multiple-context-stores/37582 "2020-12-16T14:52:44Z")

</div>

Hello, As NR allows to define multiple context stores, is there a way to select directly one of these stores with the "$globalContext()" function in a JSONata expression ? Or should I use a change node to retrieve the…

---

## [Best way to concatenate content over time?](https://discourse.nodered.org/t/best-way-to-concatenate-content-over-time/37574)

<div class="topic-metadata">

**Author:** [@bltDefender](https://discourse.nodered.org/u/bltDefender)\
**Replies:** 3\
**Last updated:** [16 December 2020 13:45 UTC](https://discourse.nodered.org/t/best-way-to-concatenate-content-over-time/37574 "2020-12-16T13:45:32Z")

</div>

I do have a process consisting of several functions and api calls which is looped until all api responses have been processed. every time a loop cycle ends, there is some content being generated (f.e. "result of loop 1",…

---

## [Info regarding check multiples switch's status](https://discourse.nodered.org/t/info-regarding-check-multiples-switchs-status/36940)

<div class="topic-metadata">

**Author:** [@elmarsiglia](https://discourse.nodered.org/u/elmarsiglia)\
**Replies:** 5\
**Last updated:** [16 December 2020 13:39 UTC](https://discourse.nodered.org/t/info-regarding-check-multiples-switchs-status/36940 "2020-12-16T13:39:27Z")

</div>

Hi guys, i am trying to build a node (if all of them off do something) and i could find a way to check in only one "events-state" multiple switches. i tried from homeassisant to aggregate in a group but from nodered i co…

---

## [How to send Acknowledgement to device](https://discourse.nodered.org/t/how-to-send-acknowledgement-to-device/37520)

<div class="topic-metadata">

**Author:** [@Ptwtech](https://discourse.nodered.org/u/Ptwtech)\
**Replies:** 8\
**Last updated:** [16 December 2020 13:37 UTC](https://discourse.nodered.org/t/how-to-send-acknowledgement-to-device/37520 "2020-12-16T13:37:29Z")

</div>

Hello , I want to send acknowledgement to device in hex format. I'm doing this.please help me how to send acknowledgement in hex format Thanks var data; if(msg.payload.length == 17){ data= stringToHex('01'); }else…

---

## [Simple Server for ESP8266 firmware only works once, then needs 'redeploying'](https://discourse.nodered.org/t/simple-server-for-esp8266-firmware-only-works-once-then-needs-redeploying/37572)

<div class="topic-metadata">

**Author:** [@PedanticPete](https://discourse.nodered.org/u/PedanticPete)\
**Replies:** 0\
**Last updated:** [16 December 2020 11:06 UTC](https://discourse.nodered.org/t/simple-server-for-esp8266-firmware-only-works-once-then-needs-redeploying/37572 "2020-12-16T11:06:31Z")

</div>

Hi, I am using a very simple Node-Red server to server a .bin file to an ESP8266 that requests it using the ESPhttpUpdate library. "http in" node + "file edit in" node + "http out" node \[{"id":"7538e99c.ff6858","type"…

---

## [How to add Css file path to html file of custom node](https://discourse.nodered.org/t/how-to-add-css-file-path-to-html-file-of-custom-node/20096)

<div class="topic-metadata">

**Author:** [@kiran](https://discourse.nodered.org/u/kiran)\
**Replies:** 4\
**Last updated:** [16 December 2020 10:00 UTC](https://discourse.nodered.org/t/how-to-add-css-file-path-to-html-file-of-custom-node/20096 "2020-12-16T10:00:29Z")

</div>

I created custom node, i want to add CSS style like @-webkit-keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} } to element in html. how to do that

---

## [Telegram bot chat - add a friend](https://discourse.nodered.org/t/telegram-bot-chat-add-a-friend/37146)

<div class="topic-metadata">

**Author:** [@loeten](https://discourse.nodered.org/u/loeten)\
**Replies:** 9\
**Last updated:** [16 December 2020 09:54 UTC](https://discourse.nodered.org/t/telegram-bot-chat-add-a-friend/37146 "2020-12-16T09:54:53Z")

</div>

Hi there, I sucessfully used node-red-contrib-telegrambot with a bot created via BotFather, to send and receive messages. So usually I send texts that are interpreted as commands and I generate answers using the initial …

---

## [How to merge request and response data](https://discourse.nodered.org/t/how-to-merge-request-and-response-data/37545)

<div class="topic-metadata">

**Author:** [@bltDefender](https://discourse.nodered.org/u/bltDefender)\
**Replies:** 3\
**Last updated:** [16 December 2020 09:36 UTC](https://discourse.nodered.org/t/how-to-merge-request-and-response-data/37545 "2020-12-16T09:36:54Z")

</div>

Hi, I do call an external rest api receiving an array of objects as response. With a function node I loop over that response filtering out some data (request parameter) I need to use to call an other rest api. The respon…

---

## [Modbus TCP Server setup](https://discourse.nodered.org/t/modbus-tcp-server-setup/12216)

<div class="topic-metadata">

**Author:** [@jlr](https://discourse.nodered.org/u/jlr)\
**Replies:** 17\
**Last updated:** [16 December 2020 09:11 UTC](https://discourse.nodered.org/t/modbus-tcp-server-setup/12216 "2020-12-16T09:11:40Z")

</div>

hello I am a newbie on node-red. I want to setup a modbus TCP SERVER on my rasp PI which would have a certain IP address and aswer to requests coming from a remote Modbus TCP client (etiher coils or holding register) I…

---

## [Msg conversion issues](https://discourse.nodered.org/t/msg-conversion-issues/37544)

<div class="topic-metadata">

**Author:** [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Replies:** 5\
**Last updated:** [16 December 2020 07:39 UTC](https://discourse.nodered.org/t/msg-conversion-issues/37544 "2020-12-16T07:39:26Z")

</div>

Good evening I have a function node that manipulates text and outputs in the following variables. var out = {payload: \[i\] + StrIO\[i\] + Temp\[i\] }; node.send({payload:out}); I am trying to feed this value into a chang…

---

## [File Browser Node in Node Red](https://discourse.nodered.org/t/file-browser-node-in-node-red/37556)

<div class="topic-metadata">

**Author:** [@raghavgurbaxani](https://discourse.nodered.org/u/raghavgurbaxani)\
**Replies:** 1\
**Last updated:** [16 December 2020 00:32 UTC](https://discourse.nodered.org/t/file-browser-node-in-node-red/37556 "2020-12-16T00:32:28Z")

</div>

Hi all I am trying to create a small app and need a file browsing node in my application. The node should be able to browse through directories on the machine and allow selection of specific files / folders. Does any on…

---

## [Checkbox on html page](https://discourse.nodered.org/t/checkbox-on-html-page/37485)

<div class="topic-metadata">

**Author:** [@bgengine](https://discourse.nodered.org/u/bgengine)\
**Replies:** 7\
**Last updated:** [15 December 2020 21:08 UTC](https://discourse.nodered.org/t/checkbox-on-html-page/37485 "2020-12-15T21:08:39Z")

</div>

Hi, I understand there is a ready made dashboard on node red, but to start - I don't want to use this, I'd like to my own simple html page , with a checkbox. Below is my json: I can see the html loads and my checkbo…

---

## [Colorize log output using Chalk](https://discourse.nodered.org/t/colorize-log-output-using-chalk/37497)

<div class="topic-metadata">

**Author:** [@jayheavner](https://discourse.nodered.org/u/jayheavner)\
**Replies:** 13\
**Last updated:** [15 December 2020 21:04 UTC](https://discourse.nodered.org/t/colorize-log-output-using-chalk/37497 "2020-12-15T21:04:20Z")

</div>

I've added chalk npm install chalk I've added it to functionGlobalContext functionGlobalContext: { chalk: require('chalk') }, I've restarted node-red. I've added it to a function var chalk = global.get('cha…

---

## [Amazon MQ / active mqtt - MQTTS without client certificate?](https://discourse.nodered.org/t/amazon-mq-active-mqtt-mqtts-without-client-certificate/37549)

<div class="topic-metadata">

**Author:** [@ashish-y](https://discourse.nodered.org/u/ashish-y)\
**Replies:** 0\
**Last updated:** [15 December 2020 20:54 UTC](https://discourse.nodered.org/t/amazon-mq-active-mqtt-mqtts-without-client-certificate/37549 "2020-12-15T20:54:36Z")

</div>

Hi, I'm using amazon MQ as an MQTT broker with my node-red application. Amazon MQ doesn't support Client Certificate Authentication and uses credentials stored in the LDAP server for tls. Questions: What are the imp…

---

## [MQTT Payload filter?](https://discourse.nodered.org/t/mqtt-payload-filter/37457)

<div class="topic-metadata">

**Author:** [@Steinspiel](https://discourse.nodered.org/u/Steinspiel)\
**Replies:** 8\
**Last updated:** [15 December 2020 20:53 UTC](https://discourse.nodered.org/t/mqtt-payload-filter/37457 "2020-12-15T20:53:41Z")

</div>

My "mqtt in" node receives the following data as "a parsed JSON object" {"topic":"ergebnis","payload":{"00:ff:9d:4b:20:4a":-92,"1a:a8:bb:d2:10:52":-89,"42:2f:c7:89:75:07":-74,"47:73:dd:2c:e7:d0":-89,"f4:fa:fd:7b:b8:dc":…

---

## [Node-Red keeps stopping](https://discourse.nodered.org/t/node-red-keeps-stopping/37537)

<div class="topic-metadata">

**Author:** [@Control](https://discourse.nodered.org/u/Control)\
**Replies:** 4\
**Last updated:** [15 December 2020 16:58 UTC](https://discourse.nodered.org/t/node-red-keeps-stopping/37537 "2020-12-15T16:58:36Z")

</div>

Hi... I have a flow in node red that keeps stopping. I always have to open the "node.js command prompt" and run the "node-red" command because it stops at least once every 1 or 2 days. Does anyone know what could possib…

---

## [Sort node - I'm stuck!](https://discourse.nodered.org/t/sort-node-im-stuck/37530)

<div class="topic-metadata">

**Author:** [@FatPilot](https://discourse.nodered.org/u/FatPilot)\
**Replies:** 3\
**Last updated:** [15 December 2020 15:39 UTC](https://discourse.nodered.org/t/sort-node-im-stuck/37530 "2020-12-15T15:39:27Z")

</div>

Hi everyone, It's me again! Why won't this work? Using the sort node, I'm trying to sort the array on distance for presentation in a list. Thanks in advance. Cheers. Paul.

---

## [Error when installing node-red-node-serialport on windows](https://discourse.nodered.org/t/error-when-installing-node-red-node-serialport-on-windows/37532)

<div class="topic-metadata">

**Author:** [@szewen0101](https://discourse.nodered.org/u/szewen0101)\
**Replies:** 5\
**Last updated:** [15 December 2020 14:40 UTC](https://discourse.nodered.org/t/error-when-installing-node-red-node-serialport-on-windows/37532 "2020-12-15T14:40:32Z")

</div>

npm i node-red-node-serialport I am using windows to run Node Red. node --version v14.15.1 npm --version 6.14.9 The following error was thrown find VS configure error stack

---

## [Node-Red and Home Assistant Core](https://discourse.nodered.org/t/node-red-and-home-assistant-core/37534)

<div class="topic-metadata">

**Author:** [@Topolynx](https://discourse.nodered.org/u/Topolynx)\
**Replies:** 0\
**Last updated:** [15 December 2020 14:02 UTC](https://discourse.nodered.org/t/node-red-and-home-assistant-core/37534 "2020-12-15T14:02:35Z")

</div>

Hi! I would like to know if I've correctly set Node-Red to communicate with Home Assistant Core. I have seen that almost all the tutorials refer to hassio, while I've installed Home Assistant Core and Node-Red in a full…

---

## [How to play audio file in browser / on Windows PC?](https://discourse.nodered.org/t/how-to-play-audio-file-in-browser-on-windows-pc/37516)

<div class="topic-metadata">

**Author:** [@MeowMilk](https://discourse.nodered.org/u/MeowMilk)\
**Replies:** 1\
**Last updated:** [15 December 2020 13:20 UTC](https://discourse.nodered.org/t/how-to-play-audio-file-in-browser-on-windows-pc/37516 "2020-12-15T13:20:47Z")

</div>

Hello, I'm pretty new to node-red, so maybe the solution is obvious, but I can't figure it out. I was hoping to be able to trigger a sound on my computer (doesn't matter if it's in my browser or through other means) usin…

---

## [how to add user authentification to node red from a webpage that run on the same server](https://discourse.nodered.org/t/how-to-add-user-authentification-to-node-red-from-a-webpage-that-run-on-the-same-server/37526)

<div class="topic-metadata">

**Author:** [@zakaria.zouaoui](https://discourse.nodered.org/u/zakaria.zouaoui)\
**Replies:** 0\
**Last updated:** [15 December 2020 11:27 UTC](https://discourse.nodered.org/t/how-to-add-user-authentification-to-node-red-from-a-webpage-that-run-on-the-same-server/37526 "2020-12-15T11:27:41Z")

</div>

I have a server and i have node-red running on it, i know how to create user authentification by editing setting.js file but what i want to do is that i want to be able to create other users from a webpage that is runnin…

---

## [Command fails in "exec" but works in terminal](https://discourse.nodered.org/t/command-fails-in-exec-but-works-in-terminal/37316)

<div class="topic-metadata">

**Author:** [@JohnGC](https://discourse.nodered.org/u/JohnGC)\
**Replies:** 6\
**Last updated:** [15 December 2020 09:49 UTC](https://discourse.nodered.org/t/command-fails-in-exec-but-works-in-terminal/37316 "2020-12-15T09:49:29Z")

</div>

Hello, I'm new to node-red and the Raspberry Pi that I'm running it on. I have a flow that is designed to play an audio file using VLC. It worked until I needed to reinstall RPi due to a faulty SD card. I've created a …

---

## [Setting up flow for triggering lights when motion detected](https://discourse.nodered.org/t/setting-up-flow-for-triggering-lights-when-motion-detected/37342)

<div class="topic-metadata">

**Author:** [@pimmen85](https://discourse.nodered.org/u/pimmen85)\
**Replies:** 19\
**Last updated:** [15 December 2020 10:09 UTC](https://discourse.nodered.org/t/setting-up-flow-for-triggering-lights-when-motion-detected/37342 "2020-12-15T10:09:56Z")

</div>

I'm working on a flow that triggers a light when motion is detected, I got everything working except the most important part, when continuous motion is detected, the light still goes out, and later on when detecting moti…

---

## [Http request POST unauthorized](https://discourse.nodered.org/t/http-request-post-unauthorized/37476)

<div class="topic-metadata">

**Author:** [@solick](https://discourse.nodered.org/u/solick)\
**Replies:** 1\
**Last updated:** [15 December 2020 10:09 UTC](https://discourse.nodered.org/t/http-request-post-unauthorized/37476 "2020-12-15T10:09:23Z")

</div>

Hi, i have two NR instances, one hosts a HTTP IN node which awaits POST messages on a specific url (/device/xxx) and another instance where i want to send json with the http request node. The HTTP IN node is working i t…

---

## [Strange issue with a node-red flow - saving state/context working - but adding a trigger causes issues](https://discourse.nodered.org/t/strange-issue-with-a-node-red-flow-saving-state-context-working-but-adding-a-trigger-causes-issues/37499)

<div class="topic-metadata">

**Author:** [@robjones](https://discourse.nodered.org/u/robjones)\
**Replies:** 1\
**Last updated:** [15 December 2020 09:26 UTC](https://discourse.nodered.org/t/strange-issue-with-a-node-red-flow-saving-state-context-working-but-adding-a-trigger-causes-issues/37499 "2020-12-15T09:26:33Z")

</div>

I have built a flow, which in essense, flashes my philips hue lights and returns them back to the previous state, or if there turned on, they set back to white before turning off. Now if i do a timestamp to test the flo…

---

## [Pulseaudio and musicplayer](https://discourse.nodered.org/t/pulseaudio-and-musicplayer/37294)

<div class="topic-metadata">

**Author:** [@Domeus](https://discourse.nodered.org/u/Domeus)\
**Replies:** 5\
**Last updated:** [15 December 2020 06:11 UTC](https://discourse.nodered.org/t/pulseaudio-and-musicplayer/37294 "2020-12-15T06:11:11Z")

</div>

Hello. I try to get a song being played by a musicplayer with console input. For audio output i use Pulseaudio to send the song to a dlna loudspeaker. For example: "cvlc /mount/music/song.mp3" This works perfect as lo…

---

## [Timelinepicker for Node-Red in Dashboard?](https://discourse.nodered.org/t/timelinepicker-for-node-red-in-dashboard/36910)

<div class="topic-metadata">

**Author:** [@JSONata](https://discourse.nodered.org/u/JSONata)\
**Replies:** 7\
**Last updated:** [15 December 2020 00:55 UTC](https://discourse.nodered.org/t/timelinepicker-for-node-red-in-dashboard/36910 "2020-12-15T00:55:00Z")

</div>

On Openhab you can create a timeline picker. You simply click into a timeline, hold the mousebutton and drag where/when you want a device to be enabled. Also AVMs Fritzbox supports a similiar feature I now there …

---

## [Local Host Flow](https://discourse.nodered.org/t/local-host-flow/37500)

<div class="topic-metadata">

**Author:** [@ktm](https://discourse.nodered.org/u/ktm)\
**Replies:** 2\
**Last updated:** [14 December 2020 21:41 UTC](https://discourse.nodered.org/t/local-host-flow/37500 "2020-12-14T21:41:15Z")

</div>

Good Afternoon I'm at the first experience with node red and after any test with communication beetween ModBus TCP and PLC , now (and i don't know why)every time when i try to start the local host my flow , any time i t…

---

## [Maths problem with function node](https://discourse.nodered.org/t/maths-problem-with-function-node/37503)

<div class="topic-metadata">

**Author:** [@rich\_node](https://discourse.nodered.org/u/rich_node)\
**Replies:** 2\
**Last updated:** [14 December 2020 21:33 UTC](https://discourse.nodered.org/t/maths-problem-with-function-node/37503 "2020-12-14T21:33:27Z")

</div>

I'm having problems with the function node which is not subtracting correctly, ie the below code gives the result of: 2.1899999999999977 msg.payload=26.54-24.35; return msg; Any help appreciated. This is the flow: \[…

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

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