# Latest

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

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

**Page:** 831

---

## [Compare sensor value with previous reading and return a value based on comparison](https://discourse.nodered.org/t/compare-sensor-value-with-previous-reading-and-return-a-value-based-on-comparison/44693)

<div class="topic-metadata">

**Author:** [@nerukoma](https://discourse.nodered.org/u/nerukoma)\
**Replies:** 16\
**Last updated:** [26 April 2021 05:15 UTC](https://discourse.nodered.org/t/compare-sensor-value-with-previous-reading-and-return-a-value-based-on-comparison/44693 "2021-04-26T05:15:01Z")

</div>

Hello, I'm struggling on how to use context within a function node to write sensor value to context and comparing it with a subsequent one. The comparison should return previous value if the subsequent is 2 times smaller…

---

## [Creating nodes for the Nvidia Jetson Nano](https://discourse.nodered.org/t/creating-nodes-for-the-nvidia-jetson-nano/44364)

<div class="topic-metadata">

**Author:** [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)\
**Replies:** 12\
**Last updated:** [25 April 2021 20:51 UTC](https://discourse.nodered.org/t/creating-nodes-for-the-nvidia-jetson-nano/44364 "2021-04-25T20:51:04Z")

</div>

Moving my original post and progress to the correct category... I'm using node-red-node-pi-gpio as a starting place but I've had to make a lot of modifications for a number of reasons: The sysfs method of interfacing…

---

## [Onvif device configuration by external variables](https://discourse.nodered.org/t/onvif-device-configuration-by-external-variables/44638)

<div class="topic-metadata">

**Author:** [@achrafb](https://discourse.nodered.org/u/achrafb)\
**Replies:** 2\
**Last updated:** [25 April 2021 20:12 UTC](https://discourse.nodered.org/t/onvif-device-configuration-by-external-variables/44638 "2021-04-25T20:12:46Z")

</div>

Hi Mr. @BartButenaers First of all, thank you for the excellent contribution of the ONVIF packages for Node red. I have been doing tests and it works perfectly, the only thing, I would like to know if it is possible to…

---

## [Looking for a countdown timer](https://discourse.nodered.org/t/looking-for-a-countdown-timer/44681)

<div class="topic-metadata">

**Author:** [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Replies:** 5\
**Last updated:** [25 April 2021 20:04 UTC](https://discourse.nodered.org/t/looking-for-a-countdown-timer/44681 "2021-04-25T20:04:40Z")

</div>

Hey guys, Looking for a countdown timer that is able to be controlled by passing messages to it. In this particular case - if a temperature exceeds a threshold, i want to send a message to the node to tell it to stop a…

---

## [Where is JSON flows is stored exactly in an application fullstack?](https://discourse.nodered.org/t/where-is-json-flows-is-stored-exactly-in-an-application-fullstack/44584)

<div class="topic-metadata">

**Author:** [@tom123](https://discourse.nodered.org/u/tom123)\
**Replies:** 6\
**Last updated:** [25 April 2021 19:19 UTC](https://discourse.nodered.org/t/where-is-json-flows-is-stored-exactly-in-an-application-fullstack/44584 "2021-04-25T19:19:59Z")

</div>

Hello everyone, i'm newbie with Node-red. I'm developping an app mobile with Node-Red for backend and Flutter for frontend. So the frontend team have almost finished their job with Flutter, i'm bulding the back-end with …

---

## [How to close session for metered connection?](https://discourse.nodered.org/t/how-to-close-session-for-metered-connection/44658)

<div class="topic-metadata">

**Author:** [@taisau](https://discourse.nodered.org/u/taisau)\
**Replies:** 1\
**Last updated:** [25 April 2021 18:17 UTC](https://discourse.nodered.org/t/how-to-close-session-for-metered-connection/44658 "2021-04-25T18:17:00Z")

</div>

Is it possible to timeout or force close a dashboard session? Programmatically triggering a "connection lost" message sounds ideal. My use case is that sometimes I'll forget and leave the tab open streaming data via a me…

---

## [Worldmap: Change Color and Size of Icon Name](https://discourse.nodered.org/t/worldmap-change-color-and-size-of-icon-name/44703)

<div class="topic-metadata">

**Author:** [@Koloblix](https://discourse.nodered.org/u/Koloblix)\
**Replies:** 2\
**Last updated:** [25 April 2021 17:09 UTC](https://discourse.nodered.org/t/worldmap-change-color-and-size-of-icon-name/44703 "2021-04-25T17:09:52Z")

</div>

hi, im new to Node-Red and Worldmap and playing around with NATO Symbols and some GPS Tracking. Just set al this up and mak an small flow. dLooks pretty good right now: But can I change the color of the Icon Name? Bla…

---

## [All flow envs turned into inFile recently](https://discourse.nodered.org/t/all-flow-envs-turned-into-infile-recently/44695)

<div class="topic-metadata">

**Author:** [@maxym](https://discourse.nodered.org/u/maxym)\
**Replies:** 10\
**Last updated:** [25 April 2021 16:43 UTC](https://discourse.nodered.org/t/all-flow-envs-turned-into-infile-recently/44695 "2021-04-25T16:43:01Z")

</div>

Hello I just spotted, that with recent NR updates (unfortunately don't know with which one, I'm currently on v1.3.3), all env variables references used in Change and Switch nodes suddenly switched from default one (whic…

---

## [How to send messages to a broker via mqtt](https://discourse.nodered.org/t/how-to-send-messages-to-a-broker-via-mqtt/44651)

<div class="topic-metadata">

**Author:** [@fred1985](https://discourse.nodered.org/u/fred1985)\
**Replies:** 28\
**Last updated:** [25 April 2021 16:13 UTC](https://discourse.nodered.org/t/how-to-send-messages-to-a-broker-via-mqtt/44651 "2021-04-25T16:13:07Z")

</div>

Hi everyone, it is the first time I am using Node Red and I have a question to you. I'm trying to send my data to a broker via mqtt and I want to specify the message in the "function" block. I've already set the broker …

---

## [Unable to install/update nodes](https://discourse.nodered.org/t/unable-to-install-update-nodes/44555)

<div class="topic-metadata">

**Author:** [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)\
**Replies:** 8\
**Last updated:** [25 April 2021 15:33 UTC](https://discourse.nodered.org/t/unable-to-install-update-nodes/44555 "2021-04-25T15:33:11Z")

</div>

Hi, I'm not able to install/update any node any more!! I even copied back the original settings.js in order to avoid any modification I was trying on it. From manage palette as well as from command line, I always get thi…

---

## [Can't get MCP4725 (I2C) to work](https://discourse.nodered.org/t/cant-get-mcp4725-i2c-to-work/44667)

<div class="topic-metadata">

**Author:** [@fjmhoogl](https://discourse.nodered.org/u/fjmhoogl)\
**Replies:** 1\
**Last updated:** [25 April 2021 13:57 UTC](https://discourse.nodered.org/t/cant-get-mcp4725-i2c-to-work/44667 "2021-04-25T13:57:01Z")

</div>

Dear all, I am trying to hook up a MCP4725 (12-bit DAC) breakout board to the I2C bus of my Raspberry. No matter that I do in Node-RED, I cannot get it to accept commands and output a voltage corresponding to msg.paylo…

---

## [Comperator not working](https://discourse.nodered.org/t/comperator-not-working/44697)

<div class="topic-metadata">

**Author:** [@Doebe](https://discourse.nodered.org/u/Doebe)\
**Replies:** 3\
**Last updated:** [25 April 2021 13:49 UTC](https://discourse.nodered.org/t/comperator-not-working/44697 "2021-04-25T13:49:33Z")

</div>

i have the following function :slight\_smile: if (speed \<= 20) { low = true; } else if (speed =\> 74) { high = true; } else { low = false; high = false; } the value of speed = 50 it always show high = true; …

---

## [Function node - simple addition of two values](https://discourse.nodered.org/t/function-node-simple-addition-of-two-values/44690)

<div class="topic-metadata">

**Author:** [@rantanplan](https://discourse.nodered.org/u/rantanplan)\
**Replies:** 6\
**Last updated:** [25 April 2021 11:57 UTC](https://discourse.nodered.org/t/function-node-simple-addition-of-two-values/44690 "2021-04-25T11:57:36Z")

</div>

Hi all, I'm struggeling with an easy addtition of two valueas in a function node. I'm able to handover flow-variables and send it to a debug node but I'm too stupid to add this two values and hand it over to a dashboard…

---

## [How to node-red-contrib-volkswagen-we](https://discourse.nodered.org/t/how-to-node-red-contrib-volkswagen-we/44685)

<div class="topic-metadata">

**Author:** [@Tomas](https://discourse.nodered.org/u/Tomas)\
**Replies:** 2\
**Last updated:** [25 April 2021 11:33 UTC](https://discourse.nodered.org/t/how-to-node-red-contrib-volkswagen-we/44685 "2021-04-25T11:33:37Z")

</div>

Hi, I just installed node-red-contrib-volkswagen-we and I have logged in. Thats all I have til now. Now I dont know how to get Informations from the car. I have a e-Up and I want to read the battery status e.g. 90% C…

---

## [Send reset to a trigger node](https://discourse.nodered.org/t/send-reset-to-a-trigger-node/44669)

<div class="topic-metadata">

**Author:** [@vikozo](https://discourse.nodered.org/u/vikozo)\
**Replies:** 4\
**Last updated:** [25 April 2021 10:54 UTC](https://discourse.nodered.org/t/send-reset-to-a-trigger-node/44669 "2021-04-25T10:54:50Z")

</div>

Hello i do check for a device if the ping is false i got a Telegram Message! because i don't like to get every 30Second a Message i have added a trigger Node to wait 180min. I have a manual inject Node with the msg.re…

---

## [\[Announce\] node-red-contrib-ui-svg](https://discourse.nodered.org/t/announce-node-red-contrib-ui-svg/17063)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 87\
**Last updated:** [25 April 2021 09:34 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-svg/17063 "2021-04-25T09:34:16Z")

</div>

Hi folks, After some beta releases, Steve (@Steve-Mcl) and I proudly announce that our node-red-contrib-ui-svg node is finally available on NPM (version 1.2.2). :champagne: :partying\_face: :beer: :birthday: We have …

---

## [RBG LED Strip Color Flow](https://discourse.nodered.org/t/rbg-led-strip-color-flow/44675)

<div class="topic-metadata">

**Author:** [@manjotsc](https://discourse.nodered.org/u/manjotsc)\
**Replies:** 0\
**Last updated:** [24 April 2021 21:44 UTC](https://discourse.nodered.org/t/rbg-led-strip-color-flow/44675 "2021-04-24T21:44:43Z")

</div>

Hi, I found this color loop script on reddit. This script works for controlling rgb led strips in node red. But how can I make colors fade rather than hard change. \[{"id":"c41004d0.f859c8","type":"tab","label":"Flow …

---

## [Get a warning when binary\_sensor is unavailable](https://discourse.nodered.org/t/get-a-warning-when-binary-sensor-is-unavailable/44674)

<div class="topic-metadata">

**Author:** [@neoyang](https://discourse.nodered.org/u/neoyang)\
**Replies:** 1\
**Last updated:** [25 April 2021 09:15 UTC](https://discourse.nodered.org/t/get-a-warning-when-binary-sensor-is-unavailable/44674 "2021-04-25T09:15:12Z")

</div>

I am working on get a warning when any one of the binary\_sensors becomes unavailable. my code is as below, my question is that I can get a warning but I am not able to show which sensors they are? \[{"id":"525511a0.bb89…

---

## [Function with multiple inputs and outputs](https://discourse.nodered.org/t/function-with-multiple-inputs-and-outputs/44671)

<div class="topic-metadata">

**Author:** [@pawael](https://discourse.nodered.org/u/pawael)\
**Replies:** 8\
**Last updated:** [25 April 2021 08:39 UTC](https://discourse.nodered.org/t/function-with-multiple-inputs-and-outputs/44671 "2021-04-25T08:39:09Z")

</div>

Hi, I want to create a function with multiple inputs and multiple outputs. I use 2 illumination sensors and I want to specify my multiple outputs. Here ist my code context.voga = context.voga; context.grtn = context.…

---

## [Display enumeration in a list](https://discourse.nodered.org/t/display-enumeration-in-a-list/44660)

<div class="topic-metadata">

**Author:** [@MKaiser96](https://discourse.nodered.org/u/MKaiser96)\
**Replies:** 2\
**Last updated:** [25 April 2021 07:49 UTC](https://discourse.nodered.org/t/display-enumeration-in-a-list/44660 "2021-04-25T07:49:54Z")

</div>

Hi, I have a enumeration as a string in my payload: Line1;Line2;Line3;Line4;Line5 I want to display it in my dashboard. It should look like this: How can I do this?

---

## [Node red doesn't restart after npm audit fix](https://discourse.nodered.org/t/node-red-doesnt-restart-after-npm-audit-fix/44652)

<div class="topic-metadata">

**Author:** [@danipenn](https://discourse.nodered.org/u/danipenn)\
**Replies:** 14\
**Last updated:** [24 April 2021 19:17 UTC](https://discourse.nodered.org/t/node-red-doesnt-restart-after-npm-audit-fix/44652 "2021-04-24T19:17:45Z")

</div>

Hi to all, I've a big big problem, PLEASE HELP :sob: i'm desperate, it's about some month that I work on a project and.... I've not flow backup the story is: I need to use moment inside a function node and after look…

---

## [Determine the local time in function node](https://discourse.nodered.org/t/determine-the-local-time-in-function-node/44502)

<div class="topic-metadata">

**Author:** [@nygma2004](https://discourse.nodered.org/u/nygma2004)\
**Replies:** 8\
**Last updated:** [24 April 2021 17:45 UTC](https://discourse.nodered.org/t/determine-the-local-time-in-function-node/44502 "2021-04-24T17:45:01Z")

</div>

I have a few scenarios where I need to get the current time in a function node for example to generate a filename based on the current timestamp. I don't want to use an external node as it would complicate the flow, and …

---

## [Smart Nora 1.0.3 installation problem](https://discourse.nodered.org/t/smart-nora-1-0-3-installation-problem/44548)

<div class="topic-metadata">

**Author:** [@FireWizard52](https://discourse.nodered.org/u/FireWizard52)\
**Replies:** 10\
**Last updated:** [24 April 2021 16:40 UTC](https://discourse.nodered.org/t/smart-nora-1-0-3-installation-problem/44548 "2021-04-24T16:40:39Z")

</div>

Hello All, Recently I installed successfully the node-red-contrib-smartnora node, version 1.0.2 on both a TrueNAS jail and on a Raspberry Pi 1B. Yesterday evening I updated successfully some nodes through the "Palette"…

---

## [Help with alexa home node to automate diy spa bath heater with sonoff th16 temperature controlled relay](https://discourse.nodered.org/t/help-with-alexa-home-node-to-automate-diy-spa-bath-heater-with-sonoff-th16-temperature-controlled-relay/40470)

<div class="topic-metadata">

**Author:** [@Robmak](https://discourse.nodered.org/u/Robmak)\
**Replies:** 10\
**Last updated:** [24 April 2021 15:55 UTC](https://discourse.nodered.org/t/help-with-alexa-home-node-to-automate-diy-spa-bath-heater-with-sonoff-th16-temperature-controlled-relay/40470 "2021-04-24T15:55:56Z")

</div>

I have the knowledge to develop this flow on all issues apart from getting node red to get the temp from ewelink to compare the temp against the temp of the set temp value stored in alexa, I have already got alexa to spe…

---

## [Node-red-contrib-home-assistant-websocket using msg.payload](https://discourse.nodered.org/t/node-red-contrib-home-assistant-websocket-using-msg-payload/44628)

<div class="topic-metadata">

**Author:** [@ajocius](https://discourse.nodered.org/u/ajocius)\
**Replies:** 4\
**Last updated:** [24 April 2021 15:16 UTC](https://discourse.nodered.org/t/node-red-contrib-home-assistant-websocket-using-msg-payload/44628 "2021-04-24T15:16:32Z")

</div>

I have 'node-red-contrib-home-assistant-websocket' in my pallete. Using it to send command open or close door depending on temperature measure. So I have msg.payload value either 'cover.open\_cover' or 'cover.close\_cover'…

---

## [HomeAssistant History in Function](https://discourse.nodered.org/t/homeassistant-history-in-function/44657)

<div class="topic-metadata">

**Author:** [@PrayerfulDrop](https://discourse.nodered.org/u/PrayerfulDrop)\
**Replies:** 0\
**Last updated:** [24 April 2021 13:47 UTC](https://discourse.nodered.org/t/homeassistant-history-in-function/44657 "2021-04-24T13:47:27Z")

</div>

I deeply apologize about the n00bie request but I cannot find anywhere on how to acquire the history array to determine last changed state of a person within a function. I have figured out how to use the HA websocket ap…

---

## [Use case for delay node fixed delay](https://discourse.nodered.org/t/use-case-for-delay-node-fixed-delay/44655)

<div class="topic-metadata">

**Author:** [@hobbes1069](https://discourse.nodered.org/u/hobbes1069)\
**Replies:** 1\
**Last updated:** [24 April 2021 13:21 UTC](https://discourse.nodered.org/t/use-case-for-delay-node-fixed-delay/44655 "2021-04-24T13:21:08Z")

</div>

I was bitten but the assumption that I could use the delay node to "drip feed" messages from a historical CSV file only to find out all the messages are delayed independently. I can use the rate limit but still, that got…

---

## [Mutiple paths in single payload](https://discourse.nodered.org/t/mutiple-paths-in-single-payload/44641)

<div class="topic-metadata">

**Author:** [@stu1811](https://discourse.nodered.org/u/stu1811)\
**Replies:** 3\
**Last updated:** [24 April 2021 11:30 UTC](https://discourse.nodered.org/t/mutiple-paths-in-single-payload/44641 "2021-04-24T11:30:55Z")

</div>

I'm trying to trigger on a event from my Inovelli LZW30-SN (light switch). I only want to do something when payload.event.label == "Scene 003" and payload.event.value == "KeyPressed". What is the best way to do multiple …

---

## [Function node \> msg.payload versus payload?](https://discourse.nodered.org/t/function-node-msg-payload-versus-payload/44589)

<div class="topic-metadata">

**Author:** [@JeromeVISUALS](https://discourse.nodered.org/u/JeromeVISUALS)\
**Replies:** 3\
**Last updated:** [24 April 2021 11:01 UTC](https://discourse.nodered.org/t/function-node-msg-payload-versus-payload/44589 "2021-04-24T11:01:37Z")

</div>

Hi, I'm quite new to node-red and also JS, but for the moment I'm quite happy with what I could achieve ( I focus on making workflows and custom panels for video broadcast devices) I try to make use as much as possible…

---

## [Getting Data on Webpage](https://discourse.nodered.org/t/getting-data-on-webpage/44653)

<div class="topic-metadata">

**Author:** [@Kartiknodered](https://discourse.nodered.org/u/Kartiknodered)\
**Replies:** 3\
**Last updated:** [24 April 2021 10:57 UTC](https://discourse.nodered.org/t/getting-data-on-webpage/44653 "2021-04-24T10:57:22Z")

</div>

Hello, I want to ask how can i get/display data from MySQL database to a webpage?

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

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