# General

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

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

**Page:** 329

---

## [Timezones...server & browser](https://discourse.nodered.org/t/timezones-server-browser/66988)

<div class="topic-metadata">

**Author:** [@jimwhitfield](https://discourse.nodered.org/u/jimwhitfield)\
**Replies:** 5\
**Last updated:** [31 August 2022 01:12 UTC](https://discourse.nodered.org/t/timezones-server-browser/66988 "2022-08-31T01:12:11Z")

</div>

Hello, I am reasonably proficient with Node Red, but at the moment, I don't have a solution to my problem. I use Dashboard to display a graph of data over time. It works great. If I'm on the West Coast, the "last thre…

---

## [A guide to understanding 'Persistent Context'](https://discourse.nodered.org/t/a-guide-to-understanding-persistent-context/4115)

<div class="topic-metadata">

**Author:** [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Replies:** 87\
**Last updated:** [4 January 2022 12:47 UTC](https://discourse.nodered.org/t/a-guide-to-understanding-persistent-context/4115 "2022-01-04T12:47:12Z")

</div>

This is something I wrote up after playing with the context options. I've filed a PR with some of this added to the Node-RED documentation but thought I'd release it here also. I hope people find it useful. Paul A gui…

---

## [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. …

---

## [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":"…

---

## [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…

---

## [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 …

---

## [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…

---

## [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…

---

## [Query on SQL Server node : node-red-contrib-mssql-plus](https://discourse.nodered.org/t/query-on-sql-server-node-node-red-contrib-mssql-plus/67003)

<div class="topic-metadata">

**Author:** [@SandeepA](https://discourse.nodered.org/u/SandeepA)\
**Replies:** 4\
**Last updated:** [29 August 2022 10:45 UTC](https://discourse.nodered.org/t/query-on-sql-server-node-node-red-contrib-mssql-plus/67003 "2022-08-29T10:45:49Z")

</div>

I have a scenario - where i want to create a dashboard where depending on the user who logs in - i want the flows to connect different DB. User logs in (Custom Dashboard by me). I validate the user using some backend p…

---

## [Counter by Topic on a Rolling Window](https://discourse.nodered.org/t/counter-by-topic-on-a-rolling-window/67045)

<div class="topic-metadata">

**Author:** [@gta\_br](https://discourse.nodered.org/u/gta_br)\
**Replies:** 5\
**Last updated:** [29 August 2022 10:00 UTC](https://discourse.nodered.org/t/counter-by-topic-on-a-rolling-window/67045 "2022-08-29T10:00:19Z")

</div>

Hi, Sorry if it was answered before but I'm stucked with a problem. Is it possible to implement the solution described in topic Count the messages uuid values, but on a rolling window? I need to count the messages by t…

---

## [Input JSON String NODE RED CONTRIB UI TIME SCHEDULER](https://discourse.nodered.org/t/input-json-string-node-red-contrib-ui-time-scheduler/66842)

<div class="topic-metadata">

**Author:** [@Stefan\_Bambach](https://discourse.nodered.org/u/Stefan_Bambach)\
**Replies:** 4\
**Last updated:** [29 August 2022 09:05 UTC](https://discourse.nodered.org/t/input-json-string-node-red-contrib-ui-time-scheduler/66842 "2022-08-29T09:05:54Z")

</div>

I would like to parameterize the UI scheduler via inputs. There are various devices, these should be terminated via payload before the time has expired. Can someone tell me the JSON string? I tried different payloads, bu…

---

## [Finding others node for receive message](https://discourse.nodered.org/t/finding-others-node-for-receive-message/66940)

<div class="topic-metadata">

**Author:** [@kelvin](https://discourse.nodered.org/u/kelvin)\
**Replies:** 11\
**Last updated:** [29 August 2022 07:59 UTC](https://discourse.nodered.org/t/finding-others-node-for-receive-message/66940 "2022-08-29T07:59:35Z")

</div>

Hi Everyone, :blush: May i know any others node can receive debug message to your smartphone other than telegram? if i want to receive by using messages is it possible?

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

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