# General

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

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

**Page:** 793

---

## [Modbus contrib with hex commands through TCP](https://discourse.nodered.org/t/modbus-contrib-with-hex-commands-through-tcp/22035)

<div class="topic-metadata">

**Author:** [@adrianbravom](https://discourse.nodered.org/u/adrianbravom)\
**Replies:** 0\
**Last updated:** [20 February 2020 21:38 UTC](https://discourse.nodered.org/t/modbus-contrib-with-hex-commands-through-tcp/22035 "2020-02-20T21:38:32Z")

</div>

Hello, i am reading the values of 3 modbus RTU energy meters, i am using a modbus RTU \<\> modbus TCP gateway and everything is working fine, however, i need to reset the measured energy daily, to do that i need to send a …

---

## [UDP Out Node is not bound to correct port number](https://discourse.nodered.org/t/udp-out-node-is-not-bound-to-correct-port-number/754)

<div class="topic-metadata">

**Author:** [@pauldeng](https://discourse.nodered.org/u/pauldeng)\
**Replies:** 9\
**Last updated:** [20 February 2020 21:10 UTC](https://discourse.nodered.org/t/udp-out-node-is-not-bound-to-correct-port-number/754 "2020-02-20T21:10:59Z")

</div>

Hi all, I am new to this. So please forgive me if I ask a silly question. I created a simple UDP ping-pong function: 1. Endpoint A (port 3000) sends a Ping to Endpoint B (port 3001) 2. Endpoint B (port 3001) replies …

---

## [Control simple gate](https://discourse.nodered.org/t/control-simple-gate/22024)

<div class="topic-metadata">

**Author:** [@MaxD](https://discourse.nodered.org/u/MaxD)\
**Replies:** 4\
**Last updated:** [20 February 2020 19:31 UTC](https://discourse.nodered.org/t/control-simple-gate/22024 "2020-02-20T19:31:27Z")

</div>

Hello, I am trying to control the simple-gate-node using change nodes. I'm new to Node-Red and really dont know what to do. Can someone explain to me how this works? Kind regards, Max

---

## [Parse String. Regex?](https://discourse.nodered.org/t/parse-string-regex/21941)

<div class="topic-metadata">

**Author:** [@niclas.w82](https://discourse.nodered.org/u/niclas.w82)\
**Replies:** 7\
**Last updated:** [20 February 2020 16:05 UTC](https://discourse.nodered.org/t/parse-string-regex/21941 "2020-02-20T16:05:42Z")

</div>

Hi. I have a sting output that I want to split somehow. Have tried a few regex expressions but i have early used regex before so no luck. Any idea how to do this the best way? the string lock like this ALARM,A:341N5729…

---

## [One button control](https://discourse.nodered.org/t/one-button-control/21816)

<div class="topic-metadata">

**Author:** [@AD3D](https://discourse.nodered.org/u/AD3D)\
**Replies:** 12\
**Last updated:** [20 February 2020 14:47 UTC](https://discourse.nodered.org/t/one-button-control/21816 "2020-02-20T14:47:03Z")

</div>

I am wondering if there is a 'simple' solution for what I would like to do with a few flows at ones. I have a few WiFi/network devices that act as a lamp. Nothing fancy but it works. Node-RED can ask them what there cu…

---

## [Multiple Projects: Updating specific Subflows should change in all the projects](https://discourse.nodered.org/t/multiple-projects-updating-specific-subflows-should-change-in-all-the-projects/22012)

<div class="topic-metadata">

**Author:** [@rverala](https://discourse.nodered.org/u/rverala)\
**Replies:** 2\
**Last updated:** [20 February 2020 13:57 UTC](https://discourse.nodered.org/t/multiple-projects-updating-specific-subflows-should-change-in-all-the-projects/22012 "2020-02-20T13:57:40Z")

</div>

Hi, We are trying to solve a business problem, where we may have multiple Projects in place, say each one for a specific customer. We are planning to implement re-usability (flows/subflows) which may be used in multipl…

---

## [Bluetooth node not working](https://discourse.nodered.org/t/bluetooth-node-not-working/22006)

<div class="topic-metadata">

**Author:** [@Madhumati](https://discourse.nodered.org/u/Madhumati)\
**Replies:** 1\
**Last updated:** [20 February 2020 12:14 UTC](https://discourse.nodered.org/t/bluetooth-node-not-working/22006 "2020-02-20T12:14:38Z")

</div>

Hello, I want to read data from a Bluetooth device into my raspberry PI based hardware over NODE-RED. I made attached flow , but not able to conenct to any blutooth device or my phone. \[{"id":"a240c740.e879d8","type":…

---

## [Audio Out does not work on Iphone browsers](https://discourse.nodered.org/t/audio-out-does-not-work-on-iphone-browsers/10350)

<div class="topic-metadata">

**Author:** [@Marcelo](https://discourse.nodered.org/u/Marcelo)\
**Replies:** 9\
**Last updated:** [20 February 2020 12:11 UTC](https://discourse.nodered.org/t/audio-out-does-not-work-on-iphone-browsers/10350 "2020-02-20T12:11:10Z")

</div>

"ReferenceError: window is not defined (line 1, col 1)" CODE: window.addEventListener('touchstart', function() { // create new buffer source for playback with an already // loaded and decoded empty sound file var so…

---

## [Button and new tab](https://discourse.nodered.org/t/button-and-new-tab/21984)

<div class="topic-metadata">

**Author:** [@bibou](https://discourse.nodered.org/u/bibou)\
**Replies:** 6\
**Last updated:** [20 February 2020 08:09 UTC](https://discourse.nodered.org/t/button-and-new-tab/21984 "2020-02-20T08:09:31Z")

</div>

Hello, so I have a dashboard that contains a button. I would like to know if it is possible on node-red to automatically click this button; the ideal will be that it opens in a new tab. Is it possible?

---

## [Function node and merge](https://discourse.nodered.org/t/function-node-and-merge/21991)

<div class="topic-metadata">

**Author:** [@pvklink](https://discourse.nodered.org/u/pvklink)\
**Replies:** 0\
**Last updated:** [19 February 2020 16:54 UTC](https://discourse.nodered.org/t/function-node-and-merge/21991 "2020-02-19T16:54:22Z")

</div>

I need to convert an array to seperate vars and keep the old message. this is how i solved it but i think there is a better way to include the old message in the new one other then include all vars one by one....like i …

---

## [Context variables](https://discourse.nodered.org/t/context-variables/21951)

<div class="topic-metadata">

**Author:** [@abskki](https://discourse.nodered.org/u/abskki)\
**Replies:** 2\
**Last updated:** [19 February 2020 21:17 UTC](https://discourse.nodered.org/t/context-variables/21951 "2020-02-19T21:17:00Z")

</div>

Hi, guys Just come across something strange. Could anyone give me some guides? Thanks heaps your time in advance. Problem: I set two flow variables. When I assign value to one of the variables, another one get the same…

---

## [Scheduling raspbian OS updates & upgrades](https://discourse.nodered.org/t/scheduling-raspbian-os-updates-upgrades/21174)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 14\
**Last updated:** [19 February 2020 20:53 UTC](https://discourse.nodered.org/t/scheduling-raspbian-os-updates-upgrades/21174 "2020-02-19T20:53:00Z")

</div>

I've been using a simple script to update my pi, which I manually start (whenever I remember!!) Would it be safe to add a cron job to run it weekly automatically in the middle of the night, or should the update/upgrade/…

---

## [Create multiple CCUs in RedMatic](https://discourse.nodered.org/t/create-multiple-ccus-in-redmatic/21901)

<div class="topic-metadata">

**Author:** [@spitzlbergerj](https://discourse.nodered.org/u/spitzlbergerj)\
**Replies:** 4\
**Last updated:** [19 February 2020 19:39 UTC](https://discourse.nodered.org/t/create-multiple-ccus-in-redmatic/21901 "2020-02-19T19:39:25Z")

</div>

Hi, I have successfully installed RedMatic on my Homematic CCU3 Now I would like to integrate a second CCU in RedMatic. Unfortunately I am still Node Red Newbee and I can't get any further. In the meantime I have under…

---

## [How to program flow to redeploy itself?](https://discourse.nodered.org/t/how-to-program-flow-to-redeploy-itself/21988)

<div class="topic-metadata">

**Author:** [@Hornynkz](https://discourse.nodered.org/u/Hornynkz)\
**Replies:** 1\
**Last updated:** [19 February 2020 18:56 UTC](https://discourse.nodered.org/t/how-to-program-flow-to-redeploy-itself/21988 "2020-02-19T18:56:12Z")

</div>

HI, I have an issue with node-red-contrib-iiot-opcua and node-red-contrib-opcua. From time to time when my OPC-UA server has to be rebooted, the client nodes fail to reconnect, leaving the node in error. Only redeployin…

---

## [Read Domoticz sensor and filter on IDX](https://discourse.nodered.org/t/read-domoticz-sensor-and-filter-on-idx/21986)

<div class="topic-metadata">

**Author:** [@qwyrp](https://discourse.nodered.org/u/qwyrp)\
**Replies:** 0\
**Last updated:** [19 February 2020 15:00 UTC](https://discourse.nodered.org/t/read-domoticz-sensor-and-filter-on-idx/21986 "2020-02-19T15:00:09Z")

</div>

I'm completely new to Node-Red but I did already a lot of reading :innocent: Switching lamps on/of in Domoticz works great but I can't get any values from my other sensors. I've setup the following but now I get ALL the…

---

## [Problems with telegram bot video and hass.io](https://discourse.nodered.org/t/problems-with-telegram-bot-video-and-hass-io/21982)

<div class="topic-metadata">

**Author:** [@povlhp](https://discourse.nodered.org/u/povlhp)\
**Replies:** 1\
**Last updated:** [19 February 2020 13:34 UTC](https://discourse.nodered.org/t/problems-with-telegram-bot-video-and-hass-io/21982 "2020-02-19T13:34:46Z")

</div>

I am using Node Red with hass.io on arm64. I have a problem with node-red, I always gets error: Call-service API error. Error Message: extra keys not allowed @ data\['file'\] on the node below. I tried all possible mu…

---

## [Question from Node-Red newbie](https://discourse.nodered.org/t/question-from-node-red-newbie/21970)

<div class="topic-metadata">

**Author:** [@RalfPfitzner](https://discourse.nodered.org/u/RalfPfitzner)\
**Replies:** 10\
**Last updated:** [19 February 2020 13:31 UTC](https://discourse.nodered.org/t/question-from-node-red-newbie/21970 "2020-02-19T13:31:50Z")

</div>

Hi folks In node-red I have an array of unix epoch timestamps which I would like to convert to human friendly time stamps. Here is my function node which is NOT working :slight\_smile: var i; var attributes\_values = \[\]…

---

## [Variable in ui Table](https://discourse.nodered.org/t/variable-in-ui-table/21977)

<div class="topic-metadata">

**Author:** [@maku12](https://discourse.nodered.org/u/maku12)\
**Replies:** 6\
**Last updated:** [19 February 2020 12:46 UTC](https://discourse.nodered.org/t/variable-in-ui-table/21977 "2020-02-19T12:46:18Z")

</div>

Hi, i have a ping node which gives me an online or offline value for the appropriate ip address of the device. Now i want to display this online or offline value in the ui\_table (json formatted inject node), but I don't…

---

## [Export flows form one device to an other one](https://discourse.nodered.org/t/export-flows-form-one-device-to-an-other-one/21974)

<div class="topic-metadata">

**Author:** [@mike67](https://discourse.nodered.org/u/mike67)\
**Replies:** 5\
**Last updated:** [19 February 2020 12:42 UTC](https://discourse.nodered.org/t/export-flows-form-one-device-to-an-other-one/21974 "2020-02-19T12:42:39Z")

</div>

Hello i read something in the past that if i need to export flows from one device, and insert them in an other device, the credentials, passwords, etc... are lost. But i think there is a way to make nodeRed work in the…

---

## [First use of projects](https://discourse.nodered.org/t/first-use-of-projects/21968)

<div class="topic-metadata">

**Author:** [@pvklink](https://discourse.nodered.org/u/pvklink)\
**Replies:** 0\
**Last updated:** [19 February 2020 10:33 UTC](https://discourse.nodered.org/t/first-use-of-projects/21968 "2020-02-19T10:33:51Z")

</div>

Hi, Today i activated the projects part of Node-red, I played around with it, and it is Wunderfull! I have some questions to set up my environment the right way. When activating projects, all my current flows are …

---

## [Node-red-node-email (in) hangs](https://discourse.nodered.org/t/node-red-node-email-in-hangs/21115)

<div class="topic-metadata">

**Author:** [@DamianosS](https://discourse.nodered.org/u/DamianosS)\
**Replies:** 20\
**Last updated:** [19 February 2020 07:55 UTC](https://discourse.nodered.org/t/node-red-node-email-in-hangs/21115 "2020-02-19T07:55:29Z")

</div>

Hi, before raising an issue, I'd like to gather more specific information for being able to provide useful information to the bug-fixing process. What is happening: I'm using the email in node to poll every 10 seconds a…

---

## [JSONata - keys with dashes](https://discourse.nodered.org/t/jsonata-keys-with-dashes/21943)

<div class="topic-metadata">

**Author:** [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Replies:** 6\
**Last updated:** [18 February 2020 23:10 UTC](https://discourse.nodered.org/t/jsonata-keys-with-dashes/21943 "2020-02-18T23:10:57Z")

</div>

I have some trouble selecting data from json, most key names contain dashes and jsonata does not seem to play along with it. Example source (reality is much longer, many interfaces) { "rpc-reply": { "$": { …

---

## [Multiple Node-Red, with Multiple Global Storage](https://discourse.nodered.org/t/multiple-node-red-with-multiple-global-storage/21947)

<div class="topic-metadata">

**Author:** [@spyder0552](https://discourse.nodered.org/u/spyder0552)\
**Replies:** 2\
**Last updated:** [18 February 2020 22:17 UTC](https://discourse.nodered.org/t/multiple-node-red-with-multiple-global-storage/21947 "2020-02-18T22:17:11Z")

</div>

So I have a unique situation in that I run numerous instances of Node-Red (I can't change this). I also need to use global variables with the local file system in case the server reboots (which it does once a week). So,…

---

## [Assemble mqtt data to mysql](https://discourse.nodered.org/t/assemble-mqtt-data-to-mysql/21944)

<div class="topic-metadata">

**Author:** [@quito96](https://discourse.nodered.org/u/quito96)\
**Replies:** 7\
**Last updated:** [18 February 2020 22:14 UTC](https://discourse.nodered.org/t/assemble-mqtt-data-to-mysql/21944 "2020-02-18T22:14:10Z")

</div>

Hi there, i am currently working on a private project by storing data of type number via mqtt into a mysql database. The connection to mysql works, i have tested this with the inject node. The sql insert command looks…

---

## [Injection missing at certain time](https://discourse.nodered.org/t/injection-missing-at-certain-time/21918)

<div class="topic-metadata">

**Author:** [@thalesmaoa](https://discourse.nodered.org/u/thalesmaoa)\
**Replies:** 11\
**Last updated:** [18 February 2020 19:38 UTC](https://discourse.nodered.org/t/injection-missing-at-certain-time/21918 "2020-02-18T19:38:50Z")

</div>

I've been trying to understand why my program is buggy but I'm not sure if this behavior is normal. I have a Flow acquiring generated energy during the day. Inside a flow, I use an injection node to reset the total accu…

---

## [MySQL Array or Arrays to line chart](https://discourse.nodered.org/t/mysql-array-or-arrays-to-line-chart/12976)

<div class="topic-metadata">

**Author:** [@injector22](https://discourse.nodered.org/u/injector22)\
**Replies:** 18\
**Last updated:** [18 February 2020 19:49 UTC](https://discourse.nodered.org/t/mysql-array-or-arrays-to-line-chart/12976 "2020-02-18T19:49:41Z")

</div>

I'm trying to query some data from MySQL and plot it to a line chart. I'm pretty sure the issue is that the output from MySQL is the issue since it outputs an array of arrays which isn't what the chart node accepts. I'm…

---

## [MQTT Flooding Messages from Shelly](https://discourse.nodered.org/t/mqtt-flooding-messages-from-shelly/21938)

<div class="topic-metadata">

**Author:** [@nicedevil](https://discourse.nodered.org/u/nicedevil)\
**Replies:** 4\
**Last updated:** [18 February 2020 18:30 UTC](https://discourse.nodered.org/t/mqtt-flooding-messages-from-shelly/21938 "2020-02-18T18:30:27Z")

</div>

hey guys, today my mqtt broker (eclipse-mosquitto) seems to flood my node-red at all. I have a couple of Shelly Plug S in my smarthome. They send multiple messages of their actual state like temperature/energy/relay sta…

---

## [Custom User Authentication not working with Embedded Node-RED](https://discourse.nodered.org/t/custom-user-authentication-not-working-with-embedded-node-red/21940)

<div class="topic-metadata">

**Author:** [@yutter](https://discourse.nodered.org/u/yutter)\
**Replies:** 0\
**Last updated:** [18 February 2020 18:18 UTC](https://discourse.nodered.org/t/custom-user-authentication-not-working-with-embedded-node-red/21940 "2020-02-18T18:18:11Z")

</div>

Has anybody tried and had success using Custom User Authentication with Node-RED embedded in a custom express app? I am getting an unauthorised failure when Node-RED tries to load resource with http://localhost:8080/flo…

---

## [TCP Request Node Manual Disconnect](https://discourse.nodered.org/t/tcp-request-node-manual-disconnect/21372)

<div class="topic-metadata">

**Author:** [@martynwendon](https://discourse.nodered.org/u/martynwendon)\
**Replies:** 2\
**Last updated:** [18 February 2020 18:23 UTC](https://discourse.nodered.org/t/tcp-request-node-manual-disconnect/21372 "2020-02-18T18:23:07Z")

</div>

Is it possible to disconnect a TCP Request Node that has been configured with "never - keep connection open"? I'm trying to connect on-demand to a remote client and transfer / receive data within that session, then fina…

---

## [Csv Header only once](https://discourse.nodered.org/t/csv-header-only-once/21907)

<div class="topic-metadata">

**Author:** [@mustio](https://discourse.nodered.org/u/mustio)\
**Replies:** 23\
**Last updated:** [18 February 2020 18:09 UTC](https://discourse.nodered.org/t/csv-header-only-once/21907 "2020-02-18T18:09:17Z")

</div>

I'm reading data from a S7 PLC and exporting to a csv file. Every 5 seconds it creates a new row. I would like the first line were the header (the Tag name could be fine). The problem is that if I click the 'Include col…

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

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