# Latest

**URL:** https://discourse.nodered.org/latest.md?page=507

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

**Page:** 508

---

## [Change node with multiple conditions, around 100](https://discourse.nodered.org/t/change-node-with-multiple-conditions-around-100/67090)

<div class="topic-metadata">

**Author:** [@carvi21](https://discourse.nodered.org/u/carvi21)\
**Replies:** 11\
**Last updated:** [30 August 2022 20:21 UTC](https://discourse.nodered.org/t/change-node-with-multiple-conditions-around-100/67090 "2022-08-30T20:21:41Z")

</div>

Hello there, I'm looking a way to use the Change Node to replace string variable (Mac address) for another string variable( Name of device). I have a bunch of sensors, around 100 devices, that are being receive in my flo…

---

## [Compare negative numbers](https://discourse.nodered.org/t/compare-negative-numbers/67147)

<div class="topic-metadata">

**Author:** [@DrS1981](https://discourse.nodered.org/u/DrS1981)\
**Replies:** 2\
**Last updated:** [30 August 2022 19:35 UTC](https://discourse.nodered.org/t/compare-negative-numbers/67147 "2022-08-30T19:35:44Z")

</div>

Hello, i try a simple compare from negative numbers like this: if (number1 \<\< number2){ result = 1; } if (number1 \>\> number2){ result = 2; } For example: if (-300 \<\< -200){ result =1; } if (-300 \>\> -200){ re…

---

## [Node-red-contrib-modbus: Dynamically Change tcp host IP Address?](https://discourse.nodered.org/t/node-red-contrib-modbus-dynamically-change-tcp-host-ip-address/67079)

<div class="topic-metadata">

**Author:** [@raspberry](https://discourse.nodered.org/u/raspberry)\
**Replies:** 3\
**Last updated:** [30 August 2022 19:02 UTC](https://discourse.nodered.org/t/node-red-contrib-modbus-dynamically-change-tcp-host-ip-address/67079 "2022-08-30T19:02:32Z")

</div>

Hey all, If anyone has excessive experience with node-red-contrib-modbus, I would love to hear any thoughts on how I could accomplish this. I am using a Modbus Read node for data communication with an IP device. This h…

---

## [Extract price value from array, based on timestamp now](https://discourse.nodered.org/t/extract-price-value-from-array-based-on-timestamp-now/67137)

<div class="topic-metadata">

**Author:** [@monsivar](https://discourse.nodered.org/u/monsivar)\
**Replies:** 2\
**Last updated:** [30 August 2022 18:37 UTC](https://discourse.nodered.org/t/extract-price-value-from-array-based-on-timestamp-now/67137 "2022-08-30T18:37:29Z")

</div>

Hi, i need help with an function node I'm trying to do the same as in this tread Extract value from array, based on timestamp from an other sorce, but i'm struggling I have the node-red-contrib-power-saver in my flow. …

---

## [Image appears in "image output" but not in "dashboard"](https://discourse.nodered.org/t/image-appears-in-image-output-but-not-in-dashboard/67087)

<div class="topic-metadata">

**Author:** [@JaljalMehdi](https://discourse.nodered.org/u/JaljalMehdi)\
**Replies:** 2\
**Last updated:** [30 August 2022 18:19 UTC](https://discourse.nodered.org/t/image-appears-in-image-output-but-not-in-dashboard/67087 "2022-08-30T18:19:06Z")

</div>

I send an image from python to node-red via websocket the image appears in "image preview" in the working space which means that the connection is fine and the image was sent\_\_ But it does not appear in the dashboard "I…

---

## [How can I show two different data in one graph](https://discourse.nodered.org/t/how-can-i-show-two-different-data-in-one-graph/66954)

<div class="topic-metadata">

**Author:** [@Sezgin\_krk](https://discourse.nodered.org/u/Sezgin_krk)\
**Replies:** 3\
**Last updated:** [30 August 2022 16:33 UTC](https://discourse.nodered.org/t/how-can-i-show-two-different-data-in-one-graph/66954 "2022-08-30T16:33:12Z")

</div>

Hi; How can I show two different data in one graph. Thank you in advance for your help \[{"id":"be4ba5fc5add8b7d","type":"tab","label":"Flow 17","disabled":false,"info":"","env":\[\]},{"id":"c18eb38d29190239","type":"…

---

## [Predictive Maintenance Using Node-Red, NCD, and Elipsa](https://discourse.nodered.org/t/predictive-maintenance-using-node-red-ncd-and-elipsa/67135)

<div class="topic-metadata">

**Author:** [@elipsa](https://discourse.nodered.org/u/elipsa)\
**Replies:** 0\
**Last updated:** [30 August 2022 16:24 UTC](https://discourse.nodered.org/t/predictive-maintenance-using-node-red-ncd-and-elipsa/67135 "2022-08-30T16:24:54Z")

</div>

Utilizing NCD's Predictive Maintenance V3 sensor, we were able to utilize a simple node-red flow to implement automated AI-based predictive maintenance monitoring a series of different equipment types. Simply using v…

---

## [Predictive Maintenance Node](https://discourse.nodered.org/t/predictive-maintenance-node/57148)

<div class="topic-metadata">

**Author:** [@elipsa](https://discourse.nodered.org/u/elipsa)\
**Replies:** 3\
**Last updated:** [30 August 2022 16:17 UTC](https://discourse.nodered.org/t/predictive-maintenance-node/57148 "2022-08-30T16:17:31Z")

</div>

Hi everyone, we just published our first custom node: node-red-contrib-elipsa-predictive-maintenance-cloud The node requires an API Access Key for authentication but you can get one free on our website: www.elipsa.ai T…

---

## [Insert into json object based on condition](https://discourse.nodered.org/t/insert-into-json-object-based-on-condition/67123)

<div class="topic-metadata">

**Author:** [@greengolfer](https://discourse.nodered.org/u/greengolfer)\
**Replies:** 1\
**Last updated:** [30 August 2022 13:48 UTC](https://discourse.nodered.org/t/insert-into-json-object-based-on-condition/67123 "2022-08-30T13:48:01Z")

</div>

I am creating through function and change nodes a quite large JSON object. Based on a condition (value of a variable) I need to insert or not some key/values in the "middle" of json. At the moment, I am using a switch …

---

## [Node Red running under supervisor (Home assistant OS) in VM - http auth](https://discourse.nodered.org/t/node-red-running-under-supervisor-home-assistant-os-in-vm-http-auth/67018)

<div class="topic-metadata">

**Author:** [@djseek](https://discourse.nodered.org/u/djseek)\
**Replies:** 1\
**Last updated:** [30 August 2022 12:38 UTC](https://discourse.nodered.org/t/node-red-running-under-supervisor-home-assistant-os-in-vm-http-auth/67018 "2022-08-30T12:38:24Z")

</div>

hi all, i can login to my node red instance via browser 192.168.1.101:1880 (it pops up for user pass). If i enter my ha user pass it lets me into node red. If i'm sending a webhook from another system on my lan, how d…

---

## [Nodered 3.02 functions](https://discourse.nodered.org/t/nodered-3-02-functions/67109)

<div class="topic-metadata">

**Author:** [@pvanklink](https://discourse.nodered.org/u/pvanklink)\
**Replies:** 13\
**Last updated:** [30 August 2022 12:23 UTC](https://discourse.nodered.org/t/nodered-3-02-functions/67109 "2022-08-30T12:23:07Z")

</div>

I upgraded to nodered 3.02. Most of my functions give errors... Do i have to rewrite all my functions ? receivers=''; if(flow.get("receiver\_1") === true) {receivers = global.get("receiver1")} if(flow.get("receiv…

---

## [Learning Javascript](https://discourse.nodered.org/t/learning-javascript/66845)

<div class="topic-metadata">

**Author:** [@Jonathan95](https://discourse.nodered.org/u/Jonathan95)\
**Replies:** 11\
**Last updated:** [30 August 2022 11:07 UTC](https://discourse.nodered.org/t/learning-javascript/66845 "2022-08-30T11:07:18Z")

</div>

Hey all, hope you guys are having a great week so far. I am needing a bit of advice... Ive signed up for a JavaScript course trying to learn to use it within node red. But .... I cant quite seem to see the connect. I r…

---

## [Serving static files in uibuilder](https://discourse.nodered.org/t/serving-static-files-in-uibuilder/67024)

<div class="topic-metadata">

**Author:** [@miladmrm](https://discourse.nodered.org/u/miladmrm)\
**Replies:** 5\
**Last updated:** [30 August 2022 10:57 UTC](https://discourse.nodered.org/t/serving-static-files-in-uibuilder/67024 "2022-08-30T10:57:17Z")

</div>

I have a problem that I don't know if it's related to uibuilder or not, but since I tried elsewhere and that problem didn't exist, I decided to ask here. I have designed a ui using uibuilder that loads all logos and ico…

---

## [Moving credentials to another machine (v3.0.2)](https://discourse.nodered.org/t/moving-credentials-to-another-machine-v3-0-2/66989)

<div class="topic-metadata">

**Author:** [@tfuchs1987](https://discourse.nodered.org/u/tfuchs1987)\
**Replies:** 3\
**Last updated:** [30 August 2022 10:03 UTC](https://discourse.nodered.org/t/moving-credentials-to-another-machine-v3-0-2/66989 "2022-08-30T10:03:22Z")

</div>

Hi Node-REDers, I have 2 Node-RED installations running on raspberries since a year with the exact same flow and credential file. I managed to sync the credentials for those two and its working fine so far. One of those…

---

## [Change template text dynamically](https://discourse.nodered.org/t/change-template-text-dynamically/66264)

<div class="topic-metadata">

**Author:** [@mariulin](https://discourse.nodered.org/u/mariulin)\
**Replies:** 2\
**Last updated:** [30 August 2022 08:39 UTC](https://discourse.nodered.org/t/change-template-text-dynamically/66264 "2022-08-30T08:39:35Z")

</div>

Hi all. Is possible in same way, to change the text of a template node depending on a content of a file? Example: I read a file: If, the content of that file is 1, then, a part of text in template, must be 111111 If…

---

## [How to read specific value from Array](https://discourse.nodered.org/t/how-to-read-specific-value-from-array/3019)

<div class="topic-metadata">

**Author:** [@newshade](https://discourse.nodered.org/u/newshade)\
**Replies:** 11\
**Last updated:** [30 August 2022 06:48 UTC](https://discourse.nodered.org/t/how-to-read-specific-value-from-array/3019 "2022-08-30T06:48:40Z")

</div>

Hi, I'm struggling with a (maybe simple) problem that I cannot solve. I'm reading values from SQL and get the following message: \[ \[ { "id": 2, "tekst": "Costam", "czekolada": 1, "imie": "Axxxx", "nazwisko": "Nxxxx", "u…

---

## [Retained values](https://discourse.nodered.org/t/retained-values/67097)

<div class="topic-metadata">

**Author:** [@atticus\_west](https://discourse.nodered.org/u/atticus_west)\
**Replies:** 1\
**Last updated:** [30 August 2022 05:32 UTC](https://discourse.nodered.org/t/retained-values/67097 "2022-08-30T05:32:22Z")

</div>

How does one make a flow that combines things together? For instance, suppose at sunset I want to brighten one light as much as another one... I can make a node that injects an event at sunset and two nodes that receive …

---

## [Sortable list in the header area of the http request node](https://discourse.nodered.org/t/sortable-list-in-the-header-area-of-the-http-request-node/67076)

<div class="topic-metadata">

**Author:** [@kazuhitoyokoi](https://discourse.nodered.org/u/kazuhitoyokoi)\
**Replies:** 2\
**Last updated:** [30 August 2022 03:58 UTC](https://discourse.nodered.org/t/sortable-list-in-the-header-area-of-the-http-request-node/67076 "2022-08-30T03:58:16Z")

</div>

The new functionality of the Node-RED v3.0.x to be able to configure header information in the http request property is useful. I thought that the sortable list is more beneficial for the area because some API calls tend…

---

## [Sending Commands via TCP into OMRON Code Reader F430](https://discourse.nodered.org/t/sending-commands-via-tcp-into-omron-code-reader-f430/67048)

<div class="topic-metadata">

**Author:** [@giller\_m](https://discourse.nodered.org/u/giller_m)\
**Replies:** 3\
**Last updated:** [30 August 2022 01:08 UTC](https://discourse.nodered.org/t/sending-commands-via-tcp-into-omron-code-reader-f430/67048 "2022-08-30T01:08:17Z")

</div>

Hi! Good day everyone. Sorry I am so new in using Node-RED this is because one of my client is using Node-REd ever since but unfortunately we have challenges on sending commands into Code Reader Device (specifically OM…

---

## [How can I host my SPA application?](https://discourse.nodered.org/t/how-can-i-host-my-spa-application/66904)

<div class="topic-metadata">

**Author:** [@TomBots](https://discourse.nodered.org/u/TomBots)\
**Replies:** 5\
**Last updated:** [30 August 2022 01:05 UTC](https://discourse.nodered.org/t/how-can-i-host-my-spa-application/66904 "2022-08-30T01:05:49Z")

</div>

I have the following configuration for hosting static files. settings.js httpNodeRoot: '/api' httpStatic: '/data/public' If you place the index.html and Javascript files generated by the SPA application in the public…

---

## [Not able to read a value from JSON object](https://discourse.nodered.org/t/not-able-to-read-a-value-from-json-object/67083)

<div class="topic-metadata">

**Author:** [@b0denl0s](https://discourse.nodered.org/u/b0denl0s)\
**Replies:** 6\
**Last updated:** [29 August 2022 21:44 UTC](https://discourse.nodered.org/t/not-able-to-read-a-value-from-json-object/67083 "2022-08-29T21:44:24Z")

</div>

Hi, I am struggling since hours with a really basic job: Catching a simple value out of a JSON object. Not a big deal. I don't know what I am doing wrong... JSON object passes in by websocket in node (BTW: first time I…

---

## [Differences between node-red-contrib-mssql-plus in linux/windows?](https://discourse.nodered.org/t/differences-between-node-red-contrib-mssql-plus-in-linux-windows/67061)

<div class="topic-metadata">

**Author:** [@OriolFM](https://discourse.nodered.org/u/OriolFM)\
**Replies:** 8\
**Last updated:** [29 August 2022 18:13 UTC](https://discourse.nodered.org/t/differences-between-node-red-contrib-mssql-plus-in-linux-windows/67061 "2022-08-29T18:13:47Z")

</div>

My main node-red (3.0) installation at work is on a CentOs VM. I am using node-red-contrib-mssql-plus v0.7.3 to access some MSSQL DBs and I have no problems. I need to make some installs on a few PCs that will serve jus…

---

## [Feature request: Auto refresh of context data](https://discourse.nodered.org/t/feature-request-auto-refresh-of-context-data/67077)

<div class="topic-metadata">

**Author:** [@dennishvo](https://discourse.nodered.org/u/dennishvo)\
**Replies:** 0\
**Last updated:** [29 August 2022 18:12 UTC](https://discourse.nodered.org/t/feature-request-auto-refresh-of-context-data/67077 "2022-08-29T18:12:20Z")

</div>

I have about a dozen global context variables that reflect the state of sensors. It would be very handy to be able to see the current state of some or all context variables without adding debug nodes. The refresh rate wo…

---

## [Install Node red Version 3.02 docker image GIT ERROR](https://discourse.nodered.org/t/install-node-red-version-3-02-docker-image-git-error/67005)

<div class="topic-metadata">

**Author:** [@pvanklink](https://discourse.nodered.org/u/pvanklink)\
**Replies:** 0\
**Last updated:** [27 August 2022 14:03 UTC](https://discourse.nodered.org/t/install-node-red-version-3-02-docker-image-git-error/67005 "2022-08-27T14:03:31Z")

</div>

Hi, i installed the 3.0.2 of Nodered on my rpi4b via a docker image. Everything seems to work ok, except i get a strange error in my log in nodered Error: fatal: detected dubious ownership in repository at '/data/proje…

---

## [Weather Radar Widget](https://discourse.nodered.org/t/weather-radar-widget/67068)

<div class="topic-metadata">

**Author:** [@Marc123](https://discourse.nodered.org/u/Marc123)\
**Replies:** 0\
**Last updated:** [29 August 2022 14:27 UTC](https://discourse.nodered.org/t/weather-radar-widget/67068 "2022-08-29T14:27:24Z")

</div>

Hi, I would like to use the below code in a ui-template for a weather radar view. The code works fine in a generic HTML file opened in chrome, but it doesn't load the weather radar view in the dashboard. I'm stumped, on …

---

## [Pygame Mixer in python script - No available audio device](https://discourse.nodered.org/t/pygame-mixer-in-python-script-no-available-audio-device/67038)

<div class="topic-metadata">

**Author:** [@kemperflow](https://discourse.nodered.org/u/kemperflow)\
**Replies:** 2\
**Last updated:** [29 August 2022 13:52 UTC](https://discourse.nodered.org/t/pygame-mixer-in-python-script-no-available-audio-device/67038 "2022-08-29T13:52:30Z")

</div>

Using Python3, I am using pygame mixer to play an mp3 using the headphone output. If I run as root or as the dietpi user from the console, the script runs and it plays perfectly. Trying to run the same script from node-r…

---

## [Disabled button still clickable](https://discourse.nodered.org/t/disabled-button-still-clickable/67060)

<div class="topic-metadata">

**Author:** [@nileio](https://discourse.nodered.org/u/nileio)\
**Replies:** 0\
**Last updated:** [29 August 2022 11:43 UTC](https://discourse.nodered.org/t/disabled-button-still-clickable/67060 "2022-08-29T11:43:56Z")

</div>

Hi team, I noticed a behaviour while developing a new node and using the button attribute https://nodered.org/docs/creating-nodes/appearance#buttons the node has a button defined like this visible: function () { ret…

---

## [How to put the list data into new line in the same cell of excel](https://discourse.nodered.org/t/how-to-put-the-list-data-into-new-line-in-the-same-cell-of-excel/67058)

<div class="topic-metadata">

**Author:** [@NeetaJ](https://discourse.nodered.org/u/NeetaJ)\
**Replies:** 3\
**Last updated:** [29 August 2022 11:46 UTC](https://discourse.nodered.org/t/how-to-put-the-list-data-into-new-line-in-the-same-cell-of-excel/67058 "2022-08-29T11:46:31Z")

</div>

Hi, I have this below flow which takes the data and puts into excel and sends it as an attachment. \[{"id":"75213df52c14c49d","type":"tab","label":"Flow 1","disabled":false,"info":"","env":\[\]},{"id":"5d64f6b3253b286e","…

---

## [Receive lan webhook with camera snapshot (surveillance station) in home assistant](https://discourse.nodered.org/t/receive-lan-webhook-with-camera-snapshot-surveillance-station-in-home-assistant/66961)

<div class="topic-metadata">

**Author:** [@djseek](https://discourse.nodered.org/u/djseek)\
**Replies:** 25\
**Last updated:** [29 August 2022 11:22 UTC](https://discourse.nodered.org/t/receive-lan-webhook-with-camera-snapshot-surveillance-station-in-home-assistant/66961 "2022-08-29T11:22:20Z")

</div>

Hi all I'm struggling to workout how to get node red to receive a webhook notification from surveillance station with snapshot . I have found several node pallets but they seem to be for wan Has anyone set this up or s…

---

## [Getting double UDP messages](https://discourse.nodered.org/t/getting-double-udp-messages/66967)

<div class="topic-metadata">

**Author:** [@shonek](https://discourse.nodered.org/u/shonek)\
**Replies:** 4\
**Last updated:** [29 August 2022 11:03 UTC](https://discourse.nodered.org/t/getting-double-udp-messages/66967 "2022-08-29T11:03:26Z")

</div>

Hello, I'm trying to integrate a Xiaomi Gateway into my NodeRed, but I'm having a weird issue, and it is that I'm getting all the messages twice. So if I want to toggle a light on motion detected, it will turn on and of…

[Previous page](https://discourse.nodered.org/latest.md?page=506)

[Next page](https://discourse.nodered.org/latest.md?page=508)
