# General

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

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

**Page:** 359

---

## [Node-red-contrib-huemagic slow](https://discourse.nodered.org/t/node-red-contrib-huemagic-slow/64411)

<div class="topic-metadata">

**Author:** [@madmax](https://discourse.nodered.org/u/madmax)\
**Replies:** 0\
**Last updated:** [27 June 2022 11:06 UTC](https://discourse.nodered.org/t/node-red-contrib-huemagic-slow/64411 "2022-06-27T11:06:40Z")

</div>

Hi! I have a Philips Hue Bridge when I control it via Node Red (switch light on and off) it sometimes takes 5-10 drops before the command is executed. In Node Red very just run command. What could that be? Network is OK…

---

## [Audio out on iOS (update?)](https://discourse.nodered.org/t/audio-out-on-ios-update/64394)

<div class="topic-metadata">

**Author:** [@DanielEcheverri](https://discourse.nodered.org/u/DanielEcheverri)\
**Replies:** 3\
**Last updated:** [27 June 2022 08:51 UTC](https://discourse.nodered.org/t/audio-out-on-ios-update/64394 "2022-06-27T08:51:25Z")

</div>

Hi everyone.Right now I am working on a fairly complex flow which, in a very general way, depending on two variables sent by a device, an audio file hosted in a web server is played in the dashboard. I am using the HTTP …

---

## [Pass an Access Token to a Function Node](https://discourse.nodered.org/t/pass-an-access-token-to-a-function-node/64391)

<div class="topic-metadata">

**Author:** [@zouhir](https://discourse.nodered.org/u/zouhir)\
**Replies:** 2\
**Last updated:** [27 June 2022 05:29 UTC](https://discourse.nodered.org/t/pass-an-access-token-to-a-function-node/64391 "2022-06-27T05:29:27Z")

</div>

Hi, I hope this finds you well. I'm GETTING an Access Token by calling a RestAPI through an HTTP request, then I'm extracting that Access Token to a msg.payload, I'd like to know how I can pass that Bearer Token to a Fu…

---

## [Deploying Node-Red on Digital Ocean](https://discourse.nodered.org/t/deploying-node-red-on-digital-ocean/64393)

<div class="topic-metadata">

**Author:** [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Replies:** 4\
**Last updated:** [27 June 2022 02:38 UTC](https://discourse.nodered.org/t/deploying-node-red-on-digital-ocean/64393 "2022-06-27T02:38:48Z")

</div>

I am trying to deploy node-red via DO app. But I can't mount a directory like in the tutorial. Can someone help? Haven't found anything useful.

---

## [Sending commands from function node to Tasmota node](https://discourse.nodered.org/t/sending-commands-from-function-node-to-tasmota-node/64366)

<div class="topic-metadata">

**Author:** [@btbr](https://discourse.nodered.org/u/btbr)\
**Replies:** 14\
**Last updated:** [27 June 2022 00:51 UTC](https://discourse.nodered.org/t/sending-commands-from-function-node-to-tasmota-node/64366 "2022-06-27T00:51:02Z")

</div>

Hello All, I wondered if anyone would be able to help or direct me to somewhere where it explains how to do this as I can't find anything. I have a sensor data coming in from a humidity sensor. I want to send ON/OFF co…

---

## [Selenium-wd2 error "npm ERR! 'cp' is not recognized" windows10 \[solved\]](https://discourse.nodered.org/t/selenium-wd2-error-npm-err-cp-is-not-recognized-windows10-solved/64398)

<div class="topic-metadata">

**Author:** [@PateJS](https://discourse.nodered.org/u/PateJS)\
**Replies:** 2\
**Last updated:** [26 June 2022 22:31 UTC](https://discourse.nodered.org/t/selenium-wd2-error-npm-err-cp-is-not-recognized-windows10-solved/64398 "2022-06-26T22:31:26Z")

</div>

I believe this is the main error: npm ERR! 'cp' is not recognized as an internal or external command Here's the node-red plugin I'm trying and failing to install via node-red pallette-install node-red-contrib-selenium…

---

## [Problem use aggregate with mongodb3](https://discourse.nodered.org/t/problem-use-aggregate-with-mongodb3/64191)

<div class="topic-metadata">

**Author:** [@junoprima](https://discourse.nodered.org/u/junoprima)\
**Replies:** 2\
**Last updated:** [26 June 2022 20:59 UTC](https://discourse.nodered.org/t/problem-use-aggregate-with-mongodb3/64191 "2022-06-26T20:59:11Z")

</div>

Hi I try to use aggregate in mongodb3 node but result not true my flow \[ { "id": "b583c2b096c05a21", "type": "mongodb3 in", "z": "d851478c2fe7e179", "service": "\_ext\_", "conf…

---

## [Extract data from a json object](https://discourse.nodered.org/t/extract-data-from-a-json-object/64397)

<div class="topic-metadata">

**Author:** [@norb3](https://discourse.nodered.org/u/norb3)\
**Replies:** 4\
**Last updated:** [26 June 2022 16:48 UTC](https://discourse.nodered.org/t/extract-data-from-a-json-object/64397 "2022-06-26T16:48:05Z")

</div>

Hi, I am trying to extract some nodes from a JSON payload but the JSON structure is not defined in a proper array, and because of that I cannot use functions like find or keys. I have made a screenshot of the struct…

---

## [If Multiple states are true, Then Turn motor on](https://discourse.nodered.org/t/if-multiple-states-are-true-then-turn-motor-on/64339)

<div class="topic-metadata">

**Author:** [@boyessen](https://discourse.nodered.org/u/boyessen)\
**Replies:** 3\
**Last updated:** [26 June 2022 15:18 UTC](https://discourse.nodered.org/t/if-multiple-states-are-true-then-turn-motor-on/64339 "2022-06-26T15:18:33Z")

</div>

I have a basic flow which controls my Pentair Screenlogic Pool Heat Pump by taking my input from a drop down helper. The options for this drop down are (AUTO, ON, OFF). If ON or OFF the flow is straight forward to turn…

---

## [Image support storage plugin](https://discourse.nodered.org/t/image-support-storage-plugin/64385)

<div class="topic-metadata">

**Author:** [@d0d04m3](https://discourse.nodered.org/u/d0d04m3)\
**Replies:** 4\
**Last updated:** [26 June 2022 13:33 UTC](https://discourse.nodered.org/t/image-support-storage-plugin/64385 "2022-06-26T13:33:42Z")

</div>

hi any docker image to support mongodb storage plugin

---

## [Retrieve a object comming from MQTT](https://discourse.nodered.org/t/retrieve-a-object-comming-from-mqtt/64387)

<div class="topic-metadata">

**Author:** [@HenrikDK1971](https://discourse.nodered.org/u/HenrikDK1971)\
**Replies:** 4\
**Last updated:** [26 June 2022 12:40 UTC](https://discourse.nodered.org/t/retrieve-a-object-comming-from-mqtt/64387 "2022-06-26T12:40:15Z")

</div>

Hi I'm dead sure it's because I'm newbie, I hope someone will help me out here - here is my problem: I'm trying to calculate where if have power to start other things in the house, this is done by looking at the value:…

---

## [Troubleshooting a specific flow to mimic philips hue, or make a better way to do it?](https://discourse.nodered.org/t/troubleshooting-a-specific-flow-to-mimic-philips-hue-or-make-a-better-way-to-do-it/63560)

<div class="topic-metadata">

**Author:** [@dfxzgli](https://discourse.nodered.org/u/dfxzgli)\
**Replies:** 4\
**Last updated:** [26 June 2022 09:54 UTC](https://discourse.nodered.org/t/troubleshooting-a-specific-flow-to-mimic-philips-hue-or-make-a-better-way-to-do-it/63560 "2022-06-26T09:54:49Z")

</div>

I have a flow that i want to mimic Philips hue Motion detected - \> Turn lights on full wait 5 mins for no motion Dim lights wait 2 mins turn off lights if motion is detected again at any stage it start back at moti…

---

## [Change payloadmeasureunit](https://discourse.nodered.org/t/change-payloadmeasureunit/64347)

<div class="topic-metadata">

**Author:** [@Nilpferd](https://discourse.nodered.org/u/Nilpferd)\
**Replies:** 4\
**Last updated:** [26 June 2022 08:31 UTC](https://discourse.nodered.org/t/change-payloadmeasureunit/64347 "2022-06-26T08:31:43Z")

</div>

Hi, I try to verify the temperature of hotwater. If below 60 degrees the power controller should be adjusted to 90%. in my node the output is always 90 degrees and so the 0-10V KNX device will not understand it. I use …

---

## [Websock listener error?](https://discourse.nodered.org/t/websock-listener-error/64381)

<div class="topic-metadata">

**Author:** [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Replies:** 3\
**Last updated:** [26 June 2022 06:59 UTC](https://discourse.nodered.org/t/websock-listener-error/64381 "2022-06-26T06:59:50Z")

</div>

Hello all! I moved my flow from a pi to a x86 platform and since that move I started to get this error Any Idea what is causing that?

---

## [Not able to load node-red-contrib-home-assistant-websocket](https://discourse.nodered.org/t/not-able-to-load-node-red-contrib-home-assistant-websocket/64375)

<div class="topic-metadata">

**Author:** [@cmccomas](https://discourse.nodered.org/u/cmccomas)\
**Replies:** 1\
**Last updated:** [26 June 2022 00:08 UTC](https://discourse.nodered.org/t/not-able-to-load-node-red-contrib-home-assistant-websocket/64375 "2022-06-26T00:08:34Z")

</div>

New to Node-red and home assistant. I have everything running in a docker container with no issues but when I try to load "node-red-contrib-home-assistant-websocket" I get the following error and I don't know where to …

---

## [Can't write csv file](https://discourse.nodered.org/t/cant-write-csv-file/64369)

<div class="topic-metadata">

**Author:** [@omardmf](https://discourse.nodered.org/u/omardmf)\
**Replies:** 2\
**Last updated:** [25 June 2022 22:01 UTC](https://discourse.nodered.org/t/cant-write-csv-file/64369 "2022-06-25T22:01:32Z")

</div>

I'm receiving data from mqtt in the form of a string "Green" i added the nodes csv and write file to log the data into an excel sheet, but nothing is shown in the debug connected to the csv node and the csv file is not c…

---

## [How do I make accessToken and refreshToken from OAuth2 login available to flows?](https://discourse.nodered.org/t/how-do-i-make-accesstoken-and-refreshtoken-from-oauth2-login-available-to-flows/62138)

<div class="topic-metadata">

**Author:** [@andersea](https://discourse.nodered.org/u/andersea)\
**Replies:** 4\
**Last updated:** [25 June 2022 13:41 UTC](https://discourse.nodered.org/t/how-do-i-make-accesstoken-and-refreshtoken-from-oauth2-login-available-to-flows/62138 "2022-06-25T13:41:32Z")

</div>

I managed to set up OAuth2 login using passport-oauth2. In the verify function, I receive an accessToken and a refreshToken. (Equivalent to token and tokenSecret in other examples.) verify: function(ac…

---

## [Hall Effect Sensor connected to GPIO pins - How can I could pulses per minute?](https://discourse.nodered.org/t/hall-effect-sensor-connected-to-gpio-pins-how-can-i-could-pulses-per-minute/62482)

<div class="topic-metadata">

**Author:** [@championc](https://discourse.nodered.org/u/championc)\
**Replies:** 3\
**Last updated:** [25 June 2022 13:01 UTC](https://discourse.nodered.org/t/hall-effect-sensor-connected-to-gpio-pins-how-can-i-could-pulses-per-minute/62482 "2022-06-25T13:01:13Z")

</div>

Hi all, I have a hall effect sensor connected to my Pi GPIO pins and the pulses are coming in fine. It's a water flow meter connected to an irrigation system for a community. However, I have no idea as to how best (or…

---

## [Need help combining two msg with arrays](https://discourse.nodered.org/t/need-help-combining-two-msg-with-arrays/63620)

<div class="topic-metadata">

**Author:** [@network\_potato](https://discourse.nodered.org/u/network_potato)\
**Replies:** 7\
**Last updated:** [25 June 2022 11:06 UTC](https://discourse.nodered.org/t/need-help-combining-two-msg-with-arrays/63620 "2022-06-25T11:06:36Z")

</div>

I have two messages that each have an array that is called the same (line\_items). I need to combine them so that I get one message, with an array called line\_items, that has both of the objects inside it. I have trie…

---

## [Node-Red MQTT controlling 8+8 digital Inp-Out and I2C ADC on ESP32](https://discourse.nodered.org/t/node-red-mqtt-controlling-8-8-digital-inp-out-and-i2c-adc-on-esp32/64348)

<div class="topic-metadata">

**Author:** [@Kulle](https://discourse.nodered.org/u/Kulle)\
**Replies:** 0\
**Last updated:** [25 June 2022 09:29 UTC](https://discourse.nodered.org/t/node-red-mqtt-controlling-8-8-digital-inp-out-and-i2c-adc-on-esp32/64348 "2022-06-25T09:29:36Z")

</div>

Hi Here a sample program on connecting ESP32 to node-red via MQTT. The ESP32 source program is in B4R, with a "compilation" for Arduino.

---

## [Output json data to html template](https://discourse.nodered.org/t/output-json-data-to-html-template/64344)

<div class="topic-metadata">

**Author:** [@PateJS](https://discourse.nodered.org/u/PateJS)\
**Replies:** 3\
**Last updated:** [25 June 2022 09:04 UTC](https://discourse.nodered.org/t/output-json-data-to-html-template/64344 "2022-06-25T09:04:19Z")

</div>

Can someone please help me get the output for Template, same output as debug shows right after http request node. found few similar posts here, but still can't get this work :slight\_smile: \[ { "id": "ec5233c…

---

## [Sending multiple payloads to different hosts at once](https://discourse.nodered.org/t/sending-multiple-payloads-to-different-hosts-at-once/64331)

<div class="topic-metadata">

**Author:** [@DanielEcheverri](https://discourse.nodered.org/u/DanielEcheverri)\
**Replies:** 7\
**Last updated:** [25 June 2022 07:50 UTC](https://discourse.nodered.org/t/sending-multiple-payloads-to-different-hosts-at-once/64331 "2022-06-25T07:50:27Z")

</div>

Hi! I have two input text fields where the user enters two variables: replySource and replyCode. The replySource variable acts as the ID of a single device in the network. For instance, in the code below, replySource "20…

---

## [Is there any option to get "config" details in a function node?](https://discourse.nodered.org/t/is-there-any-option-to-get-config-details-in-a-function-node/64332)

<div class="topic-metadata">

**Author:** [@aswink](https://discourse.nodered.org/u/aswink)\
**Replies:** 2\
**Last updated:** [24 June 2022 21:35 UTC](https://discourse.nodered.org/t/is-there-any-option-to-get-config-details-in-a-function-node/64332 "2022-06-24T21:35:39Z")

</div>

Hello All, I have a configuration in my flow like this, is there any way to get the saved "configuration" in a normal function node? In this case I wanted to get the "share" path(Just like context global.get() or flo…

---

## [How to copy string/value from message to clipboard](https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333)

<div class="topic-metadata">

**Author:** [@tgottie](https://discourse.nodered.org/u/tgottie)\
**Replies:** 6\
**Last updated:** [24 June 2022 21:34 UTC](https://discourse.nodered.org/t/how-to-copy-string-value-from-message-to-clipboard/64333 "2022-06-24T21:34:24Z")

</div>

I have a payload msg that is being sent, it has a string of text that I need to type into a specific text box that is moving through the flow. how can I get the string of text out of node red and typed into a text box?

---

## [Dynamic IP address in node TCP in & out?](https://discourse.nodered.org/t/dynamic-ip-address-in-node-tcp-in-out/64184)

<div class="topic-metadata">

**Author:** [@Jean-Luc](https://discourse.nodered.org/u/Jean-Luc)\
**Replies:** 17\
**Last updated:** [24 June 2022 20:34 UTC](https://discourse.nodered.org/t/dynamic-ip-address-in-node-tcp-in-out/64184 "2022-06-24T20:34:54Z")

</div>

Hello, I have a request regarding TCP in and TCP out nodes. They work perfectly. However I would like to be able to pass the TCP address dynamically. That is, I would like to fill in the destination IP address from th…

---

## [Node-red-contrib-homekit-bridged reacts slowly](https://discourse.nodered.org/t/node-red-contrib-homekit-bridged-reacts-slowly/64335)

<div class="topic-metadata">

**Author:** [@madmax](https://discourse.nodered.org/u/madmax)\
**Replies:** 1\
**Last updated:** [24 June 2022 19:53 UTC](https://discourse.nodered.org/t/node-red-contrib-homekit-bridged-reacts-slowly/64335 "2022-06-24T19:53:54Z")

</div>

Hi! I am using Node Red with Apple Home Kit (node-red-contrib-homekit-bridged). Unfortunately responds very slowly. If I also do something to the cell phone, it takes about 4-10 seconds for the signal to reach Node Red.…

---

## [Barcode scanner trigger a flow](https://discourse.nodered.org/t/barcode-scanner-trigger-a-flow/64327)

<div class="topic-metadata">

**Author:** [@tgottie](https://discourse.nodered.org/u/tgottie)\
**Replies:** 7\
**Last updated:** [24 June 2022 18:09 UTC](https://discourse.nodered.org/t/barcode-scanner-trigger-a-flow/64327 "2022-06-24T18:09:00Z")

</div>

alright, so this is what i have got together so far, i am using a datalogic powerscan m8300 connected by usb using a raspberry pi4. what i would like to do is scan an item and start the flow like an inject node. i have t…

---

## [Generate a PDF-file with variable filename](https://discourse.nodered.org/t/generate-a-pdf-file-with-variable-filename/64228)

<div class="topic-metadata">

**Author:** [@Mauri](https://discourse.nodered.org/u/Mauri)\
**Replies:** 5\
**Last updated:** [24 June 2022 17:58 UTC](https://discourse.nodered.org/t/generate-a-pdf-file-with-variable-filename/64228 "2022-06-24T17:58:18Z")

</div>

Hello Community I want to generate a pdf in node red and want to enter the file name (and maybe the location) with variables. I heard that this could work with the msg.filename, but I couldn't find anything. can someone…

---

## [Saving table - how-to and complications with dataChanged](https://discourse.nodered.org/t/saving-table-how-to-and-complications-with-datachanged/64313)

<div class="topic-metadata">

**Author:** [@stdave](https://discourse.nodered.org/u/stdave)\
**Replies:** 1\
**Last updated:** [24 June 2022 15:47 UTC](https://discourse.nodered.org/t/saving-table-how-to-and-complications-with-datachanged/64313 "2022-06-24T15:47:04Z")

</div>

I have been searching for ways that I can save a table - JSON, CSV whatever. I have a process to save it which seems to work - however - the problem is that the screen edit of the table does not jive with the internal …

---

## [Programmatically disconnect from MQTT](https://discourse.nodered.org/t/programmatically-disconnect-from-mqtt/64286)

<div class="topic-metadata">

**Author:** [@alex88](https://discourse.nodered.org/u/alex88)\
**Replies:** 8\
**Last updated:** [24 June 2022 10:58 UTC](https://discourse.nodered.org/t/programmatically-disconnect-from-mqtt/64286 "2022-06-24T10:58:14Z")

</div>

Hey, I want to retrieve info from zgibee2mqtt that I can only seem to retrieve on the initial MQTT connection, namely the stored state of each device. Each time I want this data I could just restart all my flows, howev…

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

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