# Latest

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

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

**Page:** 380

---

## [Live data on top of changing picture](https://discourse.nodered.org/t/live-data-on-top-of-changing-picture/76128)

<div class="topic-metadata">

**Author:** [@Soiski](https://discourse.nodered.org/u/Soiski)\
**Replies:** 5\
**Last updated:** [11 March 2023 10:47 UTC](https://discourse.nodered.org/t/live-data-on-top-of-changing-picture/76128 "2023-03-11T10:47:04Z")

</div>

OK, so i'm building a compass which gets it data from Openweather API. I'm trying to incorporated that live data (wind direction and speed) into a live compass module. Based on the direction it would choose from eight di…

---

## [ui-uPlot- Chart from Stored Data-MySql- Moved to Grafana + iframe now](https://discourse.nodered.org/t/ui-uplot-chart-from-stored-data-mysql-moved-to-grafana-iframe-now/75685)

<div class="topic-metadata">

**Author:** [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Replies:** 13\
**Last updated:** [11 March 2023 08:57 UTC](https://discourse.nodered.org/t/ui-uplot-chart-from-stored-data-mysql-moved-to-grafana-iframe-now/75685 "2023-03-11T08:57:08Z")

</div>

Continuing the discussion from \[Beta\] node-red-contrib-ui-uPlot-charts: Hi, i installed and got the examples working perfectly. I need to draw the chart with stored data in a database, (MySql) but could not find any inf…

---

## [Error on function after major upgrade to 3.02](https://discourse.nodered.org/t/error-on-function-after-major-upgrade-to-3-02/76391)

<div class="topic-metadata">

**Author:** [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Replies:** 20\
**Last updated:** [11 March 2023 08:01 UTC](https://discourse.nodered.org/t/error-on-function-after-major-upgrade-to-3-02/76391 "2023-03-11T08:01:07Z")

</div>

Hi, I was probably running NR 1.35 before his, on the flow I copied a previous function node, canged inside a string under " " only, and I got the error sign, and when I open function I can't see more the debug that told…

---

## [Trigger if the second message doesn't occour](https://discourse.nodered.org/t/trigger-if-the-second-message-doesnt-occour/76419)

<div class="topic-metadata">

**Author:** [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Replies:** 9\
**Last updated:** [11 March 2023 00:57 UTC](https://discourse.nodered.org/t/trigger-if-the-second-message-doesnt-occour/76419 "2023-03-11T00:57:08Z")

</div>

Hi, I have this situation, I need to reset a variable after some time, in any case, even if the automation doesn't do it itself (something went wrong or on error). If a second message incoming during delay the delay per…

---

## [Best Way to Fade an LED?](https://discourse.nodered.org/t/best-way-to-fade-an-led/76370)

<div class="topic-metadata">

**Author:** [@richiep](https://discourse.nodered.org/u/richiep)\
**Replies:** 2\
**Last updated:** [11 March 2023 00:50 UTC](https://discourse.nodered.org/t/best-way-to-fade-an-led/76370 "2023-03-11T00:50:55Z")

</div>

Hey All, I'm doing a horrible job at fading an LED attached to a pwm pin on an esp8266 board. I've looked for solutions but found very little on the subject. What I have here works but it seems like an awful solution.…

---

## [\[Announce\] node-red-contrib-custom-chatgpt](https://discourse.nodered.org/t/announce-node-red-contrib-custom-chatgpt/75644)

<div class="topic-metadata">

**Author:** [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)\
**Replies:** 6\
**Last updated:** [10 March 2023 23:48 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-custom-chatgpt/75644 "2023-03-10T23:48:25Z")

</div>

A Node-RED node that interacts with OpenAI machine learning models like "ChatGPT". I encourage you to give it a try, any feedback or collaborators will be greatly appreciated.

---

## [Continuously running a python script with node-RED](https://discourse.nodered.org/t/continuously-running-a-python-script-with-node-red/76396)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 16\
**Last updated:** [10 March 2023 23:04 UTC](https://discourse.nodered.org/t/continuously-running-a-python-script-with-node-red/76396 "2023-03-10T23:04:40Z")

</div>

I have a folder located in /home/pi/myscript which contains a python script and 3 other files which the python file uses, such as a config and a private\_key.pem. To run the script via command prompt, I cd into /home/pi/…

---

## [Help with Serial port start character](https://discourse.nodered.org/t/help-with-serial-port-start-character/76410)

<div class="topic-metadata">

**Author:** [@yzerman](https://discourse.nodered.org/u/yzerman)\
**Replies:** 2\
**Last updated:** [10 March 2023 22:20 UTC](https://discourse.nodered.org/t/help-with-serial-port-start-character/76410 "2023-03-10T22:20:36Z")

</div>

Hi, I need to split the data flow from the serial port if the character is \>= 0x80. The problem is that in Serial node config I can input just 0x80. Is there a way to put greater or equals then \>= 0x80, instead of just …

---

## [Summarize +50 values from MQTT](https://discourse.nodered.org/t/summarize-50-values-from-mqtt/76411)

<div class="topic-metadata">

**Author:** [@RedSnapper](https://discourse.nodered.org/u/RedSnapper)\
**Replies:** 2\
**Last updated:** [10 March 2023 20:51 UTC](https://discourse.nodered.org/t/summarize-50-values-from-mqtt/76411 "2023-03-10T20:51:15Z")

</div>

Hey community, I am new to Node Red which I want to utilise to gain more insights into my power consumption. The main goal is to know how much I consume overall - meaning over all device. I´ve +50 devices reporting pe…

---

## [How to create a filename using jsonata in file write node](https://discourse.nodered.org/t/how-to-create-a-filename-using-jsonata-in-file-write-node/76407)

<div class="topic-metadata">

**Author:** [@daled](https://discourse.nodered.org/u/daled)\
**Replies:** 5\
**Last updated:** [10 March 2023 20:17 UTC](https://discourse.nodered.org/t/how-to-create-a-filename-using-jsonata-in-file-write-node/76407 "2023-03-10T20:17:01Z")

</div>

I'm relatively new to node-red. I've searched and cannot seem to find a "simple" solution to what I want to do. It seems like I should be able to use a jsonata expression to create a filename in my write file node. I wan…

---

## [Identify last column in a CSV](https://discourse.nodered.org/t/identify-last-column-in-a-csv/76402)

<div class="topic-metadata">

**Author:** [@awneil](https://discourse.nodered.org/u/awneil)\
**Replies:** 5\
**Last updated:** [10 March 2023 19:57 UTC](https://discourse.nodered.org/t/identify-last-column-in-a-csv/76402 "2023-03-10T19:57:27Z")

</div>

I know the CSV node will use the column names as property names, and column contents as the property values; eg, msg.payload : Object object col1: "first column content" col2: "second column content" col3: "third column…

---

## [Is there a method that can be used to calculate time complexity in Node Red?](https://discourse.nodered.org/t/is-there-a-method-that-can-be-used-to-calculate-time-complexity-in-node-red/75356)

<div class="topic-metadata">

**Author:** [@Fathi2022](https://discourse.nodered.org/u/Fathi2022)\
**Replies:** 12\
**Last updated:** [10 March 2023 19:32 UTC](https://discourse.nodered.org/t/is-there-a-method-that-can-be-used-to-calculate-time-complexity-in-node-red/75356 "2023-03-10T19:32:29Z")

</div>

Hi All I have a question there is method or property in Node Red Dashboard used to calculate time complexity? For example Visual Studio has code metrics data that calculates the complexity and maintenance.

---

## [Using functions in oneditprepare and oneditsave](https://discourse.nodered.org/t/using-functions-in-oneditprepare-and-oneditsave/76374)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 4\
**Last updated:** [10 March 2023 18:39 UTC](https://discourse.nodered.org/t/using-functions-in-oneditprepare-and-oneditsave/76374 "2023-03-10T18:39:54Z")

</div>

I am re-factoring a couple of custom nodes and running into the limits of my understanding of JavaScript or the structure of Node-RED (or possibly both). I have large blocks of code that I use in several places in both t…

---

## [Alexa-remote2 giving 'failed to load routines: "no body"'](https://discourse.nodered.org/t/alexa-remote2-giving-failed-to-load-routines-no-body/76343)

<div class="topic-metadata">

**Author:** [@Eskibrew](https://discourse.nodered.org/u/Eskibrew)\
**Replies:** 8\
**Last updated:** [10 March 2023 15:48 UTC](https://discourse.nodered.org/t/alexa-remote2-giving-failed-to-load-routines-no-body/76343 "2023-03-10T15:48:40Z")

</div>

Hi all, I've used node-red-contrib-alexa-remote2 in the past and it's been great. I've been trying to get it working again, and I've now tried all of the forks, even the most recent node-red-contrib-alexa-remote2-mattl0 …

---

## [Node-red-contrib-web-worldmap - Local mapserver alternative](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-local-mapserver-alternative/76261)

<div class="topic-metadata">

**Author:** [@JMMOCARRO](https://discourse.nodered.org/u/JMMOCARRO)\
**Replies:** 12\
**Last updated:** [10 March 2023 15:41 UTC](https://discourse.nodered.org/t/node-red-contrib-web-worldmap-local-mapserver-alternative/76261 "2023-03-10T15:41:49Z")

</div>

I've read several discussions in the forum around creating a local WMS map server to support offline use of the node-red-contrib-web-worldmap node. The author recommended the use of mapserver in his node documentation. I…

---

## [Worldmap icon changing tabs](https://discourse.nodered.org/t/worldmap-icon-changing-tabs/75004)

<div class="topic-metadata">

**Author:** [@scv81](https://discourse.nodered.org/u/scv81)\
**Replies:** 1\
**Last updated:** [10 March 2023 15:30 UTC](https://discourse.nodered.org/t/worldmap-icon-changing-tabs/75004 "2023-03-10T15:30:28Z")

</div>

Hello, how could I keep the icon active when changing tabs?

---

## [Print from Node Red Windows printer](https://discourse.nodered.org/t/print-from-node-red-windows-printer/76394)

<div class="topic-metadata">

**Author:** [@mansanoj](https://discourse.nodered.org/u/mansanoj)\
**Replies:** 1\
**Last updated:** [10 March 2023 15:15 UTC](https://discourse.nodered.org/t/print-from-node-red-windows-printer/76394 "2023-03-10T15:15:09Z")

</div>

I need to develop an application where I will read information from a file automatically through Node Red, and then I would like Node Red to send this information to print through a printer installed in Windows. How coul…

---

## [Can one write a function for the \`users\` parameter in adminAuth section for the settings.js?](https://discourse.nodered.org/t/can-one-write-a-function-for-the-users-parameter-in-adminauth-section-for-the-settings-js/76392)

<div class="topic-metadata">

**Author:** [@Shan](https://discourse.nodered.org/u/Shan)\
**Replies:** 1\
**Last updated:** [10 March 2023 14:49 UTC](https://discourse.nodered.org/t/can-one-write-a-function-for-the-users-parameter-in-adminauth-section-for-the-settings-js/76392 "2023-03-10T14:49:49Z")

</div>

Would a function actually work when trying to log into node-red admin ui: adminAuth: { type: "credentials", users: function() { const creds = require("fs").readFileSync('/run/secrets/…

---

## [Node-red-contrib-ui-table headerHozAlign](https://discourse.nodered.org/t/node-red-contrib-ui-table-headerhozalign/76367)

<div class="topic-metadata">

**Author:** [@akrea](https://discourse.nodered.org/u/akrea)\
**Replies:** 1\
**Last updated:** [10 March 2023 13:44 UTC](https://discourse.nodered.org/t/node-red-contrib-ui-table-headerhozalign/76367 "2023-03-10T13:44:09Z")

</div>

Hi I recently discovered the ui-table node. Very cool - kudos to the developer!! My issue is that the headerHozAlign attribute does not do anything to the table. All the other options have an effect (formating is in no…

---

## [Using localhost on OPC UA endpoint configuration Node](https://discourse.nodered.org/t/using-localhost-on-opc-ua-endpoint-configuration-node/76389)

<div class="topic-metadata">

**Author:** [@Manikandan](https://discourse.nodered.org/u/Manikandan)\
**Replies:** 0\
**Last updated:** [10 March 2023 13:30 UTC](https://discourse.nodered.org/t/using-localhost-on-opc-ua-endpoint-configuration-node/76389 "2023-03-10T13:30:51Z")

</div>

Hi, I am new to Node-Red, In my Project I have a Codesys and Node-Red and both of them running in single Raspberry Pi OS. I am having a OPC-UA as a communication between these two application and Codesys acts as a serv…

---

## [Is it possible to give a parameter to a running python script?](https://discourse.nodered.org/t/is-it-possible-to-give-a-parameter-to-a-running-python-script/76385)

<div class="topic-metadata">

**Author:** [@DeWoAlliSeged7](https://discourse.nodered.org/u/DeWoAlliSeged7)\
**Replies:** 3\
**Last updated:** [10 March 2023 13:22 UTC](https://discourse.nodered.org/t/is-it-possible-to-give-a-parameter-to-a-running-python-script/76385 "2023-03-10T13:22:38Z")

</div>

Hello Is it possible to give a parameter to a running python script ? I would like to change a variable. thx in advance Simon

---

## [I want to change a string into an object](https://discourse.nodered.org/t/i-want-to-change-a-string-into-an-object/76388)

<div class="topic-metadata">

**Author:** [@blackops](https://discourse.nodered.org/u/blackops)\
**Replies:** 1\
**Last updated:** [10 March 2023 12:28 UTC](https://discourse.nodered.org/t/i-want-to-change-a-string-into-an-object/76388 "2023-03-10T12:28:33Z")

</div>

It is now like that {"canfd":false,"ext":false,"rtr":false,"canid":672,"dlc":5,"data":\[0,0,0,0,0,0,128,128\]} I need to change it like that {"canfd":false,"ext":false,"rtr":false,"canid":672,"dlc":5,"data":\[0,0,0,0,0…

---

## [Help with error in function that...works!](https://discourse.nodered.org/t/help-with-error-in-function-that-works/76376)

<div class="topic-metadata">

**Author:** [@andre\_x](https://discourse.nodered.org/u/andre_x)\
**Replies:** 9\
**Last updated:** [10 March 2023 10:25 UTC](https://discourse.nodered.org/t/help-with-error-in-function-that-works/76376 "2023-03-10T10:25:29Z")

</div>

When I deploy Node Red says that there is an error in one of my function, this one: var timestamp = Date.now(); var disable\_notification\_until = global.get("disable\_notification\_until"); if (disable\_notification\_until \<=…

---

## [Enhancement request: enable config-nodes to accept msg variables to set config at runtime](https://discourse.nodered.org/t/enhancement-request-enable-config-nodes-to-accept-msg-variables-to-set-config-at-runtime/76379)

<div class="topic-metadata">

**Author:** [@GerritSmit](https://discourse.nodered.org/u/GerritSmit)\
**Replies:** 1\
**Last updated:** [10 March 2023 10:20 UTC](https://discourse.nodered.org/t/enhancement-request-enable-config-nodes-to-accept-msg-variables-to-set-config-at-runtime/76379 "2023-03-10T10:20:48Z")

</div>

Hi I am using existing nodes (such as which node-red-contrib-mssql-plus) which is using the “standard” ‘configuration node’. Mostly the configuration points to an external SQL db or ERP/SAP system for which the configu…

---

## [Change Query from 1.8 to 2.0 Db influx](https://discourse.nodered.org/t/change-query-from-1-8-to-2-0-db-influx/75820)

<div class="topic-metadata">

**Author:** [@Shwowak](https://discourse.nodered.org/u/Shwowak)\
**Replies:** 11\
**Last updated:** [10 March 2023 09:02 UTC](https://discourse.nodered.org/t/change-query-from-1-8-to-2-0-db-influx/75820 "2023-03-10T09:02:25Z")

</div>

I want to change this flow and it is currently running on db1.8. but I want to use it with db2.0. The queries have changed. Can someone help me to create the right query? \[ { "id": "7e76473157e64de4", …

---

## [Getting several values from a string](https://discourse.nodered.org/t/getting-several-values-from-a-string/76242)

<div class="topic-metadata">

**Author:** [@DozoG](https://discourse.nodered.org/u/DozoG)\
**Replies:** 8\
**Last updated:** [10 March 2023 07:28 UTC](https://discourse.nodered.org/t/getting-several-values-from-a-string/76242 "2023-03-10T07:28:45Z")

</div>

Hi everyone, I have a tcp request node that returns a string containing a series of variables-value pairs: "!A00=0.25$!A04=228.00$!A22=2.00$" Each variable-value pair starts with ! and ends with $ In the example, the…

---

## [Security - The Best Way](https://discourse.nodered.org/t/security-the-best-way/76326)

<div class="topic-metadata">

**Author:** [@edilsonlucas](https://discourse.nodered.org/u/edilsonlucas)\
**Replies:** 7\
**Last updated:** [10 March 2023 02:23 UTC](https://discourse.nodered.org/t/security-the-best-way/76326 "2023-03-10T02:23:44Z")

</div>

Hello friends, I need your help on how to protect my application from hacker attacks. My application consists of a level monitoring system and I will be using Telegram to send messages when there is an event, but I could…

---

## [Best way to send a message only when Node-RED has started and running](https://discourse.nodered.org/t/best-way-to-send-a-message-only-when-node-red-has-started-and-running/75958)

<div class="topic-metadata">

**Author:** [@tree-frog](https://discourse.nodered.org/u/tree-frog)\
**Replies:** 6\
**Last updated:** [9 March 2023 23:59 UTC](https://discourse.nodered.org/t/best-way-to-send-a-message-only-when-node-red-has-started-and-running/75958 "2023-03-09T23:59:25Z")

</div>

What is the best way to detect Node-RED starting, running so I can start a connection to OPC-UA I/O? Thanks,

---

## [Context in subflow](https://discourse.nodered.org/t/context-in-subflow/76364)

<div class="topic-metadata">

**Author:** [@peterpreininger](https://discourse.nodered.org/u/peterpreininger)\
**Replies:** 1\
**Last updated:** [9 March 2023 22:33 UTC](https://discourse.nodered.org/t/context-in-subflow/76364 "2023-03-09T22:33:10Z")

</div>

I created a node, that creates energy data (actual energy consumption of the day until now and actual energy data of the hour). Additionally it generates historic consumption data of hour/day/... for calculating that, I…

---

## [Alert Sudden Rise in Temperature](https://discourse.nodered.org/t/alert-sudden-rise-in-temperature/76074)

<div class="topic-metadata">

**Author:** [@jgvary](https://discourse.nodered.org/u/jgvary)\
**Replies:** 5\
**Last updated:** [3 March 2023 22:50 UTC](https://discourse.nodered.org/t/alert-sudden-rise-in-temperature/76074 "2023-03-03T22:50:48Z")

</div>

I am trying to create a flow that will alert me of a sudden rise in temperature for my temperature sensors around the house. He is what I have currently and suggestions or advice? \[{"id":"405f829e0a28b82e","type":"a…

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

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