# General

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

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

**Page:** 271

---

## [Input\_select not working with current state node](https://discourse.nodered.org/t/input-select-not-working-with-current-state-node/72926)

<div class="topic-metadata">

**Author:** [@smile](https://discourse.nodered.org/u/smile)\
**Replies:** 3\
**Last updated:** [30 December 2022 11:53 UTC](https://discourse.nodered.org/t/input-select-not-working-with-current-state-node/72926 "2022-12-30T11:53:09Z")

</div>

Input\_select in HA not working with current state node, input\_number working fine. Is current state node not compatible with Input\_select?

---

## [Accessing Data from object that is in array(arrays again in object)](https://discourse.nodered.org/t/accessing-data-from-object-that-is-in-array-arrays-again-in-object/72861)

<div class="topic-metadata">

**Author:** [@Jhankhana](https://discourse.nodered.org/u/Jhankhana)\
**Replies:** 12\
**Last updated:** [30 December 2022 11:16 UTC](https://discourse.nodered.org/t/accessing-data-from-object-that-is-in-array-arrays-again-in-object/72861 "2022-12-30T11:16:39Z")

</div>

Hello, I am using http request to get data of one month. Screenshots of what I am getting in debug is attached below which is array of objects. Now I want to access minvalue from the first object and maxvalue from last …

---

## [Impossible to parse simple array from SQL node](https://discourse.nodered.org/t/impossible-to-parse-simple-array-from-sql-node/72924)

<div class="topic-metadata">

**Author:** [@kopter2112](https://discourse.nodered.org/u/kopter2112)\
**Replies:** 4\
**Last updated:** [30 December 2022 11:11 UTC](https://discourse.nodered.org/t/impossible-to-parse-simple-array-from-sql-node/72924 "2022-12-30T11:11:15Z")

</div>

I have tried so many different ways, but as far as I understand all documentation, this should work. But it only passes "", and not the value 152 which is returned by the SQL query. This is the query I use (to get the cu…

---

## [How to keep the volume of alexa messages constant](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920)

<div class="topic-metadata">

**Author:** [@franz](https://discourse.nodered.org/u/franz)\
**Replies:** 10\
**Last updated:** [30 December 2022 08:59 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920 "2022-12-30T08:59:26Z")

</div>

How to keep the volume of alexa messages constant, always at the same level? Sometimes the volume of the echodot at home is lowered either by voice command or manually with the button and no longer restored, when an…

---

## [Scraping and making sense of a website](https://discourse.nodered.org/t/scraping-and-making-sense-of-a-website/72870)

<div class="topic-metadata">

**Author:** [@Romprod](https://discourse.nodered.org/u/Romprod)\
**Replies:** 3\
**Last updated:** [30 December 2022 09:04 UTC](https://discourse.nodered.org/t/scraping-and-making-sense-of-a-website/72870 "2022-12-30T09:04:31Z")

</div>

Hi, I'm looking for some help to understand how to logically make sense of the output of a website that I'm scraping, it's more of a "how do I organise the data logically due to the random amount of games in each league…

---

## [Node-Red will no longer start with uncaught exception](https://discourse.nodered.org/t/node-red-will-no-longer-start-with-uncaught-exception/72922)

<div class="topic-metadata">

**Author:** [@shimbone](https://discourse.nodered.org/u/shimbone)\
**Replies:** 3\
**Last updated:** [30 December 2022 06:10 UTC](https://discourse.nodered.org/t/node-red-will-no-longer-start-with-uncaught-exception/72922 "2022-12-30T06:10:57Z")

</div>

Log file is below. It looks like it is related to MQTT, however, I have changed nothing with my broker and can connect to it just fine with other clients. I was, however, messing with Roomba configurations from: node-r…

---

## [Errors and \`node-id\` values](https://discourse.nodered.org/t/errors-and-node-id-values/72749)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 22\
**Last updated:** [29 December 2022 23:53 UTC](https://discourse.nodered.org/t/errors-and-node-id-values/72749 "2022-12-29T23:53:21Z")

</div>

Ok, I have been down this road before - sorry. I have a SHOCKING memory to what was resolved from my question. What I think: All nodes have a unique id so when they have an error it is given and you/I can search for t…

---

## [Date / Format in a script](https://discourse.nodered.org/t/date-format-in-a-script/72919)

<div class="topic-metadata">

**Author:** [@Lafayette](https://discourse.nodered.org/u/Lafayette)\
**Replies:** 8\
**Last updated:** [29 December 2022 21:59 UTC](https://discourse.nodered.org/t/date-format-in-a-script/72919 "2022-12-29T21:59:13Z")

</div>

Hi, After an HTTP Request I get an array. In this array I've got an object (date) formated like this : 2022-12-09 and I would like to convert it like this 09/12/2022. If I use the Moment Node I know how to do that for o…

---

## [MQTT, payload, JSON and wanting to check](https://discourse.nodered.org/t/mqtt-payload-json-and-wanting-to-check/72859)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 6\
**Last updated:** [29 December 2022 21:01 UTC](https://discourse.nodered.org/t/mqtt-payload-json-and-wanting-to-check/72859 "2022-12-29T21:01:27Z")

</div>

(Sort of following on from my other post/question) What I know about MQTT: 1 - basically the payload is the only part of the message that is sent to the other end. (that's about it) If you want to send other stuff, y…

---

## [Write multiple topics into one csv - one column per topic](https://discourse.nodered.org/t/write-multiple-topics-into-one-csv-one-column-per-topic/72917)

<div class="topic-metadata">

**Author:** [@Emixer](https://discourse.nodered.org/u/Emixer)\
**Replies:** 1\
**Last updated:** [29 December 2022 20:40 UTC](https://discourse.nodered.org/t/write-multiple-topics-into-one-csv-one-column-per-topic/72917 "2022-12-29T20:40:35Z")

</div>

Hello, I have several sensors subscribed via mqtt. I write the payload with date, time and value in a csv. {"timestamp":1672341312998,"temperature":33.25,"topic":"Sensor 1"} {"timestamp":1672341342848,"temperature":20…

---

## [Best way to install Node-Red on openWRT](https://discourse.nodered.org/t/best-way-to-install-node-red-on-openwrt/70439)

<div class="topic-metadata">

**Author:** [@iotlibre](https://discourse.nodered.org/u/iotlibre)\
**Replies:** 13\
**Last updated:** [29 December 2022 18:18 UTC](https://discourse.nodered.org/t/best-way-to-install-node-red-on-openwrt/70439 "2022-12-29T18:18:40Z")

</div>

I am working with Node-Red on various platforms and now I need to install Node-Red on openWRT What is the best way to install Node-Red on openWRT?

---

## [Best Way to organise Triggers and Actions in a node red automation system?](https://discourse.nodered.org/t/best-way-to-organise-triggers-and-actions-in-a-node-red-automation-system/70672)

<div class="topic-metadata">

**Author:** [@itcouldbeL](https://discourse.nodered.org/u/itcouldbeL)\
**Replies:** 4\
**Last updated:** [29 December 2022 17:55 UTC](https://discourse.nodered.org/t/best-way-to-organise-triggers-and-actions-in-a-node-red-automation-system/70672 "2022-12-29T17:55:34Z")

</div>

Hi folks, I'm starting a new project where node red will handle the basic automation tasks. I'll have various inputs ranging from Video Analytics, Door contacts, Switches to name a few. My outputs will Vary from relays…

---

## [Node-Red Ridiculously Slow](https://discourse.nodered.org/t/node-red-ridiculously-slow/72903)

<div class="topic-metadata">

**Author:** [@psalibe](https://discourse.nodered.org/u/psalibe)\
**Replies:** 4\
**Last updated:** [29 December 2022 16:36 UTC](https://discourse.nodered.org/t/node-red-ridiculously-slow/72903 "2022-12-29T16:36:36Z")

</div>

Hi All, We have a rather large Node-Red flow that does a variety of tasks but they are all pretty simple. Node-Red is running on our HMI which is running Ubuntu. It pulls data in from an OPC database on the PLC, parses …

---

## [Node node-red-contrib-events](https://discourse.nodered.org/t/node-node-red-contrib-events/72741)

<div class="topic-metadata">

**Author:** [@Giamma](https://discourse.nodered.org/u/Giamma)\
**Replies:** 8\
**Last updated:** [29 December 2022 12:22 UTC](https://discourse.nodered.org/t/node-node-red-contrib-events/72741 "2022-12-29T12:22:52Z")

</div>

Hi, I have a problem with this node ... Does not always works; Do you use it without problems?

---

## [Sort of Token Bucket](https://discourse.nodered.org/t/sort-of-token-bucket/72818)

<div class="topic-metadata">

**Author:** [@spady7](https://discourse.nodered.org/u/spady7)\
**Replies:** 11\
**Last updated:** [29 December 2022 13:23 UTC](https://discourse.nodered.org/t/sort-of-token-bucket/72818 "2022-12-29T13:23:53Z")

</div>

Hi, I'm looking for help with a somewhat particular request that I can't find a solution to. I have a nodered flow that manages me a relay (on/off) based on different conditions. List the conditions: if the % of a bat…

---

## [Drop incoming messages after first message reac](https://discourse.nodered.org/t/drop-incoming-messages-after-first-message-reac/72846)

<div class="topic-metadata">

**Author:** [@magnusso](https://discourse.nodered.org/u/magnusso)\
**Replies:** 2\
**Last updated:** [29 December 2022 12:59 UTC](https://discourse.nodered.org/t/drop-incoming-messages-after-first-message-reac/72846 "2022-12-29T12:59:29Z")

</div>

Is there some straightforward way to allow only the first message and drop subsequent messages and continue doing so until the first message has reached the end of the flow, and then repeat the same. In this particular …

---

## [Downloading a csv from a link in a website](https://discourse.nodered.org/t/downloading-a-csv-from-a-link-in-a-website/72872)

<div class="topic-metadata">

**Author:** [@little\_rich](https://discourse.nodered.org/u/little_rich)\
**Replies:** 10\
**Last updated:** [29 December 2022 12:47 UTC](https://discourse.nodered.org/t/downloading-a-csv-from-a-link-in-a-website/72872 "2022-12-29T12:47:21Z")

</div>

Hi, I would like to download a csv file from a website once per day and save it to the local node-red file system as a csv file. (renaming the file would be nice but not crucial) I do not know which node to use. I have…

---

## [Substring() in function node does not slice](https://discourse.nodered.org/t/substring-in-function-node-does-not-slice/72886)

<div class="topic-metadata">

**Author:** [@ozett](https://discourse.nodered.org/u/ozett)\
**Replies:** 3\
**Last updated:** [29 December 2022 12:45 UTC](https://discourse.nodered.org/t/substring-in-function-node-does-not-slice/72886 "2022-12-29T12:45:32Z")

</div>

first of all, i am no coder, but fiddling longtime with node-red. now i want a part of a string in a function-node, but get crazy results. to my impression substring() and substr() and slice() should cut out a part of…

---

## [Automate Hue Lights Whilst On Vacation](https://discourse.nodered.org/t/automate-hue-lights-whilst-on-vacation/72728)

<div class="topic-metadata">

**Author:** [@dgulliver](https://discourse.nodered.org/u/dgulliver)\
**Replies:** 4\
**Last updated:** [29 December 2022 11:48 UTC](https://discourse.nodered.org/t/automate-hue-lights-whilst-on-vacation/72728 "2022-12-29T11:48:31Z")

</div>

Hi, I’m running node red in docker along with HA. What I’m looking to do is turn a kitchen light on and off randomly between a certain time, this so it looks like someone is occasionally using the kitchen. For example…

---

## [How to get timezone UTC+7 in node-red](https://discourse.nodered.org/t/how-to-get-timezone-utc-7-in-node-red/72866)

<div class="topic-metadata">

**Author:** [@hyena](https://discourse.nodered.org/u/hyena)\
**Replies:** 8\
**Last updated:** [29 December 2022 11:47 UTC](https://discourse.nodered.org/t/how-to-get-timezone-utc-7-in-node-red/72866 "2022-12-29T11:47:01Z")

</div>

i want to get timezone UTC+7, but in my node-red have timezone UTC how i do timezone UTC+7 in node-red program?

---

## [Can not find the reason for "Missing ENV var CONFIG\_PATH"](https://discourse.nodered.org/t/can-not-find-the-reason-for-missing-env-var-config-path/72837)

<div class="topic-metadata">

**Author:** [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Replies:** 4\
**Last updated:** [29 December 2022 10:20 UTC](https://discourse.nodered.org/t/can-not-find-the-reason-for-missing-env-var-config-path/72837 "2022-12-29T10:20:48Z")

</div>

Hiho, I ve no idea why I get this error message on startup: Missing ENV var CONFIG\_PATH The forum topics did not help me on that. Thx 4 help! 2022-12-28 16:25:55 28 Dec 16:25:55 - \[info\] Node.js version: v18.7.0 20…

---

## [Countdown timer in ui](https://discourse.nodered.org/t/countdown-timer-in-ui/70131)

<div class="topic-metadata">

**Author:** [@ompl](https://discourse.nodered.org/u/ompl)\
**Replies:** 2\
**Last updated:** [29 December 2022 10:21 UTC](https://discourse.nodered.org/t/countdown-timer-in-ui/70131 "2022-12-29T10:21:46Z")

</div>

Hello, Im writing program for paintball game controller program. The main problem what i met to create time countdown timer in minutes and seconds with possibility to pause and after continue. Everything must be in ui, a…

---

## [Node red - write a function and call it from a function](https://discourse.nodered.org/t/node-red-write-a-function-and-call-it-from-a-function/72773)

<div class="topic-metadata">

**Author:** [@ronyn77](https://discourse.nodered.org/u/ronyn77)\
**Replies:** 13\
**Last updated:** [29 December 2022 09:41 UTC](https://discourse.nodered.org/t/node-red-write-a-function-and-call-it-from-a-function/72773 "2022-12-29T09:41:33Z")

</div>

Hello, I am learning node red and I need help to optimize a flow that I have created. This is the flow : Node red project - Pastebin.com To make this flow work, you need additionally to import : node-red-contrib-zigbe…

---

## [Bit fields and bitwise operations](https://discourse.nodered.org/t/bit-fields-and-bitwise-operations/72809)

<div class="topic-metadata">

**Author:** [@Graefe](https://discourse.nodered.org/u/Graefe)\
**Replies:** 2\
**Last updated:** [29 December 2022 03:26 UTC](https://discourse.nodered.org/t/bit-fields-and-bitwise-operations/72809 "2022-12-29T03:26:33Z")

</div>

I would like to represent the status (open/close) of multiple windows for further use (e.g. alarm system). My idea was to put the status of all devices in one bit field. A bit field seems to be very handy, especially if …

---

## [MQTT is driving me crazy. How to format messages - again, sorry](https://discourse.nodered.org/t/mqtt-is-driving-me-crazy-how-to-format-messages-again-sorry/72858)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 15\
**Last updated:** [29 December 2022 03:23 UTC](https://discourse.nodered.org/t/mqtt-is-driving-me-crazy-how-to-format-messages-again-sorry/72858 "2022-12-29T03:23:06Z")

</div>

(This is not enjoyable for me as it clearly shows how bad I am at remembering things.) Cutting to it: I want to send a complex message over MQTT. I want to send the payload and state. The actual message is HUGE. …

---

## [\`function\` node not showing errors in edit mode](https://discourse.nodered.org/t/function-node-not-showing-errors-in-edit-mode/72853)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [29 December 2022 00:11 UTC](https://discourse.nodered.org/t/function-node-not-showing-errors-in-edit-mode/72853 "2022-12-29T00:11:48Z")

</div>

(I seem to be a glutton for punishment.) Ok, there is a difference with NR versions between machines. I'll cop that. But this just confuses me. I have 3 main machines that are usually online. I am not good at writin…

---

## [Regex in a node - "TypeError: msg.payload\[0\].match is not a function"](https://discourse.nodered.org/t/regex-in-a-node-typeerror-msg-payload-0-match-is-not-a-function/72367)

<div class="topic-metadata">

**Author:** [@itcouldbeL](https://discourse.nodered.org/u/itcouldbeL)\
**Replies:** 13\
**Last updated:** [28 December 2022 23:49 UTC](https://discourse.nodered.org/t/regex-in-a-node-typeerror-msg-payload-0-match-is-not-a-function/72367 "2022-12-28T23:49:59Z")

</div>

Hi all, I'm going crazy with this one. I already have a function setup and working using the .match in function node with zero issues (See Below:) const channel\_no\_regex = /(?\<=\\()\[A-Z\]\[0-9\]\[^)\]\*(?=\\))/gm; const channe…

---

## [Trigger node - send payload & topic](https://discourse.nodered.org/t/trigger-node-send-payload-topic/72650)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 5\
**Last updated:** [28 December 2022 22:20 UTC](https://discourse.nodered.org/t/trigger-node-send-payload-topic/72650 "2022-12-28T22:20:45Z")

</div>

I have a flow controlling a light which I control via Google Home voice commands, to MQTT, to a tasmota remote device. If I tell google to switch the device on, it sends; {"payload":"on","topic":"cmnd/sonoff2/POWER"} t…

---

## [Format Buffer to HexString in function node](https://discourse.nodered.org/t/format-buffer-to-hexstring-in-function-node/72795)

<div class="topic-metadata">

**Author:** [@lopikamper](https://discourse.nodered.org/u/lopikamper)\
**Replies:** 2\
**Last updated:** [28 December 2022 22:16 UTC](https://discourse.nodered.org/t/format-buffer-to-hexstring-in-function-node/72795 "2022-12-28T22:16:00Z")

</div>

Hi all, I need to do a rather simple task. I would like to format this Buffer: var char = Buffer.from(\[0x7e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xef\]) in a function node (or any other way) as a HexString: var …

---

## [I want to filter out a tag from the code of a page](https://discourse.nodered.org/t/i-want-to-filter-out-a-tag-from-the-code-of-a-page/72836)

<div class="topic-metadata">

**Author:** [@tamasvar](https://discourse.nodered.org/u/tamasvar)\
**Replies:** 6\
**Last updated:** [28 December 2022 22:02 UTC](https://discourse.nodered.org/t/i-want-to-filter-out-a-tag-from-the-code-of-a-page/72836 "2022-12-28T22:02:18Z")

</div>

I am querying the complete html code of the youtube video and I want to get the src link of the video as shown here:

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

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