# Latest

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

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

**Page:** 1317

---

## [One function cancels the other](https://discourse.nodered.org/t/one-function-cancels-the-other/7719)

<div class="topic-metadata">

**Author:** [@mambui](https://discourse.nodered.org/u/mambui)\
**Replies:** 13\
**Last updated:** [12 February 2019 21:45 UTC](https://discourse.nodered.org/t/one-function-cancels-the-other/7719 "2019-02-12T21:45:47Z")

</div>

Hi folks, Here is my first message on the Node-Red forum. I would like to improve my flow. I have one switch called "Buy or Sell" that push a trade into two differents functions called"Buy" and the other called "Sell".…

---

## [Setting default values to UI nodes](https://discourse.nodered.org/t/setting-default-values-to-ui-nodes/145)

<div class="topic-metadata">

**Author:** [@igrowing](https://discourse.nodered.org/u/igrowing)\
**Replies:** 4\
**Last updated:** [12 February 2019 21:18 UTC](https://discourse.nodered.org/t/setting-default-values-to-ui-nodes/145 "2019-02-12T21:18:54Z")

</div>

Hi, likely this is another FAQ: how to set “default value” or “initial value” to UI elements/nodes? I’d like to have some switches on and others off when node-red loads. And numeric/sliders at certain values each. I c…

---

## [REST API Node Uninstall returns 400 every time](https://discourse.nodered.org/t/rest-api-node-uninstall-returns-400-every-time/7888)

<div class="topic-metadata">

**Author:** [@mitchwadair](https://discourse.nodered.org/u/mitchwadair)\
**Replies:** 12\
**Last updated:** [12 February 2019 19:40 UTC](https://discourse.nodered.org/t/rest-api-node-uninstall-returns-400-every-time/7888 "2019-02-12T19:40:03Z")

</div>

Hello! I am currently working on a program that utilizes the Node-RED Admin HTTP API to uninstall custom nodes from a server. I have run into an issue where each time I attempt a call to DELETE /nodes/mynode, I get a r…

---

## [Problems with a few nodes fallback rebuilding utf-8-validate, serialport in Node.js v10.15.1](https://discourse.nodered.org/t/problems-with-a-few-nodes-fallback-rebuilding-utf-8-validate-serialport-in-node-js-v10-15-1/7868)

<div class="topic-metadata">

**Author:** [@hoekbrwr](https://discourse.nodered.org/u/hoekbrwr)\
**Replies:** 10\
**Last updated:** [12 February 2019 18:32 UTC](https://discourse.nodered.org/t/problems-with-a-few-nodes-fallback-rebuilding-utf-8-validate-serialport-in-node-js-v10-15-1/7868 "2019-02-12T18:32:12Z")

</div>

I am installing node-RED on a Pi3B+ and see a long message with gibberish of faults. It happens every time I get the dependency utf-8-validate and also a few others like bufferutil and serialport. I am running this with…

---

## [Cannot access to UI due to influxdb misconfiguration](https://discourse.nodered.org/t/cannot-access-to-ui-due-to-influxdb-misconfiguration/7882)

<div class="topic-metadata">

**Author:** [@mauog](https://discourse.nodered.org/u/mauog)\
**Replies:** 4\
**Last updated:** [12 February 2019 18:08 UTC](https://discourse.nodered.org/t/cannot-access-to-ui-due-to-influxdb-misconfiguration/7882 "2019-02-12T18:08:28Z")

</div>

Hello, I had to reinstall influxdb but unfortunately I forgot to update node-red-contrib-influxdb nodes so now I am not able to access to nodered UI. Looking at logs it tells: at new RequestError (/data/node\_modules/i…

---

## [Ui\_toast feature request](https://discourse.nodered.org/t/ui-toast-feature-request/7873)

<div class="topic-metadata">

**Author:** [@fabnavigator](https://discourse.nodered.org/u/fabnavigator)\
**Replies:** 2\
**Last updated:** [12 February 2019 17:49 UTC](https://discourse.nodered.org/t/ui-toast-feature-request/7873 "2019-02-12T17:49:04Z")

</div>

I'm not sure if this is where a feature request goes, but how hard is it to add some ui\_control for the notification node. It would be great to change the layout and timeout.

---

## [Trying to refresh the page in Dashboard Template node](https://discourse.nodered.org/t/trying-to-refresh-the-page-in-dashboard-template-node/551)

<div class="topic-metadata">

**Author:** [@Grendel61](https://discourse.nodered.org/u/Grendel61)\
**Replies:** 14\
**Last updated:** [12 February 2019 15:37 UTC](https://discourse.nodered.org/t/trying-to-refresh-the-page-in-dashboard-template-node/551 "2019-02-12T15:37:42Z")

</div>

Hi, I’m relatively new to AngularJS, and I’m looking for some guidance on how to use the app controller inside an AngularJS app in a Dashboard Template Node. I want to reload the part of the page related to the data whe…

---

## [How to update Worldmap with a high frequency data rate](https://discourse.nodered.org/t/how-to-update-worldmap-with-a-high-frequency-data-rate/7847)

<div class="topic-metadata">

**Author:** [@emspe](https://discourse.nodered.org/u/emspe)\
**Replies:** 2\
**Last updated:** [12 February 2019 13:45 UTC](https://discourse.nodered.org/t/how-to-update-worldmap-with-a-high-frequency-data-rate/7847 "2019-02-12T13:45:23Z")

</div>

Hi, I'm reading a ".txt" file containing Latitude,Longitude and trying to update the worldmap according to that location variation. sample : 7.476141,80.386292 7.475736,80.386968 7.475385,80.387558 7.475034,80.388…

---

## [Xiaomi TH sensors](https://discourse.nodered.org/t/xiaomi-th-sensors/7865)

<div class="topic-metadata">

**Author:** [@cismarine](https://discourse.nodered.org/u/cismarine)\
**Replies:** 12\
**Last updated:** [12 February 2019 11:49 UTC](https://discourse.nodered.org/t/xiaomi-th-sensors/7865 "2019-02-12T11:49:16Z")

</div>

Hi, I have quite a few temperature sensors in node and they all show different temperature to the native Xiaomi app. Humidity is spot on. TIA

---

## [How to calculate time difference?](https://discourse.nodered.org/t/how-to-calculate-time-difference/7857)

<div class="topic-metadata">

**Author:** [@empirejrz](https://discourse.nodered.org/u/empirejrz)\
**Replies:** 4\
**Last updated:** [12 February 2019 09:59 UTC](https://discourse.nodered.org/t/how-to-calculate-time-difference/7857 "2019-02-12T09:59:59Z")

</div>

Hello; I would like to calculate time when start 22:00:00 in the database and the end time is 02:30:00. Who has an idea for calculate 22:00:00 to 02:30:00( Total 04:30:00 Hour ) in the node-red? Thank you.

---

## [\[Dashboard\] Custom Graph Dissappears With Payload](https://discourse.nodered.org/t/dashboard-custom-graph-dissappears-with-payload/7867)

<div class="topic-metadata">

**Author:** [@poyrazs](https://discourse.nodered.org/u/poyrazs)\
**Replies:** 0\
**Last updated:** [12 February 2019 09:54 UTC](https://discourse.nodered.org/t/dashboard-custom-graph-dissappears-with-payload/7867 "2019-02-12T09:54:25Z")

</div>

Hello everyone! I've been using Node-Red for a while and now I'm facing a problem when I want to use custom HTML on Dashboard's template node. When I put the payload as {{msg.payload.data}} into my graph's data input, …

---

## [POST request returns 502 Bad Gateway intermittently](https://discourse.nodered.org/t/post-request-returns-502-bad-gateway-intermittently/7200)

<div class="topic-metadata">

**Author:** [@piptan](https://discourse.nodered.org/u/piptan)\
**Replies:** 1\
**Last updated:** [12 February 2019 08:52 UTC](https://discourse.nodered.org/t/post-request-returns-502-bad-gateway-intermittently/7200 "2019-02-12T08:52:01Z")

</div>

Even when I tried to Deploy my application via Node-RED, it somtimes got 502 error. I just create very simple node-red application for testing purpose. It just receives GET and POST request with on parameter and returns…

---

## [Got up this morning and NR is not working](https://discourse.nodered.org/t/got-up-this-morning-and-nr-is-not-working/7855)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 4\
**Last updated:** [12 February 2019 07:10 UTC](https://discourse.nodered.org/t/got-up-this-morning-and-nr-is-not-working/7855 "2019-02-12T07:10:01Z")

</div>

Yesterday evening all was ok. This morning I got up and didn't really take too much notice but I got home abut 11:00 (local time) and tried to connect to my main NR machine. This was brought on by a device which talks …

---

## [Motion triggered week day timer?](https://discourse.nodered.org/t/motion-triggered-week-day-timer/7800)

<div class="topic-metadata">

**Author:** [@Dayve](https://discourse.nodered.org/u/Dayve)\
**Replies:** 7\
**Last updated:** [12 February 2019 01:11 UTC](https://discourse.nodered.org/t/motion-triggered-week-day-timer/7800 "2019-02-12T01:11:58Z")

</div>

Trying for a few days now to get a flow to work. A simple motion triggered flow to turn on a light if it is between 6am and 6:30 am only on week days. Here is the working flow I have now that turns on the hall light but…

---

## [Help fix a broken node?](https://discourse.nodered.org/t/help-fix-a-broken-node/7854)

<div class="topic-metadata">

**Author:** [@VinistoisR](https://discourse.nodered.org/u/VinistoisR)\
**Replies:** 0\
**Last updated:** [12 February 2019 00:53 UTC](https://discourse.nodered.org/t/help-fix-a-broken-node/7854 "2019-02-12T00:53:11Z")

</div>

Hi, I'm trying to use this node: It looks like the project was going well enough but has been abandoned. I installed it following the instructions on the github link. But it kind of broke my node-red install. Spec…

---

## [Pythonshell which Python version?](https://discourse.nodered.org/t/pythonshell-which-python-version/7853)

<div class="topic-metadata">

**Author:** [@kxkayser](https://discourse.nodered.org/u/kxkayser)\
**Replies:** 0\
**Last updated:** [11 February 2019 23:16 UTC](https://discourse.nodered.org/t/pythonshell-which-python-version/7853 "2019-02-11T23:16:59Z")

</div>

Hi. I am trying to use the Pythonshell node to start a program on a RPi. My default environment is Python 3.5.3. THe proram has a shebang statement reflecting this environment and works fine from the command line or a…

---

## [Remove Home Assistant](https://discourse.nodered.org/t/remove-home-assistant/7850)

<div class="topic-metadata">

**Author:** [@kxkayser](https://discourse.nodered.org/u/kxkayser)\
**Replies:** 2\
**Last updated:** [11 February 2019 23:09 UTC](https://discourse.nodered.org/t/remove-home-assistant/7850 "2019-02-11T23:09:13Z")

</div>

I installed the "node-red-contrib-home-assistant" nodes and connected to my HA instance. This was just a test and I have decided not to use HA at the present time because I can do eberything I want in NR. If I don't st…

---

## [Timer (node-red-contrib-interval-length)](https://discourse.nodered.org/t/timer-node-red-contrib-interval-length/7789)

<div class="topic-metadata">

**Author:** [@VictorStela](https://discourse.nodered.org/u/VictorStela)\
**Replies:** 11\
**Last updated:** [11 February 2019 22:20 UTC](https://discourse.nodered.org/t/timer-node-red-contrib-interval-length/7789 "2019-02-11T22:20:03Z")

</div>

Hello, I'm developing a OEE (Overall Equipment Effectiveness) counter using the Dashboard to show this informations, but I want create a flow to calculate the machine availiability and I can't create a timer to count th…

---

## [Yet another dashboard - node-red-contrib-component-dashboard](https://discourse.nodered.org/t/yet-another-dashboard-node-red-contrib-component-dashboard/6453)

<div class="topic-metadata">

**Author:** [@cinhcet](https://discourse.nodered.org/u/cinhcet)\
**Replies:** 16\
**Last updated:** [11 February 2019 21:23 UTC](https://discourse.nodered.org/t/yet-another-dashboard-node-red-contrib-component-dashboard/6453 "2019-02-11T21:23:43Z")

</div>

Hi, some while ago I started a dashboard alternative, which is something between node-red-dashboard and node-red-contrib-uibuilder. For details look at https://github.com/cinhcet/node-red-contrib-component-dashboard T…

---

## [Alarm Node Needed](https://discourse.nodered.org/t/alarm-node-needed/7846)

<div class="topic-metadata">

**Author:** [@aihysp](https://discourse.nodered.org/u/aihysp)\
**Replies:** 3\
**Last updated:** [11 February 2019 21:10 UTC](https://discourse.nodered.org/t/alarm-node-needed/7846 "2019-02-11T21:10:31Z")

</div>

Hi can anyone give me a good alarm flow, I have searched the library and found nothing also, i have seen the alarm contrib , and it's very confusing how to make it work i have various WIFI, RF sensors just need a good…

---

## [Tensorflow in node-red](https://discourse.nodered.org/t/tensorflow-in-node-red/7822)

<div class="topic-metadata">

**Author:** [@KarolisL](https://discourse.nodered.org/u/KarolisL)\
**Replies:** 3\
**Last updated:** [11 February 2019 19:07 UTC](https://discourse.nodered.org/t/tensorflow-in-node-red/7822 "2019-02-11T19:07:45Z")

</div>

Hello, I try to use tensorflow npm without luck. What is done: npm module is in .node-red\\node\_modules@tensorflow via npm i @tensorflow/tfjs I tried using: https://www.npmjs.com/package/node-red-contrib-function-npm w…

---

## [Convert serial to object](https://discourse.nodered.org/t/convert-serial-to-object/7842)

<div class="topic-metadata">

**Author:** [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Replies:** 4\
**Last updated:** [11 February 2019 18:28 UTC](https://discourse.nodered.org/t/convert-serial-to-object/7842 "2019-02-11T18:28:01Z")

</div>

Hi! I have a arduino with 4 sensors connected to my pi. The serial sends the ouput like below {cell\_1:0.01,cell\_2:0.03,cell\_3:-0.02,cell\_4:0.03} I was hoping that i could use this as an object in my javascript node b…

---

## [How to send http request to Google Analytics properly?](https://discourse.nodered.org/t/how-to-send-http-request-to-google-analytics-properly/7837)

<div class="topic-metadata">

**Author:** [@Traste](https://discourse.nodered.org/u/Traste)\
**Replies:** 2\
**Last updated:** [11 February 2019 18:15 UTC](https://discourse.nodered.org/t/how-to-send-http-request-to-google-analytics-properly/7837 "2019-02-11T18:15:36Z")

</div>

Hi, I'm trying to sent data to Google Analytics via http request. I need to send this type of request using POST: POST /batch HTTP/1.1 Host: www.google-analytics.com v=1&tid=UA-XXXXX-Y&cid=555&t=event&ec=sensor\_name&e…

---

## [Organizing flows into multiple files](https://discourse.nodered.org/t/organizing-flows-into-multiple-files/7802)

<div class="topic-metadata">

**Author:** [@TheLongAndOnly](https://discourse.nodered.org/u/TheLongAndOnly)\
**Replies:** 8\
**Last updated:** [11 February 2019 18:11 UTC](https://discourse.nodered.org/t/organizing-flows-into-multiple-files/7802 "2019-02-11T18:11:33Z")

</div>

Hi, I'm trying to find a good pattern to share flows across multiple projects. Libraries for my understanding are JS code only. Subflows are part of the normal user.flows. I would like create one or multiple repos whi…

---

## [Dashboard Update Failed on windows](https://discourse.nodered.org/t/dashboard-update-failed-on-windows/7830)

<div class="topic-metadata">

**Author:** [@Tobi](https://discourse.nodered.org/u/Tobi)\
**Replies:** 2\
**Last updated:** [11 February 2019 17:16 UTC](https://discourse.nodered.org/t/dashboard-update-failed-on-windows/7830 "2019-02-11T17:16:48Z")

</div>

Hi, I want to update my Node-RED dashboard to the newest version 2.13.2. Node-RED is running on a windows 10 laptop. If I cklick update to 2.13.2 in the manage palette, the following error appears: the log file: Mic…

---

## [Querying data from a sensor via Google Home?](https://discourse.nodered.org/t/querying-data-from-a-sensor-via-google-home/7833)

<div class="topic-metadata">

**Author:** [@GAZ082](https://discourse.nodered.org/u/GAZ082)\
**Replies:** 3\
**Last updated:** [11 February 2019 16:55 UTC](https://discourse.nodered.org/t/querying-data-from-a-sensor-via-google-home/7833 "2019-02-11T16:55:57Z")

</div>

Hey there. I have a running instance of NR and the bridge to GH made by @i8beef which is working great. I wonder if there is a way to ask to GH for values that can be accessed via MQTT from my sensors such as "Hey Google…

---

## [Function with a lot of output?](https://discourse.nodered.org/t/function-with-a-lot-of-output/7752)

<div class="topic-metadata">

**Author:** [@maccoa](https://discourse.nodered.org/u/maccoa)\
**Replies:** 5\
**Last updated:** [11 February 2019 14:02 UTC](https://discourse.nodered.org/t/function-with-a-lot-of-output/7752 "2019-02-11T14:02:04Z")

</div>

Hello everyone . I have a function with 88 outputs. the source comes from a modbus output as an array. in the function I insert a topic on each value. is there a simpler way to do this? var x1 = { payload: msg.paylo…

---

## [Iterate through objects to create HTML list](https://discourse.nodered.org/t/iterate-through-objects-to-create-html-list/7810)

<div class="topic-metadata">

**Author:** [@diggidydaz](https://discourse.nodered.org/u/diggidydaz)\
**Replies:** 2\
**Last updated:** [10 February 2019 23:52 UTC](https://discourse.nodered.org/t/iterate-through-objects-to-create-html-list/7810 "2019-02-10T23:52:35Z")

</div>

Hi, I am somewhat new to node red and javascript. I am having trouble with trying to figure out how to loop through and print a list of objects to the browser. So far, only the first entry is shown, but I would like it…

---

## [Passing msg.payload to template node](https://discourse.nodered.org/t/passing-msg-payload-to-template-node/7549)

<div class="topic-metadata">

**Author:** [@janek](https://discourse.nodered.org/u/janek)\
**Replies:** 14\
**Last updated:** [10 February 2019 21:21 UTC](https://discourse.nodered.org/t/passing-msg-payload-to-template-node/7549 "2019-02-10T21:21:29Z")

</div>

Hi, I have a template node to display video from uv4l Inside it the following code works: Now, I want to replace the fixed IP address inside src with the one obtain from hostIP node I placed the following code insid…

---

## [Websocket startup time issue when doing a deploy in node red ](https://discourse.nodered.org/t/websocket-startup-time-issue-when-doing-a-deploy-in-node-red/7765)

<div class="topic-metadata">

**Author:** [@Poiz](https://discourse.nodered.org/u/Poiz)\
**Replies:** 4\
**Last updated:** [10 February 2019 21:12 UTC](https://discourse.nodered.org/t/websocket-startup-time-issue-when-doing-a-deploy-in-node-red/7765 "2019-02-10T21:12:45Z")

</div>

Hi Im running node red on a raspberry pie 3 (b+) with Hassio. Hassio 0.86.4 Node red 1.3.0 I while a go I started to get connection problems when deploying a new flow in node red, see below. Any one got an idea what …

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

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