# General

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

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

**Page:** 322

---

## [Is there any official interface for Deploy Button can use](https://discourse.nodered.org/t/is-there-any-official-interface-for-deploy-button-can-use/67847)

<div class="topic-metadata">

**Author:** [@Sztt](https://discourse.nodered.org/u/Sztt)\
**Replies:** 3\
**Last updated:** [18 September 2022 04:00 UTC](https://discourse.nodered.org/t/is-there-any-official-interface-for-deploy-button-can-use/67847 "2022-09-18T04:00:03Z")

</div>

Node-RED version: v3.0.2 Node.js version: v16.17.0 Hi, I'm new to Node-red. I need to use the interface to call up the deployment button, so that I can use this interface to complete the deployment function rather tha…

---

## [How to pass a Regex into a function node](https://discourse.nodered.org/t/how-to-pass-a-regex-into-a-function-node/67701)

<div class="topic-metadata">

**Author:** [@IanH](https://discourse.nodered.org/u/IanH)\
**Replies:** 2\
**Last updated:** [18 September 2022 03:50 UTC](https://discourse.nodered.org/t/how-to-pass-a-regex-into-a-function-node/67701 "2022-09-18T03:50:38Z")

</div>

I am trying to finish a Function node (part of a Sub-Flow) that will also allow the elements (usually a MQTT topic) of an array to be trimmed for purpose of feeding to a ui\_chart. As these topics have many forms differe…

---

## [Link Alexa to Node-Red](https://discourse.nodered.org/t/link-alexa-to-node-red/67855)

<div class="topic-metadata">

**Author:** [@lessi](https://discourse.nodered.org/u/lessi)\
**Replies:** 6\
**Last updated:** [17 September 2022 21:28 UTC](https://discourse.nodered.org/t/link-alexa-to-node-red/67855 "2022-09-17T21:28:13Z")

</div>

I am trying to link Amazon Alexa to Node-Red with node-red-contrib-alexa-remote2-applestrudel (GitHub - bbindreiter/node-red-contrib-alexa-remote2-applestrudel: Node-Red Nodes for interacting with Alexa) following this e…

---

## [Help return array index](https://discourse.nodered.org/t/help-return-array-index/67834)

<div class="topic-metadata">

**Author:** [@agermansen](https://discourse.nodered.org/u/agermansen)\
**Replies:** 4\
**Last updated:** [17 September 2022 19:13 UTC](https://discourse.nodered.org/t/help-return-array-index/67834 "2022-09-17T19:13:13Z")

</div>

Hey all I got this fairly simple flow that takes in an array of todays energi prices and returns the minimum and maximum value, this is all well and good but i need to know when the prices are high and low, can anyone h…

---

## [RMS AC voltage measurement](https://discourse.nodered.org/t/rms-ac-voltage-measurement/67767)

<div class="topic-metadata">

**Author:** [@Lubotinus](https://discourse.nodered.org/u/Lubotinus)\
**Replies:** 15\
**Last updated:** [17 September 2022 16:00 UTC](https://discourse.nodered.org/t/rms-ac-voltage-measurement/67767 "2022-09-17T16:00:35Z")

</div>

I have a Raspberry Pi and MCP3008 I need to measure the RMS value of AC voltage 50Hz. Can you please tell me how this can be done software in Node-red? There is no problem with the hardware part.

---

## [OpenWeatherMap Historical API for students return "no data" when given city, country as input](https://discourse.nodered.org/t/openweathermap-historical-api-for-students-return-no-data-when-given-city-country-as-input/67851)

<div class="topic-metadata">

**Author:** [@coco\_linton](https://discourse.nodered.org/u/coco_linton)\
**Replies:** 1\
**Last updated:** [17 September 2022 14:35 UTC](https://discourse.nodered.org/t/openweathermap-historical-api-for-students-return-no-data-when-given-city-country-as-input/67851 "2022-09-17T14:35:09Z")

</div>

I am trying to get the historical weather data when city and country is given as the input. It returns the value 404000 (invalid location according to the documentation) and the message "no data" even when I copy-paste t…

---

## [Template-node error](https://discourse.nodered.org/t/template-node-error/67830)

<div class="topic-metadata">

**Author:** [@FeliceM](https://discourse.nodered.org/u/FeliceM)\
**Replies:** 21\
**Last updated:** [17 September 2022 14:23 UTC](https://discourse.nodered.org/t/template-node-error/67830 "2022-09-17T14:23:47Z")

</div>

I am trying to pass the content of a global variable to an HTTP-in node In my template node I have the following: { Learning status: {{global.get("LearningStatus")}} } but it is giving error when the request is sent …

---

## [Node-Red 3 complains about me](https://discourse.nodered.org/t/node-red-3-complains-about-me/67804)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 18\
**Last updated:** [17 September 2022 13:37 UTC](https://discourse.nodered.org/t/node-red-3-complains-about-me/67804 "2022-09-17T13:37:17Z")

</div>

Hi, i installed Node-Red 3 on both of my RPi. Just on one of them Node-Red complains about my functions: for example. Every function it complains something... on the other RPi (same code) Node-Red does´t complain …

---

## [Cron plus solar events AND cron](https://discourse.nodered.org/t/cron-plus-solar-events-and-cron/67826)

<div class="topic-metadata">

**Author:** [@defconhaya](https://discourse.nodered.org/u/defconhaya)\
**Replies:** 2\
**Last updated:** [17 September 2022 12:53 UTC](https://discourse.nodered.org/t/cron-plus-solar-events-and-cron/67826 "2022-09-17T12:53:36Z")

</div>

Hi, I want to make a schedule that activates only from May to August on sunset. Is this possible using cron plus node ? Thanks.

---

## [Trigger API according to the input](https://discourse.nodered.org/t/trigger-api-according-to-the-input/67824)

<div class="topic-metadata">

**Author:** [@coco\_linton](https://discourse.nodered.org/u/coco_linton)\
**Replies:** 5\
**Last updated:** [17 September 2022 09:35 UTC](https://discourse.nodered.org/t/trigger-api-according-to-the-input/67824 "2022-09-17T09:35:02Z")

</div>

I'm building a weather dashboard and it has two options to get input. City/ Country name or Lattitude/ Longitude. I want to update my dashboard every 30 seconds. If City/ Country was given as input, I want to update th…

---

## [Start a system command in exec node in root mode](https://discourse.nodered.org/t/start-a-system-command-in-exec-node-in-root-mode/67839)

<div class="topic-metadata">

**Author:** [@chri-kai-in](https://discourse.nodered.org/u/chri-kai-in)\
**Replies:** 4\
**Last updated:** [17 September 2022 09:16 UTC](https://discourse.nodered.org/t/start-a-system-command-in-exec-node-in-root-mode/67839 "2022-09-17T09:16:30Z")

</div>

Hello, i was searching the forum and found some discussion about exec node and the usage of sudo but that unfortunately didn't help me with my issue: I have the need to call a command in "sudo su" or root mode within e…

---

## [Interpret MQTT object and update output according to which parameter is available](https://discourse.nodered.org/t/interpret-mqtt-object-and-update-output-according-to-which-parameter-is-available/67801)

<div class="topic-metadata">

**Author:** [@lessi](https://discourse.nodered.org/u/lessi)\
**Replies:** 6\
**Last updated:** [17 September 2022 07:15 UTC](https://discourse.nodered.org/t/interpret-mqtt-object-and-update-output-according-to-which-parameter-is-available/67801 "2022-09-17T07:15:52Z")

</div>

From one source (shelly1pmplus) I am receiving different objects on the same MQTT address: E.g. For the measured current: {"src":"shellyplus1pm-441793cfda38","dst":"shellyplus1pm-pvbalkon/events","method":"NotifyStat…

---

## [MQTT Sparkplug B Issue](https://discourse.nodered.org/t/mqtt-sparkplug-b-issue/67812)

<div class="topic-metadata">

**Author:** [@JhonWayne](https://discourse.nodered.org/u/JhonWayne)\
**Replies:** 2\
**Last updated:** [16 September 2022 19:26 UTC](https://discourse.nodered.org/t/mqtt-sparkplug-b-issue/67812 "2022-09-16T19:26:23Z")

</div>

Hi All, we appreciated that you can share all information about how we can use the node-red application. And following this, we have created a simple test for communicating through MQTT with two equipment but have the fo…

---

## [Join values into array in specific order to make a calculation](https://discourse.nodered.org/t/join-values-into-array-in-specific-order-to-make-a-calculation/67774)

<div class="topic-metadata">

**Author:** [@niklerus](https://discourse.nodered.org/u/niklerus)\
**Replies:** 14\
**Last updated:** [16 September 2022 15:42 UTC](https://discourse.nodered.org/t/join-values-into-array-in-specific-order-to-make-a-calculation/67774 "2022-09-16T15:42:23Z")

</div>

Trying to make a calculation in NR using Join to create an array and then do a division in a calculator node. Everything works as expected if the values (numerator and denominator) arrives in the correct order but they …

---

## [How to set env variable](https://discourse.nodered.org/t/how-to-set-env-variable/18612)

<div class="topic-metadata">

**Author:** [@DemonKing](https://discourse.nodered.org/u/DemonKing)\
**Replies:** 24\
**Last updated:** [16 September 2022 14:53 UTC](https://discourse.nodered.org/t/how-to-set-env-variable/18612 "2022-09-16T14:53:24Z")

</div>

env.get() working but env.set() is not a function like flow.set(),global.set()ext, so please find me how to set env variable

---

## [POST flow id is getting ignored](https://discourse.nodered.org/t/post-flow-id-is-getting-ignored/67811)

<div class="topic-metadata">

**Author:** [@guyluz11](https://discourse.nodered.org/u/guyluz11)\
**Replies:** 1\
**Last updated:** [16 September 2022 14:41 UTC](https://discourse.nodered.org/t/post-flow-id-is-getting-ignored/67811 "2022-09-16T14:41:48Z")

</div>

I am trying to create new flow with pre define id that I have created. But using Node-Red API setting the id in post flow it is getting ignored. To reproduce (I use Postman) create post request to http://localhost:1880…

---

## [Status of an Exec node](https://discourse.nodered.org/t/status-of-an-exec-node/67809)

<div class="topic-metadata">

**Author:** [@FeliceM](https://discourse.nodered.org/u/FeliceM)\
**Replies:** 1\
**Last updated:** [16 September 2022 14:36 UTC](https://discourse.nodered.org/t/status-of-an-exec-node/67809 "2022-09-16T14:36:50Z")

</div>

Hi, I am try to get the status of an exec-node using the status-node. For some reason I can catch when the node is killed but not when it has a pid. When I start the exec node, the function attached to the status node …

---

## [Filling http request field automatically](https://discourse.nodered.org/t/filling-http-request-field-automatically/11239)

<div class="topic-metadata">

**Author:** [@DillonW](https://discourse.nodered.org/u/DillonW)\
**Replies:** 8\
**Last updated:** [16 September 2022 14:14 UTC](https://discourse.nodered.org/t/filling-http-request-field-automatically/11239 "2022-09-16T14:14:31Z")

</div>

Hi, I am using two seperate http request nodes separately to access a service's api in Node-Red. The first one requests a token used for an extra level of authentication which is returned in the debug tab. The second r…

---

## [Problem using node-red-contrib-email-actions - crashing](https://discourse.nodered.org/t/problem-using-node-red-contrib-email-actions-crashing/67595)

<div class="topic-metadata">

**Author:** [@lewi0231](https://discourse.nodered.org/u/lewi0231)\
**Replies:** 1\
**Last updated:** [16 September 2022 13:51 UTC](https://discourse.nodered.org/t/problem-using-node-red-contrib-email-actions-crashing/67595 "2022-09-16T13:51:02Z")

</div>

So, I'm wanting to receive emails and then change the folder (or label) that the email is stored in based on certain criteria (e.g., sentiment) Currently I'm able to receive emails from a test gmail account (after confi…

---

## [Send notification to LAN devices (Android, Iphone) even when internet is down](https://discourse.nodered.org/t/send-notification-to-lan-devices-android-iphone-even-when-internet-is-down/67593)

<div class="topic-metadata">

**Author:** [@MMB](https://discourse.nodered.org/u/MMB)\
**Replies:** 2\
**Last updated:** [16 September 2022 13:32 UTC](https://discourse.nodered.org/t/send-notification-to-lan-devices-android-iphone-even-when-internet-is-down/67593 "2022-09-16T13:32:12Z")

</div>

Hello, I have a running server (windows) with Node-red which send me various notification to connected devices via WhatsApp and emails thru Internet. I need to receive those notification in case of internet is down, whi…

---

## [Ideas for comparing week-over-week values](https://discourse.nodered.org/t/ideas-for-comparing-week-over-week-values/67799)

<div class="topic-metadata">

**Author:** [@grant1](https://discourse.nodered.org/u/grant1)\
**Replies:** 5\
**Last updated:** [16 September 2022 13:25 UTC](https://discourse.nodered.org/t/ideas-for-comparing-week-over-week-values/67799 "2022-09-16T13:25:07Z")

</div>

Hello. We have an ammonia tank that get depleted over about 8 weeks, then refilled. The tank has a meter that transmits its status once a week (every Friday about 16:33). The data looks like this: array\[1\] 0: object …

---

## [Iterate over all Nodes in a flow at runtime](https://discourse.nodered.org/t/iterate-over-all-nodes-in-a-flow-at-runtime/67649)

<div class="topic-metadata">

**Author:** [@michelbarnich](https://discourse.nodered.org/u/michelbarnich)\
**Replies:** 4\
**Last updated:** [16 September 2022 13:24 UTC](https://discourse.nodered.org/t/iterate-over-all-nodes-in-a-flow-at-runtime/67649 "2022-09-16T13:24:41Z")

</div>

Hi I built a Node that lists the IDs of all Nodes with the help of the RED library, but I noticed that the IDs that it returns are not the same IDs as the Nodes have during runtime. Is there any method to get all the No…

---

## [Duration in MM between two times](https://discourse.nodered.org/t/duration-in-mm-between-two-times/67797)

<div class="topic-metadata">

**Author:** [@notownblues](https://discourse.nodered.org/u/notownblues)\
**Replies:** 4\
**Last updated:** [16 September 2022 12:05 UTC](https://discourse.nodered.org/t/duration-in-mm-between-two-times/67797 "2022-09-16T12:05:39Z")

</div>

Hi, I'm trying to write a function to give me the duration in minutes from two times in the same payload. For example 17:45 to 18:45 would give me a duration of 60min. Do you guys know how I can achieve that? Many tha…

---

## [Issue with passport authentication (pkce flow), token url not reachable from nodered](https://discourse.nodered.org/t/issue-with-passport-authentication-pkce-flow-token-url-not-reachable-from-nodered/67800)

<div class="topic-metadata">

**Author:** [@DJDev](https://discourse.nodered.org/u/DJDev)\
**Replies:** 1\
**Last updated:** [16 September 2022 11:48 UTC](https://discourse.nodered.org/t/issue-with-passport-authentication-pkce-flow-token-url-not-reachable-from-nodered/67800 "2022-09-16T11:48:56Z")

</div>

Hi, I am using nodered in Docker with authentication enabled. I am using an oidc passport package with pkce support (@techpass/passport-openidconnect - npm) to authenticate in nodered. Using this package nodered is a…

---

## [No debug output in side-bar](https://discourse.nodered.org/t/no-debug-output-in-side-bar/67721)

<div class="topic-metadata">

**Author:** [@dvogureckiy99](https://discourse.nodered.org/u/dvogureckiy99)\
**Replies:** 3\
**Last updated:** [16 September 2022 11:02 UTC](https://discourse.nodered.org/t/no-debug-output-in-side-bar/67721 "2022-09-16T11:02:23Z")

</div>

I get nothing in my debug box. Any ides why?

---

## [How can i get several values from asynchronous inputs? (object detection & pose detection)](https://discourse.nodered.org/t/how-can-i-get-several-values-from-asynchronous-inputs-object-detection-pose-detection/67779)

<div class="topic-metadata">

**Author:** [@hero](https://discourse.nodered.org/u/hero)\
**Replies:** 7\
**Last updated:** [16 September 2022 08:55 UTC](https://discourse.nodered.org/t/how-can-i-get-several-values-from-asynchronous-inputs-object-detection-pose-detection/67779 "2022-09-16T08:55:14Z")

</div>

Im going to make some flow that perform operations based on detected objects and motion. so first of all, I made that the camera input stream is transmitted to the object recognition node and the pose recognition node i…

---

## [Start flow from outside nodered](https://discourse.nodered.org/t/start-flow-from-outside-nodered/67790)

<div class="topic-metadata">

**Author:** [@FeliceM](https://discourse.nodered.org/u/FeliceM)\
**Replies:** 4\
**Last updated:** [16 September 2022 08:28 UTC](https://discourse.nodered.org/t/start-flow-from-outside-nodered/67790 "2022-09-16T08:28:53Z")

</div>

Hi, I need some help. I have a flow in nodered that needs to start from outside the nodered environment but on the same device (Raspberry Pi). I am trying to use an HTTP-in-node set as GET and listening on http://loca…

---

## [Updating nodes from True to False when no movement detected](https://discourse.nodered.org/t/updating-nodes-from-true-to-false-when-no-movement-detected/67763)

<div class="topic-metadata">

**Author:** [@cagray](https://discourse.nodered.org/u/cagray)\
**Replies:** 4\
**Last updated:** [16 September 2022 08:25 UTC](https://discourse.nodered.org/t/updating-nodes-from-true-to-false-when-no-movement-detected/67763 "2022-09-16T08:25:33Z")

</div>

Hi, Newbie here and trying to set up a Vacation mode. The task I'm trying to do is check if people haven't been around for a while, so both of us away --\> start video recording. If we're away and motion detected by any …

---

## [Trigger email based on subject line](https://discourse.nodered.org/t/trigger-email-based-on-subject-line/67785)

<div class="topic-metadata">

**Author:** [@Ranga](https://discourse.nodered.org/u/Ranga)\
**Replies:** 4\
**Last updated:** [16 September 2022 08:12 UTC](https://discourse.nodered.org/t/trigger-email-based-on-subject-line/67785 "2022-09-16T08:12:49Z")

</div>

How to trigger the email based on subject line.

---

## [Creating nodes: how to execute code?](https://discourse.nodered.org/t/creating-nodes-how-to-execute-code/67789)

<div class="topic-metadata">

**Author:** [@magnusso](https://discourse.nodered.org/u/magnusso)\
**Replies:** 1\
**Last updated:** [16 September 2022 07:46 UTC](https://discourse.nodered.org/t/creating-nodes-how-to-execute-code/67789 "2022-09-16T07:46:08Z")

</div>

Could you please point me in the right direction. How does one create a simple timer? Initially a light is turned off by the press of a button, which initiates message. After 5 minutes has passed, how do you initiate a t…

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

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