# Latest

**URL:** https://discourse.nodered.org/latest.md?page=1273

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

**Page:** 1274

---

## [Serialport fails with Arduino mega](https://discourse.nodered.org/t/serialport-fails-with-arduino-mega/11689)

<div class="topic-metadata">

**Author:** [@vitorbarao](https://discourse.nodered.org/u/vitorbarao)\
**Replies:** 3\
**Last updated:** [30 May 2019 17:28 UTC](https://discourse.nodered.org/t/serialport-fails-with-arduino-mega/11689 "2019-05-30T17:28:25Z")

</div>

Hi friends, could you help me please? Very annoying problem that I can't solve even after reading hundreds of posts here: I have a flow that reads data from an Arduino mega via Serialport in, processes them and send s…

---

## [Formatting a date with Angular inside a Template table](https://discourse.nodered.org/t/formatting-a-date-with-angular-inside-a-template-table/11621)

<div class="topic-metadata">

**Author:** [@Bobo](https://discourse.nodered.org/u/Bobo)\
**Replies:** 6\
**Last updated:** [30 May 2019 16:06 UTC](https://discourse.nodered.org/t/formatting-a-date-with-angular-inside-a-template-table/11621 "2019-05-30T16:06:18Z")

</div>

I was hoping to format a date inside a table in the Template node using the following code: \<td\>{{msg.payload\[$index\].alarm\_date | date: 'MMM d, y H:mm:ss' : '+1200' }}\</td\> The part of the code that does NOT work is t…

---

## [Topic getting lost/overridden](https://discourse.nodered.org/t/topic-getting-lost-overridden/11611)

<div class="topic-metadata">

**Author:** [@jamestutton](https://discourse.nodered.org/u/jamestutton)\
**Replies:** 9\
**Last updated:** [30 May 2019 14:50 UTC](https://discourse.nodered.org/t/topic-getting-lost-overridden/11611 "2019-05-30T14:50:05Z")

</div>

Have a strange issue. Broke it down to a fairly basic example. Below. Node red version Using v0.20.5. Now when It comes out of first node I get 2 msgs as expected in the debug with the 2 topics. But when it goes throu…

---

## [Turn on Hue light(s) on schedule based on presence](https://discourse.nodered.org/t/turn-on-hue-light-s-on-schedule-based-on-presence/11701)

<div class="topic-metadata">

**Author:** [@techdesk](https://discourse.nodered.org/u/techdesk)\
**Replies:** 1\
**Last updated:** [30 May 2019 14:31 UTC](https://discourse.nodered.org/t/turn-on-hue-light-s-on-schedule-based-on-presence/11701 "2019-05-30T14:31:31Z")

</div>

Have a Hue light connected via home assistant. I Can turn hue light on using light scheduler no problem. Want to only turn the light on according to the schedule if the person is home. Have presence working already an…

---

## [Add new globally scoped shortcut to clear debug message list](https://discourse.nodered.org/t/add-new-globally-scoped-shortcut-to-clear-debug-message-list/11680)

<div class="topic-metadata">

**Author:** [@kwa](https://discourse.nodered.org/u/kwa)\
**Replies:** 7\
**Last updated:** [30 May 2019 12:35 UTC](https://discourse.nodered.org/t/add-new-globally-scoped-shortcut-to-clear-debug-message-list/11680 "2019-05-30T12:35:32Z")

</div>

New Node-RED user here. I've been doing a lot of reading in and around Node-RED and I'm extremely excited about using it on upcoming personal projects. Obligatory "nice \*\*\*\*ing work". I've started wiring together some n…

---

## [Html body reading](https://discourse.nodered.org/t/html-body-reading/11633)

<div class="topic-metadata">

**Author:** [@DillonW](https://discourse.nodered.org/u/DillonW)\
**Replies:** 6\
**Last updated:** [30 May 2019 11:30 UTC](https://discourse.nodered.org/t/html-body-reading/11633 "2019-05-30T11:30:02Z")

</div>

Hi, I have a message sent to my email with a body of text(in html) format. When I view the complete message with debug it shows the following: How can I get this in a readable form to extract the important components? …

---

## [Node conflict in pallet manager](https://discourse.nodered.org/t/node-conflict-in-pallet-manager/11697)

<div class="topic-metadata">

**Author:** [@Duncan](https://discourse.nodered.org/u/Duncan)\
**Replies:** 7\
**Last updated:** [30 May 2019 09:41 UTC](https://discourse.nodered.org/t/node-conflict-in-pallet-manager/11697 "2019-05-30T09:41:12Z")

</div>

Could you please assist in the following problem. I have tried to remove this "node-red-node-geofence" with npm uninstall. I still see it in the pallet manager and in the left node column. How do I completely remove it…

---

## [Node-Red SSL Issue](https://discourse.nodered.org/t/node-red-ssl-issue/11669)

<div class="topic-metadata">

**Author:** [@Himanshu](https://discourse.nodered.org/u/Himanshu)\
**Replies:** 2\
**Last updated:** [30 May 2019 06:30 UTC](https://discourse.nodered.org/t/node-red-ssl-issue/11669 "2019-05-30T06:30:30Z")

</div>

I have followed http://www.steves-internet-guide.com/securing-node-red-ssl/ . But when i am sending webhooks from shopify to node-red http end point . It is not sending any request then i have trued beeceptor and redire…

---

## [Run execute python file with node red on raspberry pi](https://discourse.nodered.org/t/run-execute-python-file-with-node-red-on-raspberry-pi/11679)

<div class="topic-metadata">

**Author:** [@Jimjiy](https://discourse.nodered.org/u/Jimjiy)\
**Replies:** 8\
**Last updated:** [30 May 2019 06:09 UTC](https://discourse.nodered.org/t/run-execute-python-file-with-node-red-on-raspberry-pi/11679 "2019-05-30T06:09:23Z")

</div>

How do i open a python file/script from node red on raspberry pi

---

## [Testing a MQTT node in a Node-RED flow using Mocha and node-red-node-test-helper node](https://discourse.nodered.org/t/testing-a-mqtt-node-in-a-node-red-flow-using-mocha-and-node-red-node-test-helper-node/1358)

<div class="topic-metadata">

**Author:** [@sybeleon](https://discourse.nodered.org/u/sybeleon)\
**Replies:** 3\
**Last updated:** [30 May 2019 00:15 UTC](https://discourse.nodered.org/t/testing-a-mqtt-node-in-a-node-red-flow-using-mocha-and-node-red-node-test-helper-node/1358 "2019-05-30T00:15:11Z")

</div>

Hello everyone, I’m trying to test a Node-RED flow using Mocha and node-red-node-test-helper node. More specifically, I would like to test something like the enclosed subflow, by simulating/mocking a message sent from a…

---

## [Node-red-node-test-helper Example](https://discourse.nodered.org/t/node-red-node-test-helper-example/11685)

<div class="topic-metadata">

**Author:** [@pauldeng](https://discourse.nodered.org/u/pauldeng)\
**Replies:** 0\
**Last updated:** [30 May 2019 00:04 UTC](https://discourse.nodered.org/t/node-red-node-test-helper-example/11685 "2019-05-30T00:04:19Z")

</div>

Hi all, I searched the forum and it seems the node-red-node-test-helper is primarily used by the core development team but not us. So, I spent two days trying out and created a simple node-red-node-test-helper example.…

---

## [Compass gauge : issue with \[°\] sign?](https://discourse.nodered.org/t/compass-gauge-issue-with-sign/11670)

<div class="topic-metadata">

**Author:** [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Replies:** 9\
**Last updated:** [29 May 2019 19:06 UTC](https://discourse.nodered.org/t/compass-gauge-issue-with-sign/11670 "2019-05-29T19:06:02Z")

</div>

Hi all, I want to display an angle in degree, in the Compass gauge . I read the info : so , in the Value format i apply : {{azimuth}}° BUT : the gauge dos not update the new value : IF i delete : the \[°\] : {{a…

---

## [Send a mail using Node RED](https://discourse.nodered.org/t/send-a-mail-using-node-red/11368)

<div class="topic-metadata">

**Author:** [@VictorKobayashi](https://discourse.nodered.org/u/VictorKobayashi)\
**Replies:** 8\
**Last updated:** [29 May 2019 16:33 UTC](https://discourse.nodered.org/t/send-a-mail-using-node-red/11368 "2019-05-29T16:33:00Z")

</div>

Hello, I'm trying to send a mail using Node-RED but I always have the error "Erreur: fermeture inattendue du socket". Someone can help me please ? Thanks

---

## [Conditional Format of a Template](https://discourse.nodered.org/t/conditional-format-of-a-template/11189)

<div class="topic-metadata">

**Author:** [@chrisHofmeister](https://discourse.nodered.org/u/chrisHofmeister)\
**Replies:** 3\
**Last updated:** [29 May 2019 14:34 UTC](https://discourse.nodered.org/t/conditional-format-of-a-template/11189 "2019-05-29T14:34:14Z")

</div>

Hi I would like to change the color of a dashboard template by the value of msg.payload. This is what I have inside the template node, but (unfortunately) it is not working: \<div layout="row" layout-align="center"\> …

---

## [Water level gauge](https://discourse.nodered.org/t/water-level-gauge/11581)

<div class="topic-metadata">

**Author:** [@unknow](https://discourse.nodered.org/u/unknow)\
**Replies:** 3\
**Last updated:** [29 May 2019 07:39 UTC](https://discourse.nodered.org/t/water-level-gauge/11581 "2019-05-29T07:39:10Z")

</div>

how to make a water level gauge with an ultrasonic and arduino sensor ?

---

## [Calling node-red flows from node app](https://discourse.nodered.org/t/calling-node-red-flows-from-node-app/11667)

<div class="topic-metadata">

**Author:** [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Replies:** 6\
**Last updated:** [29 May 2019 12:34 UTC](https://discourse.nodered.org/t/calling-node-red-flows-from-node-app/11667 "2019-05-29T12:34:45Z")

</div>

i found problem on embadding my node-red flow on my nodejs app. here's my setting // Create a server var server\_nr = http.createServer(app); // Create the settings object - see default settings.js file for other opt…

---

## [Unable to send numbers through websockets](https://discourse.nodered.org/t/unable-to-send-numbers-through-websockets/11638)

<div class="topic-metadata">

**Author:** [@Andres](https://discourse.nodered.org/u/Andres)\
**Replies:** 2\
**Last updated:** [29 May 2019 10:55 UTC](https://discourse.nodered.org/t/unable-to-send-numbers-through-websockets/11638 "2019-05-29T10:55:50Z")

</div>

Hello everyone! I was playing around with websockets and made a simple flow that worked, it consists in receiving every second a timestamp and a button that when is pressed it send th word "prueba" as payload. Then for …

---

## [How can i have a physical button that toggles a switch on the dashboard?](https://discourse.nodered.org/t/how-can-i-have-a-physical-button-that-toggles-a-switch-on-the-dashboard/5951)

<div class="topic-metadata">

**Author:** [@IvarMvl](https://discourse.nodered.org/u/IvarMvl)\
**Replies:** 4\
**Last updated:** [29 May 2019 10:14 UTC](https://discourse.nodered.org/t/how-can-i-have-a-physical-button-that-toggles-a-switch-on-the-dashboard/5951 "2019-05-29T10:14:44Z")

</div>

hi, i'm using NodeRed on my raspberry pi, and I have a physical button wired up to the GPIO pin and it works. what's the easiest way to make a switch on the dashboard turn on if it's off, and vica versa, when i press th…

---

## [Js-yaml 3.13.1 vulnerability](https://discourse.nodered.org/t/js-yaml-3-13-1-vulnerability/11666)

<div class="topic-metadata">

**Author:** [@Louise](https://discourse.nodered.org/u/Louise)\
**Replies:** 0\
**Last updated:** [29 May 2019 09:43 UTC](https://discourse.nodered.org/t/js-yaml-3-13-1-vulnerability/11666 "2019-05-29T09:43:02Z")

</div>

Hello everyone, I was installing a custom node and I got a "found 1 high severity vulnerability". Using npm audit I found out that the vulnerability is js-yaml and for more information I had to look here: https://www.np…

---

## [Shared functions in HTML](https://discourse.nodered.org/t/shared-functions-in-html/11663)

<div class="topic-metadata">

**Author:** [@rsenden](https://discourse.nodered.org/u/rsenden)\
**Replies:** 0\
**Last updated:** [29 May 2019 09:14 UTC](https://discourse.nodered.org/t/shared-functions-in-html/11663 "2019-05-29T09:14:48Z")

</div>

I'm developing a plugin containing multiple custom nodes (with all nodes contained in a single HTML file). At the moment, there is quite a lot of code duplication between the various nodes, for example in their oneditpre…

---

## [Mqtt to save a file](https://discourse.nodered.org/t/mqtt-to-save-a-file/11495)

<div class="topic-metadata">

**Author:** [@oli.nodered](https://discourse.nodered.org/u/oli.nodered)\
**Replies:** 13\
**Last updated:** [29 May 2019 09:10 UTC](https://discourse.nodered.org/t/mqtt-to-save-a-file/11495 "2019-05-29T09:10:41Z")

</div>

Bonjour i use mqtt to download an image to an another node red application. I can display this file/image on my dashboard, but i can't save the file on the disk can you help me ? Merci Olivier

---

## [Provide search criteria to IMAP on email node on trigger](https://discourse.nodered.org/t/provide-search-criteria-to-imap-on-email-node-on-trigger/11642)

<div class="topic-metadata">

**Author:** [@domenzain](https://discourse.nodered.org/u/domenzain)\
**Replies:** 2\
**Last updated:** [29 May 2019 09:09 UTC](https://discourse.nodered.org/t/provide-search-criteria-to-imap-on-email-node-on-trigger/11642 "2019-05-29T09:09:35Z")

</div>

The node-red-node-email allows an e-mail fetch to be triggered. But the search criteria are limited to just a few including "Seen", "Unseen", "All". It would be great to be able to pass the criteria directly when trigge…

---

## [Function Editor - Bigger Window](https://discourse.nodered.org/t/function-editor-bigger-window/11658)

<div class="topic-metadata">

**Author:** [@daxkamala](https://discourse.nodered.org/u/daxkamala)\
**Replies:** 1\
**Last updated:** [29 May 2019 09:03 UTC](https://discourse.nodered.org/t/function-editor-bigger-window/11658 "2019-05-29T09:03:29Z")

</div>

I've been using Node-Red for a long time and always moaned about the size of the code area for functions. Today by complete accident I hit enter while in the function title field. Wow! I immediately got a much bigger ed…

---

## [Multiple NodeRED instances behind Nginx Reverse proxy](https://discourse.nodered.org/t/multiple-nodered-instances-behind-nginx-reverse-proxy/11612)

<div class="topic-metadata">

**Author:** [@Batto](https://discourse.nodered.org/u/Batto)\
**Replies:** 2\
**Last updated:** [29 May 2019 07:13 UTC](https://discourse.nodered.org/t/multiple-nodered-instances-behind-nginx-reverse-proxy/11612 "2019-05-29T07:13:31Z")

</div>

Hi guys, I'm preparing a stage in my fablab to teach NodeRED. As I want everyone has its own NodeRED instance, I created multiple instances on my Proxmox server. In front I have an Nginx virtual machine which manages H…

---

## [Http from HC2 to node red](https://discourse.nodered.org/t/http-from-hc2-to-node-red/11572)

<div class="topic-metadata">

**Author:** [@sucram](https://discourse.nodered.org/u/sucram)\
**Replies:** 24\
**Last updated:** [28 May 2019 19:17 UTC](https://discourse.nodered.org/t/http-from-hc2-to-node-red/11572 "2019-05-28T19:17:38Z")

</div>

I wonder if someone can point me in the right direction when i ask; When i type http://127.0.0.1:1880/play in a browser, i start a service i am using (Node red flow with http end-point). The flow is set up, runs when i…

---

## [Don't know how to pull flow context without quotations in a template](https://discourse.nodered.org/t/dont-know-how-to-pull-flow-context-without-quotations-in-a-template/11563)

<div class="topic-metadata">

**Author:** [@NRdiscrs9393](https://discourse.nodered.org/u/NRdiscrs9393)\
**Replies:** 15\
**Last updated:** [28 May 2019 16:28 UTC](https://discourse.nodered.org/t/dont-know-how-to-pull-flow-context-without-quotations-in-a-template/11563 "2019-05-28T16:28:23Z")

</div>

How might I setup this template node to pull flow.fmodeUpstairsSet without the " " marks in the payload? Here's the template: {"fmode":"{{flow.fmodeUpstairsSet}}"} \[{"id":"a5b99c87.21cf68","type":"inject","z":"5d29b…

---

## [\[SOLVED\]Debug after range](https://discourse.nodered.org/t/solved-debug-after-range/11640)

<div class="topic-metadata">

**Author:** [@bumann](https://discourse.nodered.org/u/bumann)\
**Replies:** 4\
**Last updated:** [28 May 2019 16:18 UTC](https://discourse.nodered.org/t/solved-debug-after-range/11640 "2019-05-28T16:18:04Z")

</div>

Hi, i want to range a input from 0-3 to 1-100. The payload comes from TTN Node via TTN uplink function in nodered. I use the range function in nodered. I can show the output from range function on my dashboard via a …

---

## [Can't reach localhost in node-red with http request node](https://discourse.nodered.org/t/cant-reach-localhost-in-node-red-with-http-request-node/11632)

<div class="topic-metadata">

**Author:** [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Replies:** 2\
**Last updated:** [28 May 2019 13:10 UTC](https://discourse.nodered.org/t/cant-reach-localhost-in-node-red-with-http-request-node/11632 "2019-05-28T13:10:50Z")

</div>

i have a web services URLs that starts with http://localhost:8001/clients. i have tried to put it in http request node but it always get statusCode: 401 ( unauthorised). but when i type in chrome http://localhost:8001/c…

---

## [How to inject msg.payload.value as msg.id to function node?](https://discourse.nodered.org/t/how-to-inject-msg-payload-value-as-msg-id-to-function-node/11627)

<div class="topic-metadata">

**Author:** [@muharremsari](https://discourse.nodered.org/u/muharremsari)\
**Replies:** 9\
**Last updated:** [28 May 2019 10:32 UTC](https://discourse.nodered.org/t/how-to-inject-msg-payload-value-as-msg-id-to-function-node/11627 "2019-05-28T10:32:59Z")

</div>

\[{"id":"9d466ec1.7ecb6","type":"function","z":"e50cdc2d.57d62","name":"inputsource msg.id or msg.name","func":"var lookups = flow.get(\\"lookups\\");\\nif(msg.id){\\n msg.payload = lookups.id2name\[msg.id\]; \\n return ms…

---

## [Function Code all on one line](https://discourse.nodered.org/t/function-code-all-on-one-line/11602)

<div class="topic-metadata">

**Author:** [@lozzer65](https://discourse.nodered.org/u/lozzer65)\
**Replies:** 6\
**Last updated:** [28 May 2019 10:14 UTC](https://discourse.nodered.org/t/function-code-all-on-one-line/11602 "2019-05-28T10:14:54Z")

</div>

I have an issue where the code is un readable. Anyone else have this or know a solution ?

[Previous page](https://discourse.nodered.org/latest.md?page=1272)

[Next page](https://discourse.nodered.org/latest.md?page=1274)
