# General

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

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

**Page:** 298

---

## [How to access Db2 via Node-RED flow](https://discourse.nodered.org/t/how-to-access-db2-via-node-red-flow/70242)

<div class="topic-metadata">

**Author:** [@mamoruniimi](https://discourse.nodered.org/u/mamoruniimi)\
**Replies:** 0\
**Last updated:** [8 November 2022 08:44 UTC](https://discourse.nodered.org/t/how-to-access-db2-via-node-red-flow/70242 "2022-11-08T08:44:22Z")

</div>

I would like to know How to access Db2 via Node-RED flow. In IBM Cloud, I launched an application using catalogue named " Node-RED". That application is deployed with Cloudant by default. Creating Node-RED flow, I tried…

---

## [Sending different strings from an array over a serial port](https://discourse.nodered.org/t/sending-different-strings-from-an-array-over-a-serial-port/70085)

<div class="topic-metadata">

**Author:** [@vincesnider](https://discourse.nodered.org/u/vincesnider)\
**Replies:** 8\
**Last updated:** [8 November 2022 07:11 UTC](https://discourse.nodered.org/t/sending-different-strings-from-an-array-over-a-serial-port/70085 "2022-11-08T07:11:00Z")

</div>

I'm currently trying to build something to communicate with a controller via a COM/serial port. I use the "serial-request" module for this. The controller accepts for communication: "Communications format • The comman…

---

## [Join node with functions](https://discourse.nodered.org/t/join-node-with-functions/70233)

<div class="topic-metadata">

**Author:** [@andro](https://discourse.nodered.org/u/andro)\
**Replies:** 2\
**Last updated:** [8 November 2022 05:46 UTC](https://discourse.nodered.org/t/join-node-with-functions/70233 "2022-11-08T05:46:24Z")

</div>

Typically one wants to post-process HTML responses or sensor data, say. As a newbie, my approach is to have function nodes to do the work, use the join node to aggregate the modifications and send the output to the next …

---

## [Can not edit/write text](https://discourse.nodered.org/t/can-not-edit-write-text/70229)

<div class="topic-metadata">

**Author:** [@LukasSmolarik](https://discourse.nodered.org/u/LukasSmolarik)\
**Replies:** 3\
**Last updated:** [7 November 2022 22:07 UTC](https://discourse.nodered.org/t/can-not-edit-write-text/70229 "2022-11-07T22:07:48Z")

</div>

Hello i can not write to text editor. Nothing Why?

---

## [Ability to do diff outside project mode + some enhancements](https://discourse.nodered.org/t/ability-to-do-diff-outside-project-mode-some-enhancements/70177)

<div class="topic-metadata">

**Author:** [@SandeepA](https://discourse.nodered.org/u/SandeepA)\
**Replies:** 2\
**Last updated:** [7 November 2022 19:17 UTC](https://discourse.nodered.org/t/ability-to-do-diff-outside-project-mode-some-enhancements/70177 "2022-11-07T19:17:32Z")

</div>

Hi, In Projects mode - one of the functionalities available is diff . Its one of the best functionalities in terms of knowing what changed. Is it possible to do a diff outside - i.e user pastes a flow and this pasted f…

---

## [Telegram Reply node is NOT working?](https://discourse.nodered.org/t/telegram-reply-node-is-not-working/70222)

<div class="topic-metadata">

**Author:** [@RavinderSingh13](https://discourse.nodered.org/u/RavinderSingh13)\
**Replies:** 24\
**Last updated:** [7 November 2022 21:13 UTC](https://discourse.nodered.org/t/telegram-reply-node-is-not-working/70222 "2022-11-07T21:13:04Z")

</div>

Hello node-red experts, Greetings!! I have been working on creating a telegram bot associated with node-red, which will ask user a series of questions and user need to respond them. Now if you see I am expecting when …

---

## [Convert serial messages into object](https://discourse.nodered.org/t/convert-serial-messages-into-object/70223)

<div class="topic-metadata">

**Author:** [@zinocks](https://discourse.nodered.org/u/zinocks)\
**Replies:** 4\
**Last updated:** [7 November 2022 21:01 UTC](https://discourse.nodered.org/t/convert-serial-messages-into-object/70223 "2022-11-07T21:01:05Z")

</div>

Hi, I have an MPPT Solar controller that sends me on serial port, every second, this three separated messages: CS: 5 VPV: 12 HDS: 11 Node red treats them as separated messages, because they force me to split them by…

---

## [Using Inject node for MQTT Payload](https://discourse.nodered.org/t/using-inject-node-for-mqtt-payload/70217)

<div class="topic-metadata">

**Author:** [@syedfarrukhqamar](https://discourse.nodered.org/u/syedfarrukhqamar)\
**Replies:** 3\
**Last updated:** [7 November 2022 13:47 UTC](https://discourse.nodered.org/t/using-inject-node-for-mqtt-payload/70217 "2022-11-07T13:47:47Z")

</div>

Goal: I want to inject mqtt payload after some intervals so I thought to use inject node. Issue: it is not working. I have added the MQTT topic in the topic field but I don't know how to get the payload can some one gu…

---

## [I always gettin undefined Error if i merge 2 Messages in a Function Node](https://discourse.nodered.org/t/i-always-gettin-undefined-error-if-i-merge-2-messages-in-a-function-node/70220)

<div class="topic-metadata">

**Author:** [@Starfoxfs](https://discourse.nodered.org/u/Starfoxfs)\
**Replies:** 5\
**Last updated:** [7 November 2022 18:22 UTC](https://discourse.nodered.org/t/i-always-gettin-undefined-error-if-i-merge-2-messages-in-a-function-node/70220 "2022-11-07T18:22:49Z")

</div>

Hi, i always gettin a TypeError: Cannot read properties of undefined (reading 'TotalStartTime')" If i want to use 2 Merged Messages in a Function Node. When i connect the Node coming from Influx (Read) to the Function…

---

## [Question: Optimize msg traffic](https://discourse.nodered.org/t/question-optimize-msg-traffic/70057)

<div class="topic-metadata">

**Author:** [@Sandmman](https://discourse.nodered.org/u/Sandmman)\
**Replies:** 10\
**Last updated:** [7 November 2022 16:06 UTC](https://discourse.nodered.org/t/question-optimize-msg-traffic/70057 "2022-11-07T16:06:09Z")

</div>

Hi, One thing I have noticed is that NR or HA, but in NR at least the message layout differs wildly, sometimes the entity\_id is in the payload, sometimes it IS the payload and sometime it is located in the msg.data, als…

---

## [What is wrong with this?](https://discourse.nodered.org/t/what-is-wrong-with-this/70197)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 9\
**Last updated:** [7 November 2022 14:38 UTC](https://discourse.nodered.org/t/what-is-wrong-with-this/70197 "2022-11-07T14:38:40Z")

</div>

IF YOU KNOW - JUST LIKE THE POST -DONT GIVE OUT THE ANSWER :slight\_smile: I was working on real flow late last night and needed to change from outputting on payload to payload.text to feed the mastodon node instead …

---

## [Http Request with Todays Date](https://discourse.nodered.org/t/http-request-with-todays-date/70219)

<div class="topic-metadata">

**Author:** [@damica51](https://discourse.nodered.org/u/damica51)\
**Replies:** 1\
**Last updated:** [7 November 2022 14:37 UTC](https://discourse.nodered.org/t/http-request-with-todays-date/70219 "2022-11-07T14:37:03Z")

</div>

I would like to use a Http Request with a start\_date and end\_date both set to (now) I just need the date and not the time. This would be example: \[type or paste code here\](https://xxxxx.xxxxxxx.com/api/request\_csv.php?…

---

## [Getting API/get http request caller IP address](https://discourse.nodered.org/t/getting-api-get-http-request-caller-ip-address/70189)

<div class="topic-metadata">

**Author:** [@ThibautRuy](https://discourse.nodered.org/u/ThibautRuy)\
**Replies:** 3\
**Last updated:** [7 November 2022 14:05 UTC](https://discourse.nodered.org/t/getting-api-get-http-request-caller-ip-address/70189 "2022-11-07T14:05:42Z")

</div>

Hi, I am using an HTTP GET request node to receive calls from a client application from users. unfortunately, I cannot find the ip of the users in the msg coming out of the HTTP GET node. I tried to use msg.req data, bu…

---

## [How we can load embedded Node-red using API?](https://discourse.nodered.org/t/how-we-can-load-embedded-node-red-using-api/70198)

<div class="topic-metadata">

**Author:** [@arzooshah](https://discourse.nodered.org/u/arzooshah)\
**Replies:** 1\
**Last updated:** [7 November 2022 11:39 UTC](https://discourse.nodered.org/t/how-we-can-load-embedded-node-red-using-api/70198 "2022-11-07T11:39:25Z")

</div>

Http Call -\> ${baseUri}/api/ui/; Display response in iframe but it's not working.

---

## [Switch node - multiple values in same conditions](https://discourse.nodered.org/t/switch-node-multiple-values-in-same-conditions/70019)

<div class="topic-metadata">

**Author:** [@boo](https://discourse.nodered.org/u/boo)\
**Replies:** 3\
**Last updated:** [7 November 2022 11:18 UTC](https://discourse.nodered.org/t/switch-node-multiple-values-in-same-conditions/70019 "2022-11-07T11:18:47Z")

</div>

Hi can someone help me create a switch node with multiple values like for example if msg.payload can push 1,2,5,10 then switch node should run two conditions with == for 1,2,5,10 and != for 1,2,5,10 how do i use multip…

---

## [Rename the payload coming from MQTT-IN node?](https://discourse.nodered.org/t/rename-the-payload-coming-from-mqtt-in-node/70193)

<div class="topic-metadata">

**Author:** [@Starfoxfs](https://discourse.nodered.org/u/Starfoxfs)\
**Replies:** 12\
**Last updated:** [7 November 2022 10:57 UTC](https://discourse.nodered.org/t/rename-the-payload-coming-from-mqtt-in-node/70193 "2022-11-07T10:57:02Z")

</div>

Good Morning, as Topic says, how can i rename a msg.payload to eg. msg.payload2 coming from a MQTT OUT Node ? From a Inject Node its no Problem here can i directly rename it in the Node but in MQTT Node not.

---

## [Need to basic auth only some http node](https://discourse.nodered.org/t/need-to-basic-auth-only-some-http-node/70203)

<div class="topic-metadata">

**Author:** [@yingkhun](https://discourse.nodered.org/u/yingkhun)\
**Replies:** 1\
**Last updated:** [7 November 2022 10:09 UTC](https://discourse.nodered.org/t/need-to-basic-auth-only-some-http-node/70203 "2022-11-07T10:09:30Z")

</div>

I have enable HTTP Node security like this httpNodeAuth: {user:"user",pass:"$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN."}, In this cast if I need to use basic auth only some node ex. image node p…

---

## [Current monitoring with RPi](https://discourse.nodered.org/t/current-monitoring-with-rpi/69995)

<div class="topic-metadata">

**Author:** [@JoshNZ](https://discourse.nodered.org/u/JoshNZ)\
**Replies:** 6\
**Last updated:** [7 November 2022 08:53 UTC](https://discourse.nodered.org/t/current-monitoring-with-rpi/69995 "2022-11-07T08:53:13Z")

</div>

Hi guys, I have a RPi running an instance of node red which controls a timber kiln, via 4 solid state relays for heat, vents, compressor, and circulation fans. All running very well thanks to help from this group in the…

---

## [Subscribe to the same topic multiple times and find problems](https://discourse.nodered.org/t/subscribe-to-the-same-topic-multiple-times-and-find-problems/70160)

<div class="topic-metadata">

**Author:** [@joe1](https://discourse.nodered.org/u/joe1)\
**Replies:** 11\
**Last updated:** [7 November 2022 08:29 UTC](https://discourse.nodered.org/t/subscribe-to-the-same-topic-multiple-times-and-find-problems/70160 "2022-11-07T08:29:03Z")

</div>

In practice, you should not subscribe to the same topic repeatedly, but try to subscribe to the same topic repeatedly in the test. If you find a problem, I am a beginner. Maybe it is not a problem. Looking forward to the…

---

## [How to archive a SQLite database](https://discourse.nodered.org/t/how-to-archive-a-sqlite-database/70083)

<div class="topic-metadata">

**Author:** [@Parowek](https://discourse.nodered.org/u/Parowek)\
**Replies:** 9\
**Last updated:** [7 November 2022 08:16 UTC](https://discourse.nodered.org/t/how-to-archive-a-sqlite-database/70083 "2022-11-07T08:16:21Z")

</div>

Hello I have an SQLite databese in which i save temperature and humidity data with timestamps (epoch). I want to archive the databse by months. So that when november ends my data gets saved to another database for decem…

---

## [Average using Function node](https://discourse.nodered.org/t/average-using-function-node/70081)

<div class="topic-metadata">

**Author:** [@Jhankhana](https://discourse.nodered.org/u/Jhankhana)\
**Replies:** 12\
**Last updated:** [7 November 2022 05:48 UTC](https://discourse.nodered.org/t/average-using-function-node/70081 "2022-11-07T05:48:49Z")

</div>

Hello, Please guide regarding performing average of 4 data coming from sensor using function node. I have tried something as below. var val1 = parseInt(flow.get("val1")); msg.payload = parseInt(flow.get("val2")) + val…

---

## [Website opens in chrome but gives error message when using node red http node](https://discourse.nodered.org/t/website-opens-in-chrome-but-gives-error-message-when-using-node-red-http-node/70071)

<div class="topic-metadata">

**Author:** [@wassa350](https://discourse.nodered.org/u/wassa350)\
**Replies:** 15\
**Last updated:** [7 November 2022 01:41 UTC](https://discourse.nodered.org/t/website-opens-in-chrome-but-gives-error-message-when-using-node-red-http-node/70071 "2022-11-07T01:41:45Z")

</div>

If i open the following link in chrome it works fine and displays all data, http://www.bom.gov.au/fwo/IDN60801/IDN60801.94767.json but if i use same in node red http request node I get the following in debug. " Your a…

---

## [Setting a unique ID for a node](https://discourse.nodered.org/t/setting-a-unique-id-for-a-node/70169)

<div class="topic-metadata">

**Author:** [@andro](https://discourse.nodered.org/u/andro)\
**Replies:** 4\
**Last updated:** [6 November 2022 23:51 UTC](https://discourse.nodered.org/t/setting-a-unique-id-for-a-node/70169 "2022-11-06T23:51:38Z")

</div>

The help for the template widget states: \<div id="{{'my\_'+$id}}" style="{{'color:'+theme.base\_color}}"\>Some text\</div\> \<script\> (function(scope) { scope.$watch('msg', function(msg) { if (msg) { // Do somethi…

---

## [Http in and http out login setup](https://discourse.nodered.org/t/http-in-and-http-out-login-setup/70151)

<div class="topic-metadata">

**Author:** [@ashritha.achu2001](https://discourse.nodered.org/u/ashritha.achu2001)\
**Replies:** 0\
**Last updated:** [6 November 2022 08:39 UTC](https://discourse.nodered.org/t/http-in-and-http-out-login-setup/70151 "2022-11-06T08:39:51Z")

</div>

The above image is my iot connection for sensor device. I want to set up user authentication using login form and store that data in cloudant db. On authenticating it must redirect to Smart Waste Management tab. Can a…

---

## [Amazon Echo/Alexa](https://discourse.nodered.org/t/amazon-echo-alexa/70138)

<div class="topic-metadata">

**Author:** [@fraser](https://discourse.nodered.org/u/fraser)\
**Replies:** 2\
**Last updated:** [6 November 2022 21:18 UTC](https://discourse.nodered.org/t/amazon-echo-alexa/70138 "2022-11-06T21:18:43Z")

</div>

I've recently started sorting out my home automation again since moving house. I've got a zwave network which uses zwavejs2mqtt. Also a new echo show 8. Previously I used node-red-contrib-alexa-local, unfortunately this…

---

## [tuya smart - Data not readable](https://discourse.nodered.org/t/tuya-smart-data-not-readable/69066)

<div class="topic-metadata">

**Author:** [@libsch](https://discourse.nodered.org/u/libsch)\
**Replies:** 14\
**Last updated:** [6 November 2022 21:00 UTC](https://discourse.nodered.org/t/tuya-smart-data-not-readable/69066 "2022-11-06T21:00:11Z")

</div>

I use node-red-contrib-tuya-smart-device. Unfortunately I can't do anything with the format of the data. Can someone help me? Best regards.

---

## [How to create communication channel between 2 nodes?](https://discourse.nodered.org/t/how-to-create-communication-channel-between-2-nodes/70091)

<div class="topic-metadata">

**Author:** [@RavinderSingh13](https://discourse.nodered.org/u/RavinderSingh13)\
**Replies:** 15\
**Last updated:** [6 November 2022 20:49 UTC](https://discourse.nodered.org/t/how-to-create-communication-channel-between-2-nodes/70091 "2022-11-06T20:49:43Z")

</div>

Hello Node red community, I have created a very simple nod-red Flow as follows: Now question comes is: Whenever I am entering 1 option its going to JS function and accordingly it prints values. But my question is ho…

---

## [Support to get the modbus connections running ( rpi4+Moxa NP5110+heat pump)](https://discourse.nodered.org/t/support-to-get-the-modbus-connections-running-rpi4-moxa-np5110-heat-pump/70178)

<div class="topic-metadata">

**Author:** [@GuE](https://discourse.nodered.org/u/GuE)\
**Replies:** 0\
**Last updated:** [6 November 2022 16:43 UTC](https://discourse.nodered.org/t/support-to-get-the-modbus-connections-running-rpi4-moxa-np5110-heat-pump/70178 "2022-11-06T16:43:56Z")

</div>

Hello everyone. I'm new to the forum and thank you in advance for your help and patience. I would like to log some data from my heat pump. Therefore I am trying to get the modbus connections running from my heat pump …

---

## [Node-red-contrib-google-smarthome + cloudflare access](https://discourse.nodered.org/t/node-red-contrib-google-smarthome-cloudflare-access/70162)

<div class="topic-metadata">

**Author:** [@Michielo](https://discourse.nodered.org/u/Michielo)\
**Replies:** 1\
**Last updated:** [6 November 2022 13:38 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome-cloudflare-access/70162 "2022-11-06T13:38:03Z")

</div>

Hi all, These last few days I have been breaking my head (not sure if this is a valid English expression) trying to secure access to my google smarthome server using Cloudflare Access. My use case: Raspbery pi 1B run…

---

## [Connecting Allen Bradely PLC with Node-Red](https://discourse.nodered.org/t/connecting-allen-bradely-plc-with-node-red/70166)

<div class="topic-metadata">

**Author:** [@prathameshpitale](https://discourse.nodered.org/u/prathameshpitale)\
**Replies:** 1\
**Last updated:** [6 November 2022 13:12 UTC](https://discourse.nodered.org/t/connecting-allen-bradely-plc-with-node-red/70166 "2022-11-06T13:12:52Z")

</div>

I am new to PLC & NodeRed world. I understand basics of communication with PLC. I am studying Internet to connect & Acquire Data from AB Micrologix 1200 PLC. Micrologix 1200 Uses DF1 Protocol Over RS232(Serial Port). T…

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

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