# General

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

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

**Page:** 235

---

## [Calculate time complexity in NODE RED](https://discourse.nodered.org/t/calculate-time-complexity-in-node-red/76403)

<div class="topic-metadata">

**Author:** [@Fathi2022](https://discourse.nodered.org/u/Fathi2022)\
**Replies:** 1\
**Last updated:** [11 March 2023 12:28 UTC](https://discourse.nodered.org/t/calculate-time-complexity-in-node-red/76403 "2023-03-11T12:28:34Z")

</div>

Hi all have anyone calculate time complexity by measuring the execution time of your code using the performance.now() method in Node Red ?

---

## [Parse into Influx and Grafana Dashboard](https://discourse.nodered.org/t/parse-into-influx-and-grafana-dashboard/76390)

<div class="topic-metadata">

**Author:** [@ankit.prasad](https://discourse.nodered.org/u/ankit.prasad)\
**Replies:** 1\
**Last updated:** [11 March 2023 10:51 UTC](https://discourse.nodered.org/t/parse-into-influx-and-grafana-dashboard/76390 "2023-03-11T10:51:13Z")

</div>

{"msg":"advData","gmac":"94A408B0482C","obj":\[{"type":1,"dmac":"BC572900A067","time":"2023-03-10 18:36:17.000","rssi":-77,"ver":1,"vbatt":3017,"temp":29.920000000000002,"humidty":58.200000000000003}\]} Items to insert in…

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Template Svg Graphic](https://discourse.nodered.org/t/template-svg-graphic/75770)

<div class="topic-metadata">

**Author:** [@ninaaa](https://discourse.nodered.org/u/ninaaa)\
**Replies:** 13\
**Last updated:** [9 March 2023 21:50 UTC](https://discourse.nodered.org/t/template-svg-graphic/75770 "2023-03-09T21:50:11Z")

</div>

Hello! Since I've been searching for days without success, I'm asking for help. I would like to install a button and a digital display in an SVG image. The button should switch something or display something digitally. …

---

## [Handling data from multiple sliders](https://discourse.nodered.org/t/handling-data-from-multiple-sliders/76358)

<div class="topic-metadata">

**Author:** [@rchandrashekar53](https://discourse.nodered.org/u/rchandrashekar53)\
**Replies:** 1\
**Last updated:** [9 March 2023 18:50 UTC](https://discourse.nodered.org/t/handling-data-from-multiple-sliders/76358 "2023-03-09T18:50:56Z")

</div>

Hi, I have some input sliders which are working great. My ask is to get data from these individual sliders and build a JSON payload. Attached is a sample schematic of my data input How can i get data from these slide…

---

## [Node Red Dont work anymore pls Help](https://discourse.nodered.org/t/node-red-dont-work-anymore-pls-help/76348)

<div class="topic-metadata">

**Author:** [@blackops](https://discourse.nodered.org/u/blackops)\
**Replies:** 15\
**Last updated:** [9 March 2023 17:00 UTC](https://discourse.nodered.org/t/node-red-dont-work-anymore-pls-help/76348 "2023-03-09T17:00:46Z")

</div>

My Note Red Web interface dont work. canpi@canpi:~ $ node-red-log 9 Mar 15:07:48 - \[info\] Node-RED version: v3.0.2 9 Mar 15:07:48 - \[info\] Node.js version: v16.19.1 9 Mar 15:07:48 - \[info\] Linux 5.15.84-v7+ arm LE 9…

---

## [Setup a Config to open blinds and block timer when there is heavy wind](https://discourse.nodered.org/t/setup-a-config-to-open-blinds-and-block-timer-when-there-is-heavy-wind/76350)

<div class="topic-metadata">

**Author:** [@ebnerjoh](https://discourse.nodered.org/u/ebnerjoh)\
**Replies:** 5\
**Last updated:** [9 March 2023 16:53 UTC](https://discourse.nodered.org/t/setup-a-config-to-open-blinds-and-block-timer-when-there-is-heavy-wind/76350 "2023-03-09T16:53:48Z")

</div>

Hi, I have electrical blinds and I am living in a rural environment. When we have heavy stroms the risk is high for a power outage. I have a generator, but my blinds are not reacting when I supply them with the generato…

---

## [3 switches lock](https://discourse.nodered.org/t/3-switches-lock/76354)

<div class="topic-metadata">

**Author:** [@JAY](https://discourse.nodered.org/u/JAY)\
**Replies:** 5\
**Last updated:** [9 March 2023 16:30 UTC](https://discourse.nodered.org/t/3-switches-lock/76354 "2023-03-09T16:30:46Z")

</div>

Hi guys,I want to make 3 switches in which if switch 1 and switch 2 are in true its output will be true,if one of the switch is false the other switch(output) is false.The output switch can only be in true if both of swi…

---

## [Flow context \[object Object\] while it exists?](https://discourse.nodered.org/t/flow-context-object-object-while-it-exists/76339)

<div class="topic-metadata">

**Author:** [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Replies:** 9\
**Last updated:** [9 March 2023 15:58 UTC](https://discourse.nodered.org/t/flow-context-object-object-while-it-exists/76339 "2023-03-09T15:58:33Z")

</div>

I am confused, flow context says: But injecting flow.browser produces: It works, so that is great, but why is the context tab not parsing it ?

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

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