# General

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

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

**Page:** 288

---

## [Moment Node - output "Today, Tomorrow, Tuesday, Next Monday"](https://discourse.nodered.org/t/moment-node-output-today-tomorrow-tuesday-next-monday/71214)

<div class="topic-metadata">

**Author:** [@SurfingSpider](https://discourse.nodered.org/u/SurfingSpider)\
**Replies:** 2\
**Last updated:** [25 November 2022 16:33 UTC](https://discourse.nodered.org/t/moment-node-output-today-tomorrow-tuesday-next-monday/71214 "2022-11-25T16:33:12Z")

</div>

I have a moment node that I am trying to get it to output either Today, Tomorrow, Tuesday I set the moment node to Output Format "calendar" but it gives me the time as well as the day. Example Input: 2022-11-28T00:00:…

---

## [Http request node, handling failures silently](https://discourse.nodered.org/t/http-request-node-handling-failures-silently/71246)

<div class="topic-metadata">

**Author:** [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Replies:** 5\
**Last updated:** [25 November 2022 15:37 UTC](https://discourse.nodered.org/t/http-request-node-handling-failures-silently/71246 "2022-11-25T15:37:02Z")

</div>

I am using the HTTP request node. When everything goes well, you get a statusCode=200, any other code is a failure of some sort. But in case of failures, you also get failures reported in debug window and system console.…

---

## [Probelm in executing script ( chart js ) in template node](https://discourse.nodered.org/t/probelm-in-executing-script-chart-js-in-template-node/71248)

<div class="topic-metadata">

**Author:** [@Safouene28](https://discourse.nodered.org/u/Safouene28)\
**Replies:** 0\
**Last updated:** [25 November 2022 15:17 UTC](https://discourse.nodered.org/t/probelm-in-executing-script-chart-js-in-template-node/71248 "2022-11-25T15:17:33Z")

</div>

Hello everyone , Like is mentionned in the title I have a problem when I want to add some effects on the graph , I want to add a shadow with the line , the first time when I deployed the code I had the perfect result ,B…

---

## [TimeSchedulerNode: Error: Module not allowed](https://discourse.nodered.org/t/timeschedulernode-error-module-not-allowed/71224)

<div class="topic-metadata">

**Author:** [@1bit](https://discourse.nodered.org/u/1bit)\
**Replies:** 9\
**Last updated:** [25 November 2022 13:23 UTC](https://discourse.nodered.org/t/timeschedulernode-error-module-not-allowed/71224 "2022-11-25T13:23:55Z")

</div>

After the latest upgrade to Armbian 22.08.8, my node-red refuses to start. Appreciate any help with recovery as my backup is a bit old.

---

## [Auto light on based on sunset AND presence](https://discourse.nodered.org/t/auto-light-on-based-on-sunset-and-presence/71186)

<div class="topic-metadata">

**Author:** [@Tomazzive](https://discourse.nodered.org/u/Tomazzive)\
**Replies:** 5\
**Last updated:** [25 November 2022 12:44 UTC](https://discourse.nodered.org/t/auto-light-on-based-on-sunset-and-presence/71186 "2022-11-25T12:44:15Z")

</div>

Hi, I have been struggling for a long time with this 'simple?' logic: If me or my wife are home ànd the sunset goes in, the outdoor light should go on until 9:30pm. Since I want to use 3 checks, I'm using the boolean …

---

## [Sonoff-Lan-Control](https://discourse.nodered.org/t/sonoff-lan-control/71232)

<div class="topic-metadata">

**Author:** [@FeliceM](https://discourse.nodered.org/u/FeliceM)\
**Replies:** 3\
**Last updated:** [25 November 2022 12:03 UTC](https://discourse.nodered.org/t/sonoff-lan-control/71232 "2022-11-25T12:03:31Z")

</div>

Hi there, I installed this node with the intention to control a sonoff basic switch over the lan. I can ping the device and its port 8081 is open. However, the node shows "disconnected". Same for the Sonoff-Lan-Listen…

---

## [Reading a serial stirng and breaking it apart based on hex delimita](https://discourse.nodered.org/t/reading-a-serial-stirng-and-breaking-it-apart-based-on-hex-delimita/70956)

<div class="topic-metadata">

**Author:** [@coffeesnob](https://discourse.nodered.org/u/coffeesnob)\
**Replies:** 6\
**Last updated:** [25 November 2022 10:26 UTC](https://discourse.nodered.org/t/reading-a-serial-stirng-and-breaking-it-apart-based-on-hex-delimita/70956 "2022-11-25T10:26:08Z")

</div>

Hi team, I am trying to decode a constant stream of data that is being transmitted via RS485. Following is an example snippet of the data string. 7e 16 10 bf 14 01 04 05 11 28 00 00 00 00 00 00 00 00 00 00 00 00 5e 7e …

---

## [Unable To Copy Flow For Backup](https://discourse.nodered.org/t/unable-to-copy-flow-for-backup/70927)

<div class="topic-metadata">

**Author:** [@Randy](https://discourse.nodered.org/u/Randy)\
**Replies:** 5\
**Last updated:** [24 November 2022 21:38 UTC](https://discourse.nodered.org/t/unable-to-copy-flow-for-backup/70927 "2022-11-24T21:38:03Z")

</div>

Running version 2.1.5 and trying to copy a flow for safe keeping by pasting to Notepad. I click on one node to highlight then CTRL-A to highlight all nodes. Go to Export where all the nodes highlighted are listed. Cli…

---

## [Firebase Realtime Database and node-red](https://discourse.nodered.org/t/firebase-realtime-database-and-node-red/71209)

<div class="topic-metadata">

**Author:** [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Replies:** 4\
**Last updated:** [25 November 2022 07:58 UTC](https://discourse.nodered.org/t/firebase-realtime-database-and-node-red/71209 "2022-11-25T07:58:16Z")

</div>

Last few days were trying to manage my Firebase Realtime Database from node-red. So installed the node-red-contrib-firebase, what a disaster, crashed all my test flows. But the alarm bells should have rung as it were las…

---

## [How to create a node red node runs local python scripts on a remote python shell?](https://discourse.nodered.org/t/how-to-create-a-node-red-node-runs-local-python-scripts-on-a-remote-python-shell/71230)

<div class="topic-metadata">

**Author:** [@Dunton](https://discourse.nodered.org/u/Dunton)\
**Replies:** 1\
**Last updated:** [25 November 2022 07:53 UTC](https://discourse.nodered.org/t/how-to-create-a-node-red-node-runs-local-python-scripts-on-a-remote-python-shell/71230 "2022-11-25T07:53:48Z")

</div>

Hi All, I've the code below. the python shell is local. If I want to change it to a remote python, how should I do? const status = require('./status.js') const {spawn} = require('child\_process') //use 'python3' on lin…

---

## [Get value from buffer with expressions](https://discourse.nodered.org/t/get-value-from-buffer-with-expressions/71068)

<div class="topic-metadata">

**Author:** [@walberjunior](https://discourse.nodered.org/u/walberjunior)\
**Replies:** 2\
**Last updated:** [24 November 2022 22:08 UTC](https://discourse.nodered.org/t/get-value-from-buffer-with-expressions/71068 "2022-11-24T22:08:29Z")

</div>

I have a function generating several buffers. Is it possible using expressions (or another way) to retrieve the value of buffers similar to the image below?

---

## [Http request node returning error](https://discourse.nodered.org/t/http-request-node-returning-error/71101)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 20\
**Last updated:** [24 November 2022 20:50 UTC](https://discourse.nodered.org/t/http-request-node-returning-error/71101 "2022-11-24T20:50:54Z")

</div>

A colleague sent me an example flow to obtain data from the Met Office Datahub, which worked fine. However, using that flow as a template, my version failed, and produced errors that say that the api structure is incorr…

---

## [Github fine-grained personal access tokens and node-red projects](https://discourse.nodered.org/t/github-fine-grained-personal-access-tokens-and-node-red-projects/71207)

<div class="topic-metadata">

**Author:** [@kevinGodell](https://discourse.nodered.org/u/kevinGodell)\
**Replies:** 0\
**Last updated:** [24 November 2022 19:25 UTC](https://discourse.nodered.org/t/github-fine-grained-personal-access-tokens-and-node-red-projects/71207 "2022-11-24T19:25:56Z")

</div>

I just noticed a new beta feature on github for creating fine-grained personal access tokens and ran a few tests to see if it would work with node-red projects. It does, but... on https://github.com/, it is found at set…

---

## [How to implement a 'if-else' logic to decide whether trigger a node?](https://discourse.nodered.org/t/how-to-implement-a-if-else-logic-to-decide-whether-trigger-a-node/71206)

<div class="topic-metadata">

**Author:** [@5Reasons](https://discourse.nodered.org/u/5Reasons)\
**Replies:** 2\
**Last updated:** [24 November 2022 18:54 UTC](https://discourse.nodered.org/t/how-to-implement-a-if-else-logic-to-decide-whether-trigger-a-node/71206 "2022-11-24T18:54:28Z")

</div>

As the picture, I want to implement a logic that is: if the data I get is higher than xxx, then send an email to notice myself. else, don't send the email to disturb myself. How to do that in node-red? Really confus…

---

## [Ignore/block message a specific time](https://discourse.nodered.org/t/ignore-block-message-a-specific-time/71204)

<div class="topic-metadata">

**Author:** [@dowermyr](https://discourse.nodered.org/u/dowermyr)\
**Replies:** 1\
**Last updated:** [24 November 2022 18:48 UTC](https://discourse.nodered.org/t/ignore-block-message-a-specific-time/71204 "2022-11-24T18:48:55Z")

</div>

I'm looking for a node that let's the first message thrugh, the stops all messages for a set time, then opens upp for another message.

---

## [Proper way to install nodes using npm?](https://discourse.nodered.org/t/proper-way-to-install-nodes-using-npm/71188)

<div class="topic-metadata">

**Author:** [@mauricio](https://discourse.nodered.org/u/mauricio)\
**Replies:** 7\
**Last updated:** [24 November 2022 17:44 UTC](https://discourse.nodered.org/t/proper-way-to-install-nodes-using-npm/71188 "2022-11-24T17:44:47Z")

</div>

Hello I'm developing on an Olimex Olinuxino A20 SBC. Operating System: Debian GNU/Linux 11 (bullseye) Kernel: Linux 5.10.105-olimex Architecture: arm Installed Node-red with the raspberry pi script From the node-re…

---

## [Python-function doesn't finish](https://discourse.nodered.org/t/python-function-doesnt-finish/71151)

<div class="topic-metadata">

**Author:** [@ErikTavares](https://discourse.nodered.org/u/ErikTavares)\
**Replies:** 8\
**Last updated:** [24 November 2022 17:42 UTC](https://discourse.nodered.org/t/python-function-doesnt-finish/71151 "2022-11-24T17:42:53Z")

</div>

Python Funcion is running, but it doesn't finish.

---

## [Shelly sale on!](https://discourse.nodered.org/t/shelly-sale-on/71202)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 0\
**Last updated:** [24 November 2022 17:30 UTC](https://discourse.nodered.org/t/shelly-sale-on/71202 "2022-11-24T17:30:36Z")

</div>

A lot of guys here use shelly devices for monitoring, switching, dimming etc. so just letting you know that their black Friday sale is now on - https://shop.shelly.cloud/ It's not the most generous I've seen from Shelly…

---

## [Fake Victron dbus gridmeter in Node-Red](https://discourse.nodered.org/t/fake-victron-dbus-gridmeter-in-node-red/70287)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 5\
**Last updated:** [24 November 2022 16:19 UTC](https://discourse.nodered.org/t/fake-victron-dbus-gridmeter-in-node-red/70287 "2022-11-24T16:19:09Z")

</div>

Hi, Node-Red is integrated in Victrons "VenusOS large". Is it possible to fake a gridmeter directly from Node-Red, respectively to write dbus ? In github there are always python scripts, which fakes Smartmeters: I…

---

## [FlowForge 1.1 is in the wild](https://discourse.nodered.org/t/flowforge-1-1-is-in-the-wild/71196)

<div class="topic-metadata">

**Author:** [@robmarcer](https://discourse.nodered.org/u/robmarcer)\
**Replies:** 0\
**Last updated:** [24 November 2022 16:10 UTC](https://discourse.nodered.org/t/flowforge-1-1-is-in-the-wild/71196 "2022-11-24T16:10:10Z")

</div>

Hello everyone, we are happy to announce we rolled out version 1.1 of FlowForge just a few minutes ago. You can read more about the new features, improvements, and bug fixes here - FlowForge | Open-Source platform to run…

---

## [Control an electric heater](https://discourse.nodered.org/t/control-an-electric-heater/71097)

<div class="topic-metadata">

**Author:** [@tmollow](https://discourse.nodered.org/u/tmollow)\
**Replies:** 8\
**Last updated:** [24 November 2022 14:01 UTC](https://discourse.nodered.org/t/control-an-electric-heater/71097 "2022-11-24T14:01:01Z")

</div>

An electric heater should be switched on for 1 hour via the dashboard and switched off via a countdown, for example. In addition, the temperature should be controlled via a ds18b20 and MQTT (Home/TempAZUT). Only switch…

---

## [Http in - Get - module is returning a timeout error](https://discourse.nodered.org/t/http-in-get-module-is-returning-a-timeout-error/71057)

<div class="topic-metadata">

**Author:** [@ErikTavares](https://discourse.nodered.org/u/ErikTavares)\
**Replies:** 11\
**Last updated:** [24 November 2022 13:21 UTC](https://discourse.nodered.org/t/http-in-get-module-is-returning-a-timeout-error/71057 "2022-11-24T13:21:20Z")

</div>

RemoteDisconnected: Remote end closed connection without response. The request is a long request and the time of finish is more than 2 minutes. The operating logic is to receive a request from an external system, car…

---

## [Node-red-node-aws: html form state bucket is required which prevent providing from msg](https://discourse.nodered.org/t/node-red-node-aws-html-form-state-bucket-is-required-which-prevent-providing-from-msg/71165)

<div class="topic-metadata">

**Author:** [@Barbudor](https://discourse.nodered.org/u/Barbudor)\
**Replies:** 4\
**Last updated:** [24 November 2022 12:28 UTC](https://discourse.nodered.org/t/node-red-node-aws-html-form-state-bucket-is-required-which-prevent-providing-from-msg/71165 "2022-11-24T12:28:39Z")

</div>

Hi The AWS nodes "Amazon S3" and Amazon S3 out" can support a bucket name provided as the msg.bucket property. It works fine but as the form specify that the bucket field in the form is required, a warning is generated …

---

## [Angular icon dynamic fill-color does not work](https://discourse.nodered.org/t/angular-icon-dynamic-fill-color-does-not-work/71112)

<div class="topic-metadata">

**Author:** [@Unglaublich](https://discourse.nodered.org/u/Unglaublich)\
**Replies:** 2\
**Last updated:** [24 November 2022 12:20 UTC](https://discourse.nodered.org/t/angular-icon-dynamic-fill-color-does-not-work/71112 "2022-11-24T12:20:16Z")

</div>

Hello, in a node-red template node i would like to change the color of an icon to green when variable is true. But it does not work. What do I do wrong, please? Thank you \<table class="bordered"\> \<tr ng-repeat="…

---

## [Automatic restart of node red on failure](https://discourse.nodered.org/t/automatic-restart-of-node-red-on-failure/70964)

<div class="topic-metadata">

**Author:** [@Mubashir](https://discourse.nodered.org/u/Mubashir)\
**Replies:** 12\
**Last updated:** [24 November 2022 11:06 UTC](https://discourse.nodered.org/t/automatic-restart-of-node-red-on-failure/70964 "2022-11-24T11:06:49Z")

</div>

My node red is getting stopped by some nodes in between the operation. I want to automatically restart node red whenever it is automatically stopped. Kindly help me to do this? As for IoT monitoring i need 24/7 operatio…

---

## [Configure mqtt-broker node from Dashboard](https://discourse.nodered.org/t/configure-mqtt-broker-node-from-dashboard/70645)

<div class="topic-metadata">

**Author:** [@Adri\_gl](https://discourse.nodered.org/u/Adri_gl)\
**Replies:** 13\
**Last updated:** [24 November 2022 09:04 UTC](https://discourse.nodered.org/t/configure-mqtt-broker-node-from-dashboard/70645 "2022-11-24T09:04:54Z")

</div>

Hello everyone, I am trying to configure the mqtt-broker node from the dashboard. I've been searching the forum for a while to see if anyone has tried it, but i haven´t found it. My intention is with a form node to fi…

---

## [Annoyingness: Opening node edit panel of node in group renders whole edit panel selected](https://discourse.nodered.org/t/annoyingness-opening-node-edit-panel-of-node-in-group-renders-whole-edit-panel-selected/71156)

<div class="topic-metadata">

**Author:** [@ralphwetzel](https://discourse.nodered.org/u/ralphwetzel)\
**Replies:** 2\
**Last updated:** [24 November 2022 08:27 UTC](https://discourse.nodered.org/t/annoyingness-opening-node-edit-panel-of-node-in-group-renders-whole-edit-panel-selected/71156 "2022-11-24T08:27:05Z")

</div>

A clip is worth more than many lines of text :grin: : Selecting first the group and then opening the node edit panel with a double click looks fine. Being a fast clicker™, trying to open the panel with a tripple clic…

---

## [String compare not working when string contains ()](https://discourse.nodered.org/t/string-compare-not-working-when-string-contains/71147)

<div class="topic-metadata">

**Author:** [@gobigdave](https://discourse.nodered.org/u/gobigdave)\
**Replies:** 4\
**Last updated:** [24 November 2022 00:21 UTC](https://discourse.nodered.org/t/string-compare-not-working-when-string-contains/71147 "2022-11-24T00:21:52Z")

</div>

I have a msg payload where: msg.payload = "(INP 8)" The switch node is a simple: msg.property != "(INP 8)" --\> 1 Even though msg.payload is "(INP 8)", the switch node sends the message on. I tried the same thing w…

---

## [Nodes installed using npm won't show up in palette](https://discourse.nodered.org/t/nodes-installed-using-npm-wont-show-up-in-palette/71146)

<div class="topic-metadata">

**Author:** [@mauricio](https://discourse.nodered.org/u/mauricio)\
**Replies:** 2\
**Last updated:** [23 November 2022 23:01 UTC](https://discourse.nodered.org/t/nodes-installed-using-npm-wont-show-up-in-palette/71146 "2022-11-23T23:01:14Z")

</div>

Hello I've just installed node-red@3.0.2, using the Raspberry Pi script, running OK. OS Debian 11, on an Olimex Olinuxino A20 (ARM) I'd like to develop an IO Plugin for Olinuxino A20, to use it with Johnny5 In this pr…

---

## [Issues with variables](https://discourse.nodered.org/t/issues-with-variables/71121)

<div class="topic-metadata">

**Author:** [@DavePF](https://discourse.nodered.org/u/DavePF)\
**Replies:** 10\
**Last updated:** [23 November 2022 19:56 UTC](https://discourse.nodered.org/t/issues-with-variables/71121 "2022-11-23T19:56:18Z")

</div>

Hello everyone, I'm having some problem with basic variables manipulations. Here's a code example that does the issue. let CopyOfOriginal = context.get('CopyOfOriginal') || \[\]; let OriginalObject = { payload:'Im …

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

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