# General

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

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

**Page:** 947

---

## [Issue with a switch](https://discourse.nodered.org/t/issue-with-a-switch/3302)

<div class="topic-metadata">

**Author:** [@General\_Failure](https://discourse.nodered.org/u/General_Failure)\
**Replies:** 6\
**Last updated:** [25 September 2018 09:37 UTC](https://discourse.nodered.org/t/issue-with-a-switch/3302 "2018-09-25T09:37:16Z")

</div>

Hi, first time using node-red and enjoying it. I'm following this idea, and I'm trying to add features. Namely having status lights. I want a stand-by LED and a Failure LED to light up when appropriate. The first when …

---

## [MCP3008 SPI chip select on Node-RED](https://discourse.nodered.org/t/mcp3008-spi-chip-select-on-node-red/3430)

<div class="topic-metadata">

**Author:** [@janoslaszlo](https://discourse.nodered.org/u/janoslaszlo)\
**Replies:** 0\
**Last updated:** [25 September 2018 08:04 UTC](https://discourse.nodered.org/t/mcp3008-spi-chip-select-on-node-red/3430 "2018-09-25T08:04:30Z")

</div>

I am using Node-RED on Raspberry Pi 3 Model B+ to read data from 2 pcs MCP3008 ADCs via SPI. Both ADCs are connected to SPI0 using CE0 and CE1 chip selects. The Node-RED package is node-red-node-pi-mcp3008 (0.2.0). The…

---

## [Watch node problem when a file is deleted](https://discourse.nodered.org/t/watch-node-problem-when-a-file-is-deleted/3426)

<div class="topic-metadata">

**Author:** [@ThanosMel](https://discourse.nodered.org/u/ThanosMel)\
**Replies:** 2\
**Last updated:** [25 September 2018 08:00 UTC](https://discourse.nodered.org/t/watch-node-problem-when-a-file-is-deleted/3426 "2018-09-25T08:00:12Z")

</div>

I am currently having an issue with watch node. I want to trigger the watch node when a new file is created in a directory but not when a file is deleted in the same directory. Is this possible by using only the watch no…

---

## [Node Red deployable file](https://discourse.nodered.org/t/node-red-deployable-file/3161)

<div class="topic-metadata">

**Author:** [@prashantabellad](https://discourse.nodered.org/u/prashantabellad)\
**Replies:** 27\
**Last updated:** [24 September 2018 20:07 UTC](https://discourse.nodered.org/t/node-red-deployable-file/3161 "2018-09-24T20:07:39Z")

</div>

Hi, I am developing node-red flows for an application. How to create a deployable file similar to WAR or .exe file. Also how to deploy the same?

---

## [General questions about home automation design in Node-RED](https://discourse.nodered.org/t/general-questions-about-home-automation-design-in-node-red/3060)

<div class="topic-metadata">

**Author:** [@hazymat](https://discourse.nodered.org/u/hazymat)\
**Replies:** 5\
**Last updated:** [24 September 2018 19:39 UTC](https://discourse.nodered.org/t/general-questions-about-home-automation-design-in-node-red/3060 "2018-09-24T19:39:00Z")

</div>

Hello Thanks to @knolleary for prompting me on twitter to pop some ideas down here on the forum. And a request for help! New Node-RED convert here, and I have a "there are many ways to skin a cat" kind of question. Get…

---

## [Question about node-red-node-random](https://discourse.nodered.org/t/question-about-node-red-node-random/3398)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 8\
**Last updated:** [24 September 2018 19:18 UTC](https://discourse.nodered.org/t/question-about-node-red-node-random/3398 "2018-09-24T19:18:31Z")

</div>

According to the README for node-red-node-random, in floating-point mode this node gives a random output, x, that is strictly between the given maximum and minimum values, that is, min \< x \< max. However, everything I've…

---

## [How to reference context based on topic (without using function node)?](https://discourse.nodered.org/t/how-to-reference-context-based-on-topic-without-using-function-node/3384)

<div class="topic-metadata">

**Author:** [@Riven5](https://discourse.nodered.org/u/Riven5)\
**Replies:** 5\
**Last updated:** [24 September 2018 18:35 UTC](https://discourse.nodered.org/t/how-to-reference-context-based-on-topic-without-using-function-node/3384 "2018-09-24T18:35:49Z")

</div>

Basically I'm wondering if there's a way to do the equivalent of flow.set(msg.topic,"foo"); in a Change node and switch(flow.get(msg.topic)) in a Switch. I've tried variations of $(x) , $.x , {{x}}, and \[x\] with no luck…

---

## [Serial Input - No Response](https://discourse.nodered.org/t/serial-input-no-response/3392)

<div class="topic-metadata">

**Author:** [@krk](https://discourse.nodered.org/u/krk)\
**Replies:** 3\
**Last updated:** [24 September 2018 14:09 UTC](https://discourse.nodered.org/t/serial-input-no-response/3392 "2018-09-24T14:09:18Z")

</div>

I'm just getting started with Node-RED and I'm having some issues receiving any data from a serial port. My Setup: -I have an old Pioneer AVR (VSX-82TXS) which can be controlled via RS232. -I'm using Digi PortServer t…

---

## [\[SOLVED\]How to split message& save to mysql](https://discourse.nodered.org/t/solved-how-to-split-message-save-to-mysql/3401)

<div class="topic-metadata">

**Author:** [@junoprima](https://discourse.nodered.org/u/junoprima)\
**Replies:** 6\
**Last updated:** [24 September 2018 09:23 UTC](https://discourse.nodered.org/t/solved-how-to-split-message-save-to-mysql/3401 "2018-09-24T09:23:26Z")

</div>

Hello i'm new in node-red and mysql i need to put data from udp to mysql if i send direct without split message i can insert it into my sql i got this error "msg.topic : the query is not defined as a string" This m…

---

## [Error: Server responded with a non-101 status: 429](https://discourse.nodered.org/t/error-server-responded-with-a-non-101-status-429/3366)

<div class="topic-metadata">

**Author:** [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Replies:** 8\
**Last updated:** [24 September 2018 06:13 UTC](https://discourse.nodered.org/t/error-server-responded-with-a-non-101-status-429/3366 "2018-09-24T06:13:58Z")

</div>

I am getting this error in my debug panel: Error: Server responded with a non-101 status: 429 Too Many Requests Response Headers Follow: date: Sat, 22 Sep 2018 22:51:23 GMT content-length: 0 content-type: text/plain; c…

---

## [Odd Node Error: "unknown push type: sms\_changed content:](https://discourse.nodered.org/t/odd-node-error-unknown-push-type-sms-changed-content/3354)

<div class="topic-metadata">

**Author:** [@Unpuertomex](https://discourse.nodered.org/u/Unpuertomex)\
**Replies:** 2\
**Last updated:** [22 September 2018 18:37 UTC](https://discourse.nodered.org/t/odd-node-error-unknown-push-type-sms-changed-content/3354 "2018-09-22T18:37:49Z")

</div>

I haven't made changes to any of my flow for a week now, but all of a sudden I start to get this error everytime I send or receive or send a text on my phone (Andriod), odd. Here are a couple of screenshots. The nod…

---

## [Send Email To NR And Reply](https://discourse.nodered.org/t/send-email-to-nr-and-reply/3355)

<div class="topic-metadata">

**Author:** [@seth350](https://discourse.nodered.org/u/seth350)\
**Replies:** 8\
**Last updated:** [22 September 2018 15:16 UTC](https://discourse.nodered.org/t/send-email-to-nr-and-reply/3355 "2018-09-22T15:16:37Z")

</div>

Hello folks, I had a request today and was not sure if it was possible so I thought I would ask. Can an email be sent to Node-Red running on a RPi3B+, then make NodeRed reply to the last email’s sender with data? Exam…

---

## [Subflow input's](https://discourse.nodered.org/t/subflow-inputs/3352)

<div class="topic-metadata">

**Author:** [@real-prometheus](https://discourse.nodered.org/u/real-prometheus)\
**Replies:** 7\
**Last updated:** [22 September 2018 14:24 UTC](https://discourse.nodered.org/t/subflow-inputs/3352 "2018-09-22T14:24:29Z")

</div>

Is there a reason why a subflow can only have no or one input? Using subflow to built components it would be very helpful to have multiple inputs. E.g. a shutter component can have one bool input for up/down and a second…

---

## [Encapsulated Modbus RTU](https://discourse.nodered.org/t/encapsulated-modbus-rtu/3319)

<div class="topic-metadata">

**Author:** [@88bit](https://discourse.nodered.org/u/88bit)\
**Replies:** 2\
**Last updated:** [22 September 2018 02:10 UTC](https://discourse.nodered.org/t/encapsulated-modbus-rtu/3319 "2018-09-22T02:10:57Z")

</div>

Hi I need a little help, I have a device which outputs Modbus over RS 485. I use a Modbus to Ethernet converter which encapsulates the Modbus data into an Ethernet packet. I use the amassing node-red-contrib-modbus nod…

---

## [Installing via Docker problems](https://discourse.nodered.org/t/installing-via-docker-problems/3324)

<div class="topic-metadata">

**Author:** [@christianwaite](https://discourse.nodered.org/u/christianwaite)\
**Replies:** 9\
**Last updated:** [21 September 2018 22:30 UTC](https://discourse.nodered.org/t/installing-via-docker-problems/3324 "2018-09-21T22:30:23Z")

</div>

Hi. I've just moved from a RPi running HassOS for Home-Assistant which had everything setup lovely to going it on my own with Ubuntu18.04 headless server with docker-compose/portainer. I have everything setup apart from…

---

## [Automated Load Shedding](https://discourse.nodered.org/t/automated-load-shedding/3348)

<div class="topic-metadata">

**Author:** [@ShawnHatton](https://discourse.nodered.org/u/ShawnHatton)\
**Replies:** 2\
**Last updated:** [21 September 2018 20:43 UTC](https://discourse.nodered.org/t/automated-load-shedding/3348 "2018-09-21T20:43:27Z")

</div>

Does anyone know of a way to automate load shedding of internal resources to Node-Red? For example, if my CPU usage is increasing, I would like to shed some low priority flows/processes to prevent a catastrophic failure…

---

## [Google-home-notify get key failed error](https://discourse.nodered.org/t/google-home-notify-get-key-failed-error/3338)

<div class="topic-metadata">

**Author:** [@nmatt25](https://discourse.nodered.org/u/nmatt25)\
**Replies:** 2\
**Last updated:** [21 September 2018 15:13 UTC](https://discourse.nodered.org/t/google-home-notify-get-key-failed-error/3338 "2018-09-21T15:13:06Z")

</div>

the problem that I am having is with a flow that has been working for a couple of months now but just recently stopped. The flow is for monitoring 2 presence sensors and announcing the changes on our google home speakers…

---

## [Cannot calculate date difference in NodeRed?!](https://discourse.nodered.org/t/cannot-calculate-date-difference-in-nodered/3257)

<div class="topic-metadata">

**Author:** [@diversit](https://discourse.nodered.org/u/diversit)\
**Replies:** 6\
**Last updated:** [21 September 2018 14:16 UTC](https://discourse.nodered.org/t/cannot-calculate-date-difference-in-nodered/3257 "2018-09-21T14:16:20Z")

</div>

Hi, I'm writing a function where I want to calculate the difference between when current message was received and a previous message. The previous date timestamp is stored in a context variable. When I do: var previou…

---

## [Time Delay For Pulse Trigger Digital Output](https://discourse.nodered.org/t/time-delay-for-pulse-trigger-digital-output/3317)

<div class="topic-metadata">

**Author:** [@mrizkywiguna](https://discourse.nodered.org/u/mrizkywiguna)\
**Replies:** 4\
**Last updated:** [21 September 2018 14:12 UTC](https://discourse.nodered.org/t/time-delay-for-pulse-trigger-digital-output/3317 "2018-09-21T14:12:01Z")

</div>

Hi All, I'm stuck in delay function for pulse delay signal High and Low. I've tried trigger node, but i cant control the low signal time. So, i want control relay with specific time in high position and low position. …

---

## [\[connected hive\] program automatic sms reception and deletion](https://discourse.nodered.org/t/connected-hive-program-automatic-sms-reception-and-deletion/2990)

<div class="topic-metadata">

**Author:** [@Ymer\_G](https://discourse.nodered.org/u/Ymer_G)\
**Replies:** 12\
**Last updated:** [21 September 2018 10:33 UTC](https://discourse.nodered.org/t/connected-hive-program-automatic-sms-reception-and-deletion/2990 "2018-09-21T10:33:28Z")

</div>

Howdy, currently I work in a project of connected hive, I am working on a program that allows me to retrieve SMS messages received from a Huawei 3G E3531 key and then insert them into the mysql database. However, after c…

---

## [Just upgraded NR on my RPI and guess what happened](https://discourse.nodered.org/t/just-upgraded-nr-on-my-rpi-and-guess-what-happened/3316)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 5\
**Last updated:** [21 September 2018 06:33 UTC](https://discourse.nodered.org/t/just-upgraded-nr-on-my-rpi-and-guess-what-happened/3316 "2018-09-21T06:33:22Z")

</div>

In sort of light of my recent UBUNTU install/update I decided to update my MAIN RPI machine to get the latest features. Though 18.04 was doing fine, I feel I need to keep up with everyone else. Did the "magic command" …

---

## [Data from failed sensor](https://discourse.nodered.org/t/data-from-failed-sensor/3264)

<div class="topic-metadata">

**Author:** [@wassa350](https://discourse.nodered.org/u/wassa350)\
**Replies:** 7\
**Last updated:** [21 September 2018 01:52 UTC](https://discourse.nodered.org/t/data-from-failed-sensor/3264 "2018-09-21T01:52:30Z")

</div>

Hi, i have been playing around with ESP8266 sending data to MQTT server and a dashboard displaying the data in Node Red. It all works great. I only have one issue, that is if the sensor stops working the dashboard contin…

---

## [ZOOM buttons. "How" do they zoom](https://discourse.nodered.org/t/zoom-buttons-how-do-they-zoom/3314)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 4\
**Last updated:** [20 September 2018 22:43 UTC](https://discourse.nodered.org/t/zoom-buttons-how-do-they-zoom/3314 "2018-09-20T22:43:00Z")

</div>

Before anyone says "But the nodes weren't deployed!" See the third and fourth pictures. Same, but not quite as bad. I am guessing they are part of NR, as on this tab/browser they aren't visible. I am looking at part …

---

## [MQTT code error from arduino to RPi Nodered](https://discourse.nodered.org/t/mqtt-code-error-from-arduino-to-rpi-nodered/3310)

<div class="topic-metadata">

**Author:** [@mshaz](https://discourse.nodered.org/u/mshaz)\
**Replies:** 9\
**Last updated:** [20 September 2018 22:20 UTC](https://discourse.nodered.org/t/mqtt-code-error-from-arduino-to-rpi-nodered/3310 "2018-09-20T22:20:30Z")

</div>

Hi. I m using ADXL345 connected to Wemos D1 Mini and wish to send data via MQTT to RPi and Nodered. The file attachment code works for DHT11 to Nodered but when i modify the codes for ADXL345 it has error. The origina…

---

## [Capture user data and Post to server as response](https://discourse.nodered.org/t/capture-user-data-and-post-to-server-as-response/3245)

<div class="topic-metadata">

**Author:** [@quique123](https://discourse.nodered.org/u/quique123)\
**Replies:** 31\
**Last updated:** [20 September 2018 22:11 UTC](https://discourse.nodered.org/t/capture-user-data-and-post-to-server-as-response/3245 "2018-09-20T22:11:15Z")

</div>

Not sure if I titled it right, but I need to capture 2 values from a user at say: http://localhost:1880/entervalues/ and then post them and parse them and display them. So far I know I need: http-in node function or…

---

## [Node-red on ubuntu - dumb question](https://discourse.nodered.org/t/node-red-on-ubuntu-dumb-question/3249)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 30\
**Last updated:** [20 September 2018 20:20 UTC](https://discourse.nodered.org/t/node-red-on-ubuntu-dumb-question/3249 "2018-09-20T20:20:46Z")

</div>

Hi. Sorry, but I am stuck on this (latest) problem: I got a new machine the other day and want to get NR working on it. That shouldn't be a problem because I already have it working on THIS machine which is also runni…

---

## [POST call with a file attachment](https://discourse.nodered.org/t/post-call-with-a-file-attachment/515)

<div class="topic-metadata">

**Author:** [@swamichandra](https://discourse.nodered.org/u/swamichandra)\
**Replies:** 5\
**Last updated:** [20 September 2018 20:11 UTC](https://discourse.nodered.org/t/post-call-with-a-file-attachment/515 "2018-09-20T20:11:25Z")

</div>

I’m trying to build a flow where the user uploads a PDF file via a simple form, the file is then used as a form param (multipart/form-data) to call an external RESTful endpoint and then handle the response. I’m strugglin…

---

## [Node red won't deploy changed nodes](https://discourse.nodered.org/t/node-red-wont-deploy-changed-nodes/3272)

<div class="topic-metadata">

**Author:** [@garywilson4](https://discourse.nodered.org/u/garywilson4)\
**Replies:** 13\
**Last updated:** [20 September 2018 19:21 UTC](https://discourse.nodered.org/t/node-red-wont-deploy-changed-nodes/3272 "2018-09-20T19:21:28Z")

</div>

Hi i updated my node red to 0.19.4 now it won't deploy saying lost connection to server I'm a complete n00b at this so be patient with me

---

## [2 input messages into 1 output line 1 and line 2?](https://discourse.nodered.org/t/2-input-messages-into-1-output-line-1-and-line-2/3304)

<div class="topic-metadata">

**Author:** [@chris1988](https://discourse.nodered.org/u/chris1988)\
**Replies:** 10\
**Last updated:** [20 September 2018 19:33 UTC](https://discourse.nodered.org/t/2-input-messages-into-1-output-line-1-and-line-2/3304 "2018-09-20T19:33:03Z")

</div>

Hello again i need to have the input messages to go to the same location every time on output array 1 night/day array 2 brightness im confussed tried to add a dellay to solve it can i do it through function? \[{"id":…

---

## [Twitter Node delivers twice](https://discourse.nodered.org/t/twitter-node-delivers-twice/2454)

<div class="topic-metadata">

**Author:** [@CaptClaude](https://discourse.nodered.org/u/CaptClaude)\
**Replies:** 8\
**Last updated:** [20 September 2018 16:03 UTC](https://discourse.nodered.org/t/twitter-node-delivers-twice/2454 "2018-09-20T16:03:58Z")

</div>

I have a NR Twitter node that looks for "cheerlights", no "@", no "#". I'm now getting two outputs in the debug node, 1s apart, with the same information except for the first line (time stamp) and last line (msg id). W…

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

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