# General

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

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

**Page:** 390

---

## [Split two strings into key value pairs](https://discourse.nodered.org/t/split-two-strings-into-key-value-pairs/61458)

<div class="topic-metadata">

**Author:** [@tas22](https://discourse.nodered.org/u/tas22)\
**Replies:** 2\
**Last updated:** [18 April 2022 19:59 UTC](https://discourse.nodered.org/t/split-two-strings-into-key-value-pairs/61458 "2022-04-18T19:59:00Z")

</div>

Hi guys, I am new to the forum! Excited to be apart of this community. I was trying to research and figure out how to solve this problem. I have two key values with strings that I am merging into individual key value pa…

---

## [Passing output from a range if it hasn't changed in the last n minutes](https://discourse.nodered.org/t/passing-output-from-a-range-if-it-hasnt-changed-in-the-last-n-minutes/61288)

<div class="topic-metadata">

**Author:** [@BerkshireBugsy](https://discourse.nodered.org/u/BerkshireBugsy)\
**Replies:** 4\
**Last updated:** [18 April 2022 18:52 UTC](https://discourse.nodered.org/t/passing-output-from-a-range-if-it-hasnt-changed-in-the-last-n-minutes/61288 "2022-04-18T18:52:27Z")

</div>

I am creating a flow in Node Red (HA)which changes the colour of the light on an Amazon Flex device depending on what range the electricity consumption of the house is. The entity (We will call it Emoncms Import) contai…

---

## [Change JSON output (to line protocol or other JSON)](https://discourse.nodered.org/t/change-json-output-to-line-protocol-or-other-json/61425)

<div class="topic-metadata">

**Author:** [@m8dhouse](https://discourse.nodered.org/u/m8dhouse)\
**Replies:** 3\
**Last updated:** [18 April 2022 16:44 UTC](https://discourse.nodered.org/t/change-json-output-to-line-protocol-or-other-json/61425 "2022-04-18T16:44:56Z")

</div>

Hi I have a solar data input that gives me a JSON. I need to convert it to line protocol. Input: {"forecasts":\[{"pv\_estimate":2.986,"pv\_estimate10":2.923,"pv\_estimate90":2.986,"period\_end":"2022-04-17T09:00:00.0000000Z…

---

## [Payload to base64](https://discourse.nodered.org/t/payload-to-base64/61447)

<div class="topic-metadata">

**Author:** [@rex](https://discourse.nodered.org/u/rex)\
**Replies:** 4\
**Last updated:** [18 April 2022 15:05 UTC](https://discourse.nodered.org/t/payload-to-base64/61447 "2022-04-18T15:05:27Z")

</div>

I'm trying to encode a simple string into base64 and it doesn't work. Where is my mistake? This is my simple flow. It is an injection of payload string and I use msg.payload.toString('base64') function that return the p…

---

## [Get three highest avg values](https://discourse.nodered.org/t/get-three-highest-avg-values/61426)

<div class="topic-metadata">

**Author:** [@lundig](https://discourse.nodered.org/u/lundig)\
**Replies:** 4\
**Last updated:** [18 April 2022 13:42 UTC](https://discourse.nodered.org/t/get-three-highest-avg-values/61426 "2022-04-18T13:42:12Z")

</div>

Hello, I have a sensor that shows the actual energy consumption. I want to calculate the avg of the three highest values of a month. Anyone? :slight\_smile: Regards

---

## [Help with base64 image](https://discourse.nodered.org/t/help-with-base64-image/61430)

<div class="topic-metadata">

**Author:** [@Patrick\_UK](https://discourse.nodered.org/u/Patrick_UK)\
**Replies:** 2\
**Last updated:** [18 April 2022 12:49 UTC](https://discourse.nodered.org/t/help-with-base64-image/61430 "2022-04-18T12:49:27Z")

</div>

I am trying to save a base64 image to a file but I don't seem to be able to get it to work. Any assistance / guidance would be appreciated. Tried using a function module and also just saving it to a file with a base64 …

---

## [Node-red x Odoo : Display shippings (model = stock.picking) in a table](https://discourse.nodered.org/t/node-red-x-odoo-display-shippings-model-stock-picking-in-a-table/61436)

<div class="topic-metadata">

**Author:** [@cpedroni](https://discourse.nodered.org/u/cpedroni)\
**Replies:** 0\
**Last updated:** [18 April 2022 12:49 UTC](https://discourse.nodered.org/t/node-red-x-odoo-display-shippings-model-stock-picking-in-a-table/61436 "2022-04-18T12:49:40Z")

</div>

Hello, I am currently trying to display data from Odoo in a table. I managed to do it for the orders as well as the invoices. Now I want to display the shippings, and the model is stock.picking: Here is my flow : \[ …

---

## [Extracting a value from an MS-SQL database](https://discourse.nodered.org/t/extracting-a-value-from-an-ms-sql-database/61228)

<div class="topic-metadata">

**Author:** [@milner236](https://discourse.nodered.org/u/milner236)\
**Replies:** 8\
**Last updated:** [18 April 2022 12:47 UTC](https://discourse.nodered.org/t/extracting-a-value-from-an-ms-sql-database/61228 "2022-04-18T12:47:38Z")

</div>

Hello everyone. Assuming I have the following SQL table (ignore the fact that the picture is from excel)- And I receive the value 'Jerry' in the payload, how can I extract his phone number from the MS-SQL table? Muc…

---

## [Http request with windows-1250 encoding problem](https://discourse.nodered.org/t/http-request-with-windows-1250-encoding-problem/61411)

<div class="topic-metadata">

**Author:** [@jelinek](https://discourse.nodered.org/u/jelinek)\
**Replies:** 4\
**Last updated:** [18 April 2022 12:37 UTC](https://discourse.nodered.org/t/http-request-with-windows-1250-encoding-problem/61411 "2022-04-18T12:37:22Z")

</div>

I am having troubles loading HTTP request when the page is in windows-1250 encoding. The http request component parses the input into UTF-8 incorrectly and that seems to be irreversible. Any output after that is basicall…

---

## [Compose Base64 string from different input values](https://discourse.nodered.org/t/compose-base64-string-from-different-input-values/61429)

<div class="topic-metadata">

**Author:** [@tjvandam](https://discourse.nodered.org/u/tjvandam)\
**Replies:** 1\
**Last updated:** [18 April 2022 10:40 UTC](https://discourse.nodered.org/t/compose-base64-string-from-different-input-values/61429 "2022-04-18T10:40:28Z")

</div>

I need some help composing a new Base64 string from a msg.payload. I am using a function node to do this. I am using the Buffer. function. I have managed to construct all needed parts of the new msg.payload, however I ca…

---

## [Component how can i import factory component](https://discourse.nodered.org/t/component-how-can-i-import-factory-component/61428)

<div class="topic-metadata">

**Author:** [@bilel](https://discourse.nodered.org/u/bilel)\
**Replies:** 2\
**Last updated:** [18 April 2022 10:20 UTC](https://discourse.nodered.org/t/component-how-can-i-import-factory-component/61428 "2022-04-18T10:20:24Z")

</div>

iù trying to build a scada inteface using node red but with using the svg cant find any of factory component how can i import them (moteur ,ventilateur)

---

## [Authentication failed on github](https://discourse.nodered.org/t/authentication-failed-on-github/61419)

<div class="topic-metadata">

**Author:** [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Replies:** 2\
**Last updated:** [18 April 2022 08:29 UTC](https://discourse.nodered.org/t/authentication-failed-on-github/61419 "2022-04-18T08:29:54Z")

</div>

Hi nodered experts, I am trying to use the nodered projects features. I already setup my github repositories, however everytime I push to create new branch, it always ask me my credentials I already put my credentia…

---

## [Uncaught ReferenceError when deploy flow](https://discourse.nodered.org/t/uncaught-referenceerror-when-deploy-flow/61277)

<div class="topic-metadata">

**Author:** [@jinx](https://discourse.nodered.org/u/jinx)\
**Replies:** 4\
**Last updated:** [18 April 2022 07:53 UTC](https://discourse.nodered.org/t/uncaught-referenceerror-when-deploy-flow/61277 "2022-04-18T07:53:48Z")

</div>

Node-RED version: 2.2.2(Maintenance Release) Installation steps: git clone GitHub - node-red/node-red: Low-code programming for event-driven applications cd node-red npm install npm run build npm start Problem: Aft…

---

## [New web tab from nodered](https://discourse.nodered.org/t/new-web-tab-from-nodered/61417)

<div class="topic-metadata">

**Author:** [@SuperMan](https://discourse.nodered.org/u/SuperMan)\
**Replies:** 2\
**Last updated:** [18 April 2022 07:31 UTC](https://discourse.nodered.org/t/new-web-tab-from-nodered/61417 "2022-04-18T07:31:31Z")

</div>

Hi Friends, I'm just trying to open a new web tab from nodered Dashboard. Not a static IP address but the Ip address is selected from the a table( msg.topic). I've tried this with the table, but when the links open its…

---

## [I cant update my data on editable table-ui](https://discourse.nodered.org/t/i-cant-update-my-data-on-editable-table-ui/61388)

<div class="topic-metadata">

**Author:** [@loxinoi](https://discourse.nodered.org/u/loxinoi)\
**Replies:** 1\
**Last updated:** [18 April 2022 07:02 UTC](https://discourse.nodered.org/t/i-cant-update-my-data-on-editable-table-ui/61388 "2022-04-18T07:02:34Z")

</div>

Hello, i have an issues like i want to update my table display after editing it, but everytime i refresh my browser it cameback to the default payload. Here's the code \[ { "id": "00466a35d85535bb", "…

---

## [Looking for tips, NR control kiosk - open webpage](https://discourse.nodered.org/t/looking-for-tips-nr-control-kiosk-open-webpage/61372)

<div class="topic-metadata">

**Author:** [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Replies:** 13\
**Last updated:** [17 April 2022 18:39 UTC](https://discourse.nodered.org/t/looking-for-tips-nr-control-kiosk-open-webpage/61372 "2022-04-17T18:39:40Z")

</div>

Hi! Looking for advise how to start. Trying to find examples on command line control of a kiosk browser did not solve my challenge. What i want to achieve is the following. I receive a changing url with mqtt. This u…

---

## [Consume an array into function to do math](https://discourse.nodered.org/t/consume-an-array-into-function-to-do-math/61374)

<div class="topic-metadata">

**Author:** [@Tomadoggy](https://discourse.nodered.org/u/Tomadoggy)\
**Replies:** 5\
**Last updated:** [17 April 2022 14:08 UTC](https://discourse.nodered.org/t/consume-an-array-into-function-to-do-math/61374 "2022-04-17T14:08:12Z")

</div>

This likely seems simple but after hours of different attempts, I am unable to resolve. I have an array of two values that I wish to do math on in a function node but don't know how to set the variables within the funct…

---

## [Reading power consumption from Sonoff Dual R3 (Tasmota)](https://discourse.nodered.org/t/reading-power-consumption-from-sonoff-dual-r3-tasmota/61392)

<div class="topic-metadata">

**Author:** [@HaVi](https://discourse.nodered.org/u/HaVi)\
**Replies:** 2\
**Last updated:** [17 April 2022 11:28 UTC](https://discourse.nodered.org/t/reading-power-consumption-from-sonoff-dual-r3-tasmota/61392 "2022-04-17T11:28:45Z")

</div>

My Sonoff Dual R3 is flashed with Tasmota and in NodeRED I can read the status of the switches via MQTT (stat/Fietsen/RESULT). Now I would also like to be able to see the power consumption, preferably with an interval of…

---

## [Split the string into separate values](https://discourse.nodered.org/t/split-the-string-into-separate-values/2818)

<div class="topic-metadata">

**Author:** [@Srijan](https://discourse.nodered.org/u/Srijan)\
**Replies:** 63\
**Last updated:** [17 April 2022 09:49 UTC](https://discourse.nodered.org/t/split-the-string-into-separate-values/2818 "2022-04-17T09:49:48Z")

</div>

hello everyone i m very much confused how to split the string into saparate values . as i have 4 values in a string temperature 2.humidity 3.pir ldr but the values are in the form of string and i want to saparat…

---

## [Unable to install nodes of Modbus and RS485](https://discourse.nodered.org/t/unable-to-install-nodes-of-modbus-and-rs485/61386)

<div class="topic-metadata">

**Author:** [@jinx](https://discourse.nodered.org/u/jinx)\
**Replies:** 3\
**Last updated:** [17 April 2022 08:53 UTC](https://discourse.nodered.org/t/unable-to-install-nodes-of-modbus-and-rs485/61386 "2022-04-17T08:53:49Z")

</div>

Hi, everyone~ I have installed Node-RED 2.2.2 by using npm: npm install -g --unsafe-perm node-red Here is the information when it started: Welcome to Node-RED 17 Apr 14:54:51 - \[info\] Node-RED version: v2.2.2 17 …

---

## [Sharing drive from Windows to Ubuntu on a VM](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368)

<div class="topic-metadata">

**Author:** [@SuperMan](https://discourse.nodered.org/u/SuperMan)\
**Replies:** 9\
**Last updated:** [17 April 2022 01:38 UTC](https://discourse.nodered.org/t/sharing-drive-from-windows-to-ubuntu-on-a-vm/61368 "2022-04-17T01:38:29Z")

</div>

Hi friends, I’m newbie to Nodered. I’m currently running nodered on Ubuntu (normally and in docker) which is in a vm in Windows. I’m trying to map my network drive in windows to Ubuntu. Trying to run Nodered in docker …

---

## [CoAP in Node-RED "Error:getaddrinfo ENOTFOUND" (node-red-contrib-coap)](https://discourse.nodered.org/t/coap-in-node-red-error-getaddrinfo-enotfound-node-red-contrib-coap/61232)

<div class="topic-metadata">

**Author:** [@lOcszp](https://discourse.nodered.org/u/lOcszp)\
**Replies:** 1\
**Last updated:** [16 April 2022 22:00 UTC](https://discourse.nodered.org/t/coap-in-node-red-error-getaddrinfo-enotfound-node-red-contrib-coap/61232 "2022-04-16T22:00:34Z")

</div>

So, I want do an application for my university IOT project and I decided to use node-red, but I'm having some issues specifically with the protocol CoAP in node-red and I don't know the cause. The problem is that, I ca…

---

## [Question: How to clone a subflow?](https://discourse.nodered.org/t/question-how-to-clone-a-subflow/20436)

<div class="topic-metadata">

**Author:** [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Replies:** 3\
**Last updated:** [16 April 2022 19:54 UTC](https://discourse.nodered.org/t/question-how-to-clone-a-subflow/20436 "2022-04-16T19:54:56Z")

</div>

Hello, I recently discovered my love to subflows as they are a very good compromise before rolling out a custom node. Thank you! But what I didn\`t managed is to clone a subflow. In example I have a nicely configured s…

---

## [Issue with extracting information out of an object array](https://discourse.nodered.org/t/issue-with-extracting-information-out-of-an-object-array/61373)

<div class="topic-metadata">

**Author:** [@Fabian911](https://discourse.nodered.org/u/Fabian911)\
**Replies:** 2\
**Last updated:** [16 April 2022 18:26 UTC](https://discourse.nodered.org/t/issue-with-extracting-information-out-of-an-object-array/61373 "2022-04-16T18:26:02Z")

</div>

Hello guys, I have a little trouble withextracting an information out of the last object of an array. I've just copied the path out of the debug but it doesnt work either. Would be nice if somebody could help! …

---

## [Multiple GPIO pins on Raspberry with https://flows.nodered.org/node/node-red-node-pi-gpio](https://discourse.nodered.org/t/multiple-gpio-pins-on-raspberry-with-https-flows-nodered-org-node-node-red-node-pi-gpio/61330)

<div class="topic-metadata">

**Author:** [@mibian](https://discourse.nodered.org/u/mibian)\
**Replies:** 4\
**Last updated:** [16 April 2022 13:10 UTC](https://discourse.nodered.org/t/multiple-gpio-pins-on-raspberry-with-https-flows-nodered-org-node-node-red-node-pi-gpio/61330 "2022-04-16T13:10:25Z")

</div>

I have made a solution, that referenceses several sources for information, a file, a webpage etc. It then determins the proper state for a GPIO pin from the data, and sets it. My problem is that the GPIO node only takes…

---

## [Node-red + Unity via JINT (Javascript .net interpreter)?](https://discourse.nodered.org/t/node-red-unity-via-jint-javascript-net-interpreter/61369)

<div class="topic-metadata">

**Author:** [@BryanOgd](https://discourse.nodered.org/u/BryanOgd)\
**Replies:** 0\
**Last updated:** [16 April 2022 13:05 UTC](https://discourse.nodered.org/t/node-red-unity-via-jint-javascript-net-interpreter/61369 "2022-04-16T13:05:06Z")

</div>

Recently I ran into JINT (a javascript .net interpreter) and a tutorial to use JavaScript and NPM INSIDE Unity builds. NPM Packages are possible Theoretically would it be feasible to embed node-red (even if headless) in…

---

## [Function for collecting 3 answers from Telegram and posting to Google Forms](https://discourse.nodered.org/t/function-for-collecting-3-answers-from-telegram-and-posting-to-google-forms/61362)

<div class="topic-metadata">

**Author:** [@sokomm](https://discourse.nodered.org/u/sokomm)\
**Replies:** 2\
**Last updated:** [16 April 2022 11:15 UTC](https://discourse.nodered.org/t/function-for-collecting-3-answers-from-telegram-and-posting-to-google-forms/61362 "2022-04-16T11:15:27Z")

</div>

Hi, I'm trying to send tree questions via Telegram, collect the answers and post them to Google Forms. I have a working bot and the posting part figured out, the part that am struggling with is the function. It should…

---

## [Is it possible to add gauges dynamically with node-red-dashboard?](https://discourse.nodered.org/t/is-it-possible-to-add-gauges-dynamically-with-node-red-dashboard/61359)

<div class="topic-metadata">

**Author:** [@raylight](https://discourse.nodered.org/u/raylight)\
**Replies:** 3\
**Last updated:** [16 April 2022 06:46 UTC](https://discourse.nodered.org/t/is-it-possible-to-add-gauges-dynamically-with-node-red-dashboard/61359 "2022-04-16T06:46:27Z")

</div>

I'd like to create multiple gauges with the node-red-dashboard in a dynamic way. Let's say I have this dashboard: It was created by manually setting each gauge as the following: But let's say I have the following …

---

## [What is a good term to use for this?](https://discourse.nodered.org/t/what-is-a-good-term-to-use-for-this/61352)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 4\
**Last updated:** [16 April 2022 00:48 UTC](https://discourse.nodered.org/t/what-is-a-good-term-to-use-for-this/61352 "2022-04-16T00:48:58Z")

</div>

I am making a counter that counts. (And loops at the end) The option is I am wanting it to have two modes: 1 - When invoked subsequent times it starts at 1 2 - When invoked subsequent times it continues from the last…

---

## [How to change a number from payload](https://discourse.nodered.org/t/how-to-change-a-number-from-payload/61351)

<div class="topic-metadata">

**Author:** [@johanmeer](https://discourse.nodered.org/u/johanmeer)\
**Replies:** 2\
**Last updated:** [15 April 2022 22:47 UTC](https://discourse.nodered.org/t/how-to-change-a-number-from-payload/61351 "2022-04-15T22:47:44Z")

</div>

Hi!, i'm struggling with my DHT22 sensor. If i do the calibration, the sensor is 5% humidity to high according from 2 other callibrated measuresment tools. Now i thought, maybe i can change the value from the sensor -5. …

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

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