# General

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

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

**Page:** 683

---

## [Please help - Uncaught exception on an async function](https://discourse.nodered.org/t/please-help-uncaught-exception-on-an-async-function/33046)

<div class="topic-metadata">

**Author:** [@tonytroy](https://discourse.nodered.org/u/tonytroy)\
**Replies:** 5\
**Last updated:** [18 September 2020 15:33 UTC](https://discourse.nodered.org/t/please-help-uncaught-exception-on-an-async-function/33046 "2020-09-18T15:33:41Z")

</div>

I am embedding node-red in an express application. The entire application logic is split into small functions within Node.js and these functions are called from Node-Red. The idea is to have Node-Red as an orchestration …

---

## [Need to run DHT node with root privileges](https://discourse.nodered.org/t/need-to-run-dht-node-with-root-privileges/32417)

<div class="topic-metadata">

**Author:** [@Rufus\_0815](https://discourse.nodered.org/u/Rufus_0815)\
**Replies:** 8\
**Last updated:** [18 September 2020 14:37 UTC](https://discourse.nodered.org/t/need-to-run-dht-node-with-root-privileges/32417 "2020-09-18T14:37:22Z")

</div>

Hi i am new to linux. I use it for my garden irritation and ventilation. problem is that the node for my dht22 sensors only works when it´s started with root privilegs. With standard user it won´t show me measurements…

---

## [Node Red Password](https://discourse.nodered.org/t/node-red-password/33040)

<div class="topic-metadata">

**Author:** [@Mario](https://discourse.nodered.org/u/Mario)\
**Replies:** 9\
**Last updated:** [18 September 2020 13:43 UTC](https://discourse.nodered.org/t/node-red-password/33040 "2020-09-18T13:43:22Z")

</div>

Hello, after several attempts it is not possible for me to protect my node red with a password. I'll send you the content of the config: adminAuth: { type: "credentials", users: \[{ user…

---

## [SNMPSET doesn't work what is wrong](https://discourse.nodered.org/t/snmpset-doesnt-work-what-is-wrong/33017)

<div class="topic-metadata">

**Author:** [@calberts](https://discourse.nodered.org/u/calberts)\
**Replies:** 7\
**Last updated:** [18 September 2020 13:37 UTC](https://discourse.nodered.org/t/snmpset-doesnt-work-what-is-wrong/33017 "2020-09-18T13:37:46Z")

</div>

I like to use snmp set to set power outlets of een CDU on the command line, it's simple and looks like this snmpset -v 2c -c private 192.168.178.28 1.3.6.1.4.1.1718.3.2.3.1.11.1.1.3 integer 3 when the integer is 1 it…

---

## [Writing Dashboard ui nodes - Any suggestions on how to get started](https://discourse.nodered.org/t/writing-dashboard-ui-nodes-any-suggestions-on-how-to-get-started/33034)

<div class="topic-metadata">

**Author:** [@Boja](https://discourse.nodered.org/u/Boja)\
**Replies:** 6\
**Last updated:** [18 September 2020 12:53 UTC](https://discourse.nodered.org/t/writing-dashboard-ui-nodes-any-suggestions-on-how-to-get-started/33034 "2020-09-18T12:53:49Z")

</div>

I'm thinking about how "difficult" is it to start developing my own ui-nodes for Dashboard. I will probably start by looking at the ui\_nodes already present on Github, to see how the coding is done. But what I'm really …

---

## [Object element naming based on another](https://discourse.nodered.org/t/object-element-naming-based-on-another/33032)

<div class="topic-metadata">

**Author:** [@FredMA](https://discourse.nodered.org/u/FredMA)\
**Replies:** 4\
**Last updated:** [18 September 2020 11:31 UTC](https://discourse.nodered.org/t/object-element-naming-based-on-another/33032 "2020-09-18T11:31:56Z")

</div>

Hi, Sorry for the basic question, new to node-red and all that. I'm trying to add an element in a JSON object with a function node and the name is conditional to CSV data input ID column. The setting is that I have so…

---

## [How to (if not)!](https://discourse.nodered.org/t/how-to-if-not/32993)

<div class="topic-metadata">

**Author:** [@yotti](https://discourse.nodered.org/u/yotti)\
**Replies:** 13\
**Last updated:** [18 September 2020 10:52 UTC](https://discourse.nodered.org/t/how-to-if-not/32993 "2020-09-18T10:52:33Z")

</div>

hello help me with this, please node1 and node2 are inputs to node3, node4 is the output if node3 received 2 msgs from node1 and didn't receive any msg from node2 then node3 send msg I'll preheat your help :sweat\_smil…

---

## [How to create utility function in node red](https://discourse.nodered.org/t/how-to-create-utility-function-in-node-red/33014)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 7\
**Last updated:** [18 September 2020 09:25 UTC](https://discourse.nodered.org/t/how-to-create-utility-function-in-node-red/33014 "2020-09-18T09:25:13Z")

</div>

I have many functions that are used in common in multiple nodes, so I would like to write a function node that contains all of those shared functions. Below is a string format function like C/C++ or C #, ... I intend…

---

## [Using a shared DLL file from another application](https://discourse.nodered.org/t/using-a-shared-dll-file-from-another-application/33003)

<div class="topic-metadata">

**Author:** [@e-Duardo](https://discourse.nodered.org/u/e-Duardo)\
**Replies:** 6\
**Last updated:** [18 September 2020 08:28 UTC](https://discourse.nodered.org/t/using-a-shared-dll-file-from-another-application/33003 "2020-09-18T08:28:39Z")

</div>

Hi, I am using an instrument (a IR camera) that runs on its proprietary software, and it offers the possibility to communicate with external applications via an IPC (Inter Process Communication) protocol, which uses a D…

---

## [How to change the sequence of menu items?](https://discourse.nodered.org/t/how-to-change-the-sequence-of-menu-items/33018)

<div class="topic-metadata">

**Author:** [@Zerg](https://discourse.nodered.org/u/Zerg)\
**Replies:** 1\
**Last updated:** [18 September 2020 07:01 UTC](https://discourse.nodered.org/t/how-to-change-the-sequence-of-menu-items/33018 "2020-09-18T07:01:52Z")

</div>

Could you advise me? How to change the sequence of menu items? I want to organize them as I have labeled in the screenshot.

---

## [Unexpected behaviour when using jsonata expressions like payload\[..\]\[\] in change node](https://discourse.nodered.org/t/unexpected-behaviour-when-using-jsonata-expressions-like-payload-in-change-node/32988)

<div class="topic-metadata">

**Author:** [@janvda](https://discourse.nodered.org/u/janvda)\
**Replies:** 9\
**Last updated:** [17 September 2020 17:06 UTC](https://discourse.nodered.org/t/unexpected-behaviour-when-using-jsonata-expressions-like-payload-in-change-node/32988 "2020-09-17T17:06:29Z")

</div>

I have faced some unexpected behaviour when using jsonata in change node. The following flow demonstrates the problem I am having. Note that the actual flows I am using are using more complex jsonata expression but I b…

---

## [Batch InfluxDB CLI](https://discourse.nodered.org/t/batch-influxdb-cli/32982)

<div class="topic-metadata">

**Author:** [@Ward](https://discourse.nodered.org/u/Ward)\
**Replies:** 9\
**Last updated:** [18 September 2020 05:27 UTC](https://discourse.nodered.org/t/batch-influxdb-cli/32982 "2020-09-18T05:27:28Z")

</div>

Hi, For the moment i'm using nodered for logging my data directly in InfluxDB but i want to buffer the data in batches (of 5000 measurements or more) and write those all together in InfluxDB. Because if i use Grafana a…

---

## [Request for Help/Ideas with Subflow Management](https://discourse.nodered.org/t/request-for-help-ideas-with-subflow-management/32977)

<div class="topic-metadata">

**Author:** [@shimbone](https://discourse.nodered.org/u/shimbone)\
**Replies:** 6\
**Last updated:** [18 September 2020 02:37 UTC](https://discourse.nodered.org/t/request-for-help-ideas-with-subflow-management/32977 "2020-09-18T02:37:20Z")

</div>

One of the reasons I like to use subflows in my projects is to make reusable chunks of functionality. However, I'm really struggling to effectively manage my subflows across different projects, especially if a subflow c…

---

## [Tracking recently changed events?](https://discourse.nodered.org/t/tracking-recently-changed-events/32918)

<div class="topic-metadata">

**Author:** [@ScotchTape](https://discourse.nodered.org/u/ScotchTape)\
**Replies:** 25\
**Last updated:** [17 September 2020 19:35 UTC](https://discourse.nodered.org/t/tracking-recently-changed-events/32918 "2020-09-17T19:35:24Z")

</div>

Hi, I've recently moved from Hubitat's Rule Machine to node red and am having a ball with it. I was able to replace a number of my simple rules to node red flows, but I'm stuck with some flows that require looking at thi…

---

## [If condition is true select the specfic record](https://discourse.nodered.org/t/if-condition-is-true-select-the-specfic-record/33004)

<div class="topic-metadata">

**Author:** [@alikhan](https://discourse.nodered.org/u/alikhan)\
**Replies:** 1\
**Last updated:** [17 September 2020 16:18 UTC](https://discourse.nodered.org/t/if-condition-is-true-select-the-specfic-record/33004 "2020-09-17T16:18:38Z")

</div>

we connect IOT device with MQTT by node-red and push this data into MSSQL. what we won't put condition when the x tag value = ON then select only specific data. we achieve this in the MSSQL query but we want to do in n…

---

## [How do i dynamic change the "maxin" value for the range node](https://discourse.nodered.org/t/how-do-i-dynamic-change-the-maxin-value-for-the-range-node/32997)

<div class="topic-metadata">

**Author:** [@Zodiac-69](https://discourse.nodered.org/u/Zodiac-69)\
**Replies:** 2\
**Last updated:** [17 September 2020 13:48 UTC](https://discourse.nodered.org/t/how-do-i-dynamic-change-the-maxin-value-for-the-range-node/32997 "2020-09-17T13:48:37Z")

</div>

Hi All I need to dynamic change the "maxin" value for the range node. I had a look here - UI Widget configuration via msg.ui\_control and here - Gauge - Dynamic and i understand how that work and i can replicate the res…

---

## [What language is this (coming from modbus serial readers)?](https://discourse.nodered.org/t/what-language-is-this-coming-from-modbus-serial-readers/31264)

<div class="topic-metadata">

**Author:** [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Replies:** 3\
**Last updated:** [17 September 2020 13:26 UTC](https://discourse.nodered.org/t/what-language-is-this-coming-from-modbus-serial-readers/31264 "2020-09-17T13:26:32Z")

</div>

So I\`ve been seeing a lot of modbus serial readers on Node red raw data written as something like this --- ,Q ?KMBac\[9LhB)@ Any idea what this language is? Even better how to configure it into binary

---

## [Joining messages delivers different results](https://discourse.nodered.org/t/joining-messages-delivers-different-results/32990)

<div class="topic-metadata">

**Author:** [@bigmadgaga](https://discourse.nodered.org/u/bigmadgaga)\
**Replies:** 1\
**Last updated:** [17 September 2020 12:31 UTC](https://discourse.nodered.org/t/joining-messages-delivers-different-results/32990 "2020-09-17T12:31:31Z")

</div>

Hi, i am confused. Here i present two flows. They look similar. The only difference is, how they are wired from the html request node to the change node. I changed the order of the wires. In the first case i get the ex…

---

## [Reading data from S7-300 and want to log in MSSQL need function or query](https://discourse.nodered.org/t/reading-data-from-s7-300-and-want-to-log-in-mssql-need-function-or-query/32979)

<div class="topic-metadata">

**Author:** [@malickamranahmed](https://discourse.nodered.org/u/malickamranahmed)\
**Replies:** 4\
**Last updated:** [17 September 2020 08:10 UTC](https://discourse.nodered.org/t/reading-data-from-s7-300-and-want-to-log-in-mssql-need-function-or-query/32979 "2020-09-17T08:10:32Z")

</div>

Hi, I am new to node red and trying to build a Dashboard as a hobbiest . For this i am reading data from Siemens PLC data block and i want to store that data in MSSQL and not able to write function for it . above is t…

---

## [How to config get the first value ini file when duplicate keys](https://discourse.nodered.org/t/how-to-config-get-the-first-value-ini-file-when-duplicate-keys/32980)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 7\
**Last updated:** [17 September 2020 08:10 UTC](https://discourse.nodered.org/t/how-to-config-get-the-first-value-ini-file-when-duplicate-keys/32980 "2020-09-17T08:10:52Z")

</div>

I read an ini file with duplicate keys, ie: \[SESSION\] key1=value1 key1=value2222 xxx=yyy I used the code below to get the contents of the ini file var fs = require('fs') , ini = require('ini') var config = ini.pars…

---

## [Sending buffers to Serial Port Node - Error](https://discourse.nodered.org/t/sending-buffers-to-serial-port-node-error/32967)

<div class="topic-metadata">

**Author:** [@DaveDave](https://discourse.nodered.org/u/DaveDave)\
**Replies:** 6\
**Last updated:** [16 September 2020 21:15 UTC](https://discourse.nodered.org/t/sending-buffers-to-serial-port-node-error/32967 "2020-09-16T21:15:16Z")

</div>

Hi, I've been working on this for a while now with no success, so it's time to ask for some help. I'm using Node-Red on a RPI with node-red-node-serialport to communicate with a serial device that accepts ASCII command…

---

## [Different volume when casting](https://discourse.nodered.org/t/different-volume-when-casting/32971)

<div class="topic-metadata">

**Author:** [@cvandingelen](https://discourse.nodered.org/u/cvandingelen)\
**Replies:** 4\
**Last updated:** [16 September 2020 19:33 UTC](https://discourse.nodered.org/t/different-volume-when-casting/32971 "2020-09-16T19:33:36Z")

</div>

Hi everyone As a morning routine, I have some text I cast (with the cast node) to my speakers. Now I would like the cast volume to be different at different times. To be specific, when it's before 9am or after 10pm, th…

---

## [Git commit author in Project mode with external authentication](https://discourse.nodered.org/t/git-commit-author-in-project-mode-with-external-authentication/32972)

<div class="topic-metadata">

**Author:** [@BorisDaich](https://discourse.nodered.org/u/BorisDaich)\
**Replies:** 1\
**Last updated:** [16 September 2020 18:24 UTC](https://discourse.nodered.org/t/git-commit-author-in-project-mode-with-external-authentication/32972 "2020-09-16T18:24:20Z")

</div>

Hi This is my first post so I would like to use this opportunity to express gratitude to the developers and to the community! Current Setup: We run node-red on a server with multiple users that create and edit flows f…

---

## [During delay drop all intermediate messages?](https://discourse.nodered.org/t/during-delay-drop-all-intermediate-messages/32965)

<div class="topic-metadata">

**Author:** [@Zerg](https://discourse.nodered.org/u/Zerg)\
**Replies:** 1\
**Last updated:** [16 September 2020 18:16 UTC](https://discourse.nodered.org/t/during-delay-drop-all-intermediate-messages/32965 "2020-09-16T18:16:22Z")

</div>

Could you advise me? I need that if an message is "ON" comes, then within 11 seconds all other messages will be ignored! I tried to implement delay using the node "delay" but, this node is randomly counting the seconds,…

---

## [Possible Bug Related to Groups](https://discourse.nodered.org/t/possible-bug-related-to-groups/32966)

<div class="topic-metadata">

**Author:** [@dudleyjosh](https://discourse.nodered.org/u/dudleyjosh)\
**Replies:** 1\
**Last updated:** [16 September 2020 18:06 UTC](https://discourse.nodered.org/t/possible-bug-related-to-groups/32966 "2020-09-16T18:06:53Z")

</div>

I've found that if I copy & paste a node within a group, it locks up the Node-RED UI. I'm using the latest version of Chrome on macOS... has any one else experienced this? I get the following in the console if I copy a…

---

## [Alarm siren latch and switch off after a predetermined time](https://discourse.nodered.org/t/alarm-siren-latch-and-switch-off-after-a-predetermined-time/32933)

<div class="topic-metadata">

**Author:** [@Stevef](https://discourse.nodered.org/u/Stevef)\
**Replies:** 8\
**Last updated:** [16 September 2020 17:55 UTC](https://discourse.nodered.org/t/alarm-siren-latch-and-switch-off-after-a-predetermined-time/32933 "2020-09-16T17:55:48Z")

</div>

I am a total newby..I have built a Raspberry pi with sensors that ,when they are triggered, even momentary, I want to sound an alarm siren for a set time, say 5min, and then reset and read the sensor state again. The ala…

---

## [Smooth Node - Getting Mean/Avg from sensors](https://discourse.nodered.org/t/smooth-node-getting-mean-avg-from-sensors/32963)

<div class="topic-metadata">

**Author:** [@phreaq](https://discourse.nodered.org/u/phreaq)\
**Replies:** 2\
**Last updated:** [16 September 2020 17:54 UTC](https://discourse.nodered.org/t/smooth-node-getting-mean-avg-from-sensors/32963 "2020-09-16T17:54:31Z")

</div>

I have several temperature/humidity sensors, and I'm currently using the 'smooth' node to determine the mean/avg values for all the sensors. However, I am unsure about the 'over the most recent x values' option, and i…

---

## [Sunrise/sunset casting](https://discourse.nodered.org/t/sunrise-sunset-casting/32890)

<div class="topic-metadata">

**Author:** [@cvandingelen](https://discourse.nodered.org/u/cvandingelen)\
**Replies:** 8\
**Last updated:** [16 September 2020 17:35 UTC](https://discourse.nodered.org/t/sunrise-sunset-casting/32890 "2020-09-16T17:35:24Z")

</div>

Hi I'm new at Node Red, and now (in Home Assistant Node Red), I want to cast when the sun will rise and set. I found this api https://api.sunrise-sunset.org. When I put the output in a debug node I get the correct outp…

---

## [Emotiv with Emotiv Toolbox and node-red](https://discourse.nodered.org/t/emotiv-with-emotiv-toolbox-and-node-red/17839)

<div class="topic-metadata">

**Author:** [@rafaelonos](https://discourse.nodered.org/u/rafaelonos)\
**Replies:** 11\
**Last updated:** [16 September 2020 17:32 UTC](https://discourse.nodered.org/t/emotiv-with-emotiv-toolbox-and-node-red/17839 "2020-09-16T17:32:08Z")

</div>

Hello everyone! I'm developing this project who consists in control an robotic arm using the Emotiv EPOC+. I found a toolbox here (https://flows.nodered.org/node/node-red-contrib-emotiv-bci) but it doesn't connect to the…

---

## [Reconnect TCP Request Node](https://discourse.nodered.org/t/reconnect-tcp-request-node/32919)

<div class="topic-metadata">

**Author:** [@dudleyjosh](https://discourse.nodered.org/u/dudleyjosh)\
**Replies:** 4\
**Last updated:** [16 September 2020 17:02 UTC](https://discourse.nodered.org/t/reconnect-tcp-request-node/32919 "2020-09-16T17:02:26Z")

</div>

Is there a way to force reconnect a TCP Request node from a flow? I can use a Status node to monitor if the TCP Request node is connected... but I can't seem to find a way to force reconnect if needed?

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

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