# General

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

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

**Page:** 566

---

## [ModBus TCP Client Node open many connections!](https://discourse.nodered.org/t/modbus-tcp-client-node-open-many-connections/4146)

<div class="topic-metadata">

**Author:** [@roberto.zeni](https://discourse.nodered.org/u/roberto.zeni)\
**Replies:** 9\
**Last updated:** [26 April 2021 19:27 UTC](https://discourse.nodered.org/t/modbus-tcp-client-node-open-many-connections/4146 "2021-04-26T19:27:41Z")

</div>

Hi all, I have a PLC that acts as ModBus TCP Server and can manage only 1 ModBus TCP Client. In Node Red I use the "node-red-contrib-modbustcp" library to read and write some tags (Holding register, Coil, etc) and so I…

---

## [Node red telegram polling error](https://discourse.nodered.org/t/node-red-telegram-polling-error/16765)

<div class="topic-metadata">

**Author:** [@Chenko](https://discourse.nodered.org/u/Chenko)\
**Replies:** 23\
**Last updated:** [26 April 2021 17:30 UTC](https://discourse.nodered.org/t/node-red-telegram-polling-error/16765 "2021-04-26T17:30:00Z")

</div>

Good day I am using node red contrib telegram but i have been stocked at this error "polling error " on the telegram nodes i have looked online but i cant seem to fine a way out please some one help. I have connected i…

---

## [Node execution within a subflow](https://discourse.nodered.org/t/node-execution-within-a-subflow/44768)

<div class="topic-metadata">

**Author:** [@tcr000](https://discourse.nodered.org/u/tcr000)\
**Replies:** 1\
**Last updated:** [26 April 2021 16:03 UTC](https://discourse.nodered.org/t/node-execution-within-a-subflow/44768 "2021-04-26T16:03:39Z")

</div>

I have an application where I need two function nodes to run as close in time as possible. I can place them on the same branch, but isn't it possible that an unrelated flow will execute in between these two nodes? If so,…

---

## [Problem with inserting duplicate data MySQL](https://discourse.nodered.org/t/problem-with-inserting-duplicate-data-mysql/44726)

<div class="topic-metadata">

**Author:** [@fernando](https://discourse.nodered.org/u/fernando)\
**Replies:** 9\
**Last updated:** [26 April 2021 13:01 UTC](https://discourse.nodered.org/t/problem-with-inserting-duplicate-data-mysql/44726 "2021-04-26T13:01:25Z")

</div>

Hi, I have a problem and I don't know how to solve it. I'm trying for day but nothing. I have 2 sensorsand whe they insert data to MySQL, their ID is duplicated but data is not, I mean, one sensor has ID 1 and it has di…

---

## [HTTP Endpoint Help](https://discourse.nodered.org/t/http-endpoint-help/44736)

<div class="topic-metadata">

**Author:** [@fogmajor](https://discourse.nodered.org/u/fogmajor)\
**Replies:** 2\
**Last updated:** [26 April 2021 12:58 UTC](https://discourse.nodered.org/t/http-endpoint-help/44736 "2021-04-26T12:58:06Z")

</div>

Good morning, I wondered if someone would be kind enough to point me in the right direction. I have Node Red running on an Ubuntu server its IP address being 192.168.0.27 I have created a flow that I wish to trigger f…

---

## [Npm, versioning and palette manager confusions](https://discourse.nodered.org/t/npm-versioning-and-palette-manager-confusions/44064)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 75\
**Last updated:** [26 April 2021 09:32 UTC](https://discourse.nodered.org/t/npm-versioning-and-palette-manager-confusions/44064 "2021-04-26T09:32:00Z")

</div>

Using node-red 1.3.1 I find that if I install a node (any node) using npm on the command line then it puts into package.json a dependency of the form "^1.2.3" which means, I believe, that the version must be at least 1.2…

---

## [Getting throughput from TP link router](https://discourse.nodered.org/t/getting-throughput-from-tp-link-router/44721)

<div class="topic-metadata">

**Author:** [@leftymuller](https://discourse.nodered.org/u/leftymuller)\
**Replies:** 1\
**Last updated:** [26 April 2021 08:34 UTC](https://discourse.nodered.org/t/getting-throughput-from-tp-link-router/44721 "2021-04-26T08:34:56Z")

</div>

Hello Gents, Can somebody give me some advice how I can get this throughput data from my TP-Link router I looked at SNMP but it has very limited support this is the source from the webpage interface Any advice apprec…

---

## [Node for GW Instek](https://discourse.nodered.org/t/node-for-gw-instek/44732)

<div class="topic-metadata">

**Author:** [@Willi](https://discourse.nodered.org/u/Willi)\
**Replies:** 1\
**Last updated:** [26 April 2021 08:30 UTC](https://discourse.nodered.org/t/node-for-gw-instek/44732 "2021-04-26T08:30:07Z")

</div>

Hello, I'm trying to connect to a programmable DC Power Supply from GW Instek (PFR-100 Series). It requires a socket server connection. For example: IP address: 172.25.13.100 port: 2268. The connection with other tools…

---

## [Variables to Emoncms](https://discourse.nodered.org/t/variables-to-emoncms/44707)

<div class="topic-metadata">

**Author:** [@Herbert](https://discourse.nodered.org/u/Herbert)\
**Replies:** 2\
**Last updated:** [26 April 2021 07:04 UTC](https://discourse.nodered.org/t/variables-to-emoncms/44707 "2021-04-26T07:04:13Z")

</div>

Hello all, I need a little help with signals from my battery monitor. There are variables voltage values e.g. 48456 in mV from MQTT. I see the values in Nodered. Now I have to give this value a name as this sequence…

---

## [Compare sensor value with previous reading and return a value based on comparison](https://discourse.nodered.org/t/compare-sensor-value-with-previous-reading-and-return-a-value-based-on-comparison/44693)

<div class="topic-metadata">

**Author:** [@nerukoma](https://discourse.nodered.org/u/nerukoma)\
**Replies:** 16\
**Last updated:** [26 April 2021 05:15 UTC](https://discourse.nodered.org/t/compare-sensor-value-with-previous-reading-and-return-a-value-based-on-comparison/44693 "2021-04-26T05:15:01Z")

</div>

Hello, I'm struggling on how to use context within a function node to write sensor value to context and comparing it with a subsequent one. The comparison should return previous value if the subsequent is 2 times smaller…

---

## [Onvif device configuration by external variables](https://discourse.nodered.org/t/onvif-device-configuration-by-external-variables/44638)

<div class="topic-metadata">

**Author:** [@achrafb](https://discourse.nodered.org/u/achrafb)\
**Replies:** 2\
**Last updated:** [25 April 2021 20:12 UTC](https://discourse.nodered.org/t/onvif-device-configuration-by-external-variables/44638 "2021-04-25T20:12:46Z")

</div>

Hi Mr. @BartButenaers First of all, thank you for the excellent contribution of the ONVIF packages for Node red. I have been doing tests and it works perfectly, the only thing, I would like to know if it is possible to…

---

## [Looking for a countdown timer](https://discourse.nodered.org/t/looking-for-a-countdown-timer/44681)

<div class="topic-metadata">

**Author:** [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Replies:** 5\
**Last updated:** [25 April 2021 20:04 UTC](https://discourse.nodered.org/t/looking-for-a-countdown-timer/44681 "2021-04-25T20:04:40Z")

</div>

Hey guys, Looking for a countdown timer that is able to be controlled by passing messages to it. In this particular case - if a temperature exceeds a threshold, i want to send a message to the node to tell it to stop a…

---

## [Where is JSON flows is stored exactly in an application fullstack?](https://discourse.nodered.org/t/where-is-json-flows-is-stored-exactly-in-an-application-fullstack/44584)

<div class="topic-metadata">

**Author:** [@tom123](https://discourse.nodered.org/u/tom123)\
**Replies:** 6\
**Last updated:** [25 April 2021 19:19 UTC](https://discourse.nodered.org/t/where-is-json-flows-is-stored-exactly-in-an-application-fullstack/44584 "2021-04-25T19:19:59Z")

</div>

Hello everyone, i'm newbie with Node-red. I'm developping an app mobile with Node-Red for backend and Flutter for frontend. So the frontend team have almost finished their job with Flutter, i'm bulding the back-end with …

---

## [Worldmap: Change Color and Size of Icon Name](https://discourse.nodered.org/t/worldmap-change-color-and-size-of-icon-name/44703)

<div class="topic-metadata">

**Author:** [@Koloblix](https://discourse.nodered.org/u/Koloblix)\
**Replies:** 2\
**Last updated:** [25 April 2021 17:09 UTC](https://discourse.nodered.org/t/worldmap-change-color-and-size-of-icon-name/44703 "2021-04-25T17:09:52Z")

</div>

hi, im new to Node-Red and Worldmap and playing around with NATO Symbols and some GPS Tracking. Just set al this up and mak an small flow. dLooks pretty good right now: But can I change the color of the Icon Name? Bla…

---

## [All flow envs turned into inFile recently](https://discourse.nodered.org/t/all-flow-envs-turned-into-infile-recently/44695)

<div class="topic-metadata">

**Author:** [@maxym](https://discourse.nodered.org/u/maxym)\
**Replies:** 10\
**Last updated:** [25 April 2021 16:43 UTC](https://discourse.nodered.org/t/all-flow-envs-turned-into-infile-recently/44695 "2021-04-25T16:43:01Z")

</div>

Hello I just spotted, that with recent NR updates (unfortunately don't know with which one, I'm currently on v1.3.3), all env variables references used in Change and Switch nodes suddenly switched from default one (whic…

---

## [How to send messages to a broker via mqtt](https://discourse.nodered.org/t/how-to-send-messages-to-a-broker-via-mqtt/44651)

<div class="topic-metadata">

**Author:** [@fred1985](https://discourse.nodered.org/u/fred1985)\
**Replies:** 28\
**Last updated:** [25 April 2021 16:13 UTC](https://discourse.nodered.org/t/how-to-send-messages-to-a-broker-via-mqtt/44651 "2021-04-25T16:13:07Z")

</div>

Hi everyone, it is the first time I am using Node Red and I have a question to you. I'm trying to send my data to a broker via mqtt and I want to specify the message in the "function" block. I've already set the broker …

---

## [Unable to install/update nodes](https://discourse.nodered.org/t/unable-to-install-update-nodes/44555)

<div class="topic-metadata">

**Author:** [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)\
**Replies:** 8\
**Last updated:** [25 April 2021 15:33 UTC](https://discourse.nodered.org/t/unable-to-install-update-nodes/44555 "2021-04-25T15:33:11Z")

</div>

Hi, I'm not able to install/update any node any more!! I even copied back the original settings.js in order to avoid any modification I was trying on it. From manage palette as well as from command line, I always get thi…

---

## [Comperator not working](https://discourse.nodered.org/t/comperator-not-working/44697)

<div class="topic-metadata">

**Author:** [@Doebe](https://discourse.nodered.org/u/Doebe)\
**Replies:** 3\
**Last updated:** [25 April 2021 13:49 UTC](https://discourse.nodered.org/t/comperator-not-working/44697 "2021-04-25T13:49:33Z")

</div>

i have the following function :slight\_smile: if (speed \<= 20) { low = true; } else if (speed =\> 74) { high = true; } else { low = false; high = false; } the value of speed = 50 it always show high = true; …

---

## [Function node - simple addition of two values](https://discourse.nodered.org/t/function-node-simple-addition-of-two-values/44690)

<div class="topic-metadata">

**Author:** [@rantanplan](https://discourse.nodered.org/u/rantanplan)\
**Replies:** 6\
**Last updated:** [25 April 2021 11:57 UTC](https://discourse.nodered.org/t/function-node-simple-addition-of-two-values/44690 "2021-04-25T11:57:36Z")

</div>

Hi all, I'm struggeling with an easy addtition of two valueas in a function node. I'm able to handover flow-variables and send it to a debug node but I'm too stupid to add this two values and hand it over to a dashboard…

---

## [How to node-red-contrib-volkswagen-we](https://discourse.nodered.org/t/how-to-node-red-contrib-volkswagen-we/44685)

<div class="topic-metadata">

**Author:** [@Tomas](https://discourse.nodered.org/u/Tomas)\
**Replies:** 2\
**Last updated:** [25 April 2021 11:33 UTC](https://discourse.nodered.org/t/how-to-node-red-contrib-volkswagen-we/44685 "2021-04-25T11:33:37Z")

</div>

Hi, I just installed node-red-contrib-volkswagen-we and I have logged in. Thats all I have til now. Now I dont know how to get Informations from the car. I have a e-Up and I want to read the battery status e.g. 90% C…

---

## [Send reset to a trigger node](https://discourse.nodered.org/t/send-reset-to-a-trigger-node/44669)

<div class="topic-metadata">

**Author:** [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Replies:** 4\
**Last updated:** [25 April 2021 10:54 UTC](https://discourse.nodered.org/t/send-reset-to-a-trigger-node/44669 "2021-04-25T10:54:50Z")

</div>

Hello i do check for a device if the ping is false i got a Telegram Message! because i don't like to get every 30Second a Message i have added a trigger Node to wait 180min. I have a manual inject Node with the msg.re…

---

## [RBG LED Strip Color Flow](https://discourse.nodered.org/t/rbg-led-strip-color-flow/44675)

<div class="topic-metadata">

**Author:** [@manjotsc](https://discourse.nodered.org/u/manjotsc)\
**Replies:** 0\
**Last updated:** [24 April 2021 21:44 UTC](https://discourse.nodered.org/t/rbg-led-strip-color-flow/44675 "2021-04-24T21:44:43Z")

</div>

Hi, I found this color loop script on reddit. This script works for controlling rgb led strips in node red. But how can I make colors fade rather than hard change. \[{"id":"c41004d0.f859c8","type":"tab","label":"Flow …

---

## [Get a warning when binary\_sensor is unavailable](https://discourse.nodered.org/t/get-a-warning-when-binary-sensor-is-unavailable/44674)

<div class="topic-metadata">

**Author:** [@neoyang](https://discourse.nodered.org/u/neoyang)\
**Replies:** 1\
**Last updated:** [25 April 2021 09:15 UTC](https://discourse.nodered.org/t/get-a-warning-when-binary-sensor-is-unavailable/44674 "2021-04-25T09:15:12Z")

</div>

I am working on get a warning when any one of the binary\_sensors becomes unavailable. my code is as below, my question is that I can get a warning but I am not able to show which sensors they are? \[{"id":"525511a0.bb89…

---

## [Function with multiple inputs and outputs](https://discourse.nodered.org/t/function-with-multiple-inputs-and-outputs/44671)

<div class="topic-metadata">

**Author:** [@pawael](https://discourse.nodered.org/u/pawael)\
**Replies:** 8\
**Last updated:** [25 April 2021 08:39 UTC](https://discourse.nodered.org/t/function-with-multiple-inputs-and-outputs/44671 "2021-04-25T08:39:09Z")

</div>

Hi, I want to create a function with multiple inputs and multiple outputs. I use 2 illumination sensors and I want to specify my multiple outputs. Here ist my code context.voga = context.voga; context.grtn = context.…

---

## [Node red doesn't restart after npm audit fix](https://discourse.nodered.org/t/node-red-doesnt-restart-after-npm-audit-fix/44652)

<div class="topic-metadata">

**Author:** [@danipenn](https://discourse.nodered.org/u/danipenn)\
**Replies:** 14\
**Last updated:** [24 April 2021 19:17 UTC](https://discourse.nodered.org/t/node-red-doesnt-restart-after-npm-audit-fix/44652 "2021-04-24T19:17:45Z")

</div>

Hi to all, I've a big big problem, PLEASE HELP :sob: i'm desperate, it's about some month that I work on a project and.... I've not flow backup the story is: I need to use moment inside a function node and after look…

---

## [Determine the local time in function node](https://discourse.nodered.org/t/determine-the-local-time-in-function-node/44502)

<div class="topic-metadata">

**Author:** [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Replies:** 8\
**Last updated:** [24 April 2021 17:45 UTC](https://discourse.nodered.org/t/determine-the-local-time-in-function-node/44502 "2021-04-24T17:45:01Z")

</div>

I have a few scenarios where I need to get the current time in a function node for example to generate a filename based on the current timestamp. I don't want to use an external node as it would complicate the flow, and …

---

## [Smart Nora 1.0.3 installation problem](https://discourse.nodered.org/t/smart-nora-1-0-3-installation-problem/44548)

<div class="topic-metadata">

**Author:** [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Replies:** 10\
**Last updated:** [24 April 2021 16:40 UTC](https://discourse.nodered.org/t/smart-nora-1-0-3-installation-problem/44548 "2021-04-24T16:40:39Z")

</div>

Hello All, Recently I installed successfully the node-red-contrib-smartnora node, version 1.0.2 on both a TrueNAS jail and on a Raspberry Pi 1B. Yesterday evening I updated successfully some nodes through the "Palette"…

---

## [Help with alexa home node to automate diy spa bath heater with sonoff th16 temperature controlled relay](https://discourse.nodered.org/t/help-with-alexa-home-node-to-automate-diy-spa-bath-heater-with-sonoff-th16-temperature-controlled-relay/40470)

<div class="topic-metadata">

**Author:** [@Robmak](https://discourse.nodered.org/u/Robmak)\
**Replies:** 10\
**Last updated:** [24 April 2021 15:55 UTC](https://discourse.nodered.org/t/help-with-alexa-home-node-to-automate-diy-spa-bath-heater-with-sonoff-th16-temperature-controlled-relay/40470 "2021-04-24T15:55:56Z")

</div>

I have the knowledge to develop this flow on all issues apart from getting node red to get the temp from ewelink to compare the temp against the temp of the set temp value stored in alexa, I have already got alexa to spe…

---

## [Node-red-contrib-home-assistant-websocket using msg.payload](https://discourse.nodered.org/t/node-red-contrib-home-assistant-websocket-using-msg-payload/44628)

<div class="topic-metadata">

**Author:** [@ajocius](https://discourse.nodered.org/u/ajocius)\
**Replies:** 4\
**Last updated:** [24 April 2021 15:16 UTC](https://discourse.nodered.org/t/node-red-contrib-home-assistant-websocket-using-msg-payload/44628 "2021-04-24T15:16:32Z")

</div>

I have 'node-red-contrib-home-assistant-websocket' in my pallete. Using it to send command open or close door depending on temperature measure. So I have msg.payload value either 'cover.open\_cover' or 'cover.close\_cover'…

---

## [HomeAssistant History in Function](https://discourse.nodered.org/t/homeassistant-history-in-function/44657)

<div class="topic-metadata">

**Author:** [@PrayerfulDrop](https://discourse.nodered.org/u/PrayerfulDrop)\
**Replies:** 0\
**Last updated:** [24 April 2021 13:47 UTC](https://discourse.nodered.org/t/homeassistant-history-in-function/44657 "2021-04-24T13:47:27Z")

</div>

I deeply apologize about the n00bie request but I cannot find anywhere on how to acquire the history array to determine last changed state of a person within a function. I have figured out how to use the HA websocket ap…

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

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