# General

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

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

**Page:** 915

---

## [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.

---

## [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…

---

## [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…

---

## [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 …

---

## [FYI: You can output emoji's in node status and debug window](https://discourse.nodered.org/t/fyi-you-can-output-emojis-in-node-status-and-debug-window/7742)

<div class="topic-metadata">

**Author:** [@RoganFPS](https://discourse.nodered.org/u/RoganFPS)\
**Replies:** 15\
**Last updated:** [10 February 2019 20:24 UTC](https://discourse.nodered.org/t/fyi-you-can-output-emojis-in-node-status-and-debug-window/7742 "2019-02-10T20:24:03Z")

</div>

We can all sleep that little bit better now. Have a nice weekend .

---

## [Node red not displaying ram data](https://discourse.nodered.org/t/node-red-not-displaying-ram-data/7788)

<div class="topic-metadata">

**Author:** [@mason08](https://discourse.nodered.org/u/mason08)\
**Replies:** 9\
**Last updated:** [10 February 2019 20:10 UTC](https://discourse.nodered.org/t/node-red-not-displaying-ram-data/7788 "2019-02-10T20:10:02Z")

</div>

This is the flow im using, \[{"id":"29c5c29f.0ccade","type":"ui\_gauge","z":"5bbec9a5.28ca08","name":"","group":"c998f325.2a7bc","order":2,"width":0,"height":0,"gtype":"gage","title":"CPU Temperature","label":"Degrees F",…

---

## [CP1L-E with node red](https://discourse.nodered.org/t/cp1l-e-with-node-red/7777)

<div class="topic-metadata">

**Author:** [@emil\_m](https://discourse.nodered.org/u/emil_m)\
**Replies:** 4\
**Last updated:** [10 February 2019 12:05 UTC](https://discourse.nodered.org/t/cp1l-e-with-node-red/7777 "2019-02-10T12:05:51Z")

</div>

Hello. anyone communicated a CP1L-E with red nodes? i try with ethernet ip and it does not work.

---

## [Knx with raspberry](https://discourse.nodered.org/t/knx-with-raspberry/5872)

<div class="topic-metadata">

**Author:** [@gaara7271](https://discourse.nodered.org/u/gaara7271)\
**Replies:** 10\
**Last updated:** [10 February 2019 10:38 UTC](https://discourse.nodered.org/t/knx-with-raspberry/5872 "2019-02-10T10:38:11Z")

</div>

Hi everyone, I want connect raspberry into knx network by node-red. Some tutorial use KNX IP, but i having KNX USB interface. What should i do ? Sorry, my language isn't english...:smiley:

---

## [Club all MQTT Topic data in one json string](https://discourse.nodered.org/t/club-all-mqtt-topic-data-in-one-json-string/7773)

<div class="topic-metadata">

**Author:** [@Varul92](https://discourse.nodered.org/u/Varul92)\
**Replies:** 3\
**Last updated:** [10 February 2019 07:01 UTC](https://discourse.nodered.org/t/club-all-mqtt-topic-data-in-one-json-string/7773 "2019-02-10T07:01:19Z")

</div>

How can I club all the MQTT Topic data in one JSON String I was able to get JSON string for the individual topic only like this "{"time":1549737900821,"payload":"1997.32","topic":"RotateZ"}" {"time":1549737900821,"p…

---

## ["Data types". Stuck getting data formatted correctly](https://discourse.nodered.org/t/data-types-stuck-getting-data-formatted-correctly/7780)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [9 February 2019 23:01 UTC](https://discourse.nodered.org/t/data-types-stuck-getting-data-formatted-correctly/7780 "2019-02-09T23:01:57Z")

</div>

I'm just not understanding something. I need to display a simple set of variables in/on a table. I found this: Simple One dimensional array. and it works as given. But it takes numbers. But anyway.... The array i…

---

## [Trigger node and msg.payload in debug node](https://discourse.nodered.org/t/trigger-node-and-msg-payload-in-debug-node/7778)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 4\
**Last updated:** [9 February 2019 23:00 UTC](https://discourse.nodered.org/t/trigger-node-and-msg-payload-in-debug-node/7778 "2019-02-09T23:00:26Z")

</div>

Could someone tell me if I am missing something. The debug node has an option for output to be put at/on the node similar to the node.warn() command in the function node. For the sake of being able to check myself I ad…

---

## [Zigbee the best node?](https://discourse.nodered.org/t/zigbee-the-best-node/3349)

<div class="topic-metadata">

**Author:** [@JoseGodinho](https://discourse.nodered.org/u/JoseGodinho)\
**Replies:** 7\
**Last updated:** [9 February 2019 19:51 UTC](https://discourse.nodered.org/t/zigbee-the-best-node/3349 "2019-02-09T19:51:47Z")

</div>

Hello All I have seen so few comments here about the Zigbee protocol. The sensors/bulb are becoming cheaper and make sens to integrate it, with sonoff and others alike. From the several nodes existing is there any su…

---

## [Worldmap not working with default endpoint](https://discourse.nodered.org/t/worldmap-not-working-with-default-endpoint/7760)

<div class="topic-metadata">

**Author:** [@TheSauce](https://discourse.nodered.org/u/TheSauce)\
**Replies:** 4\
**Last updated:** [9 February 2019 18:01 UTC](https://discourse.nodered.org/t/worldmap-not-working-with-default-endpoint/7760 "2019-02-09T18:01:41Z")

</div>

I have a world map flow I have been using for a while that pulls in all of the buses and light rail vehicles for my area. I have it running in two different systems. I upgraded both of them to the latest world map (1.5…

---

## [Help me get started!](https://discourse.nodered.org/t/help-me-get-started/7675)

<div class="topic-metadata">

**Author:** [@RASelkirk](https://discourse.nodered.org/u/RASelkirk)\
**Replies:** 19\
**Last updated:** [9 February 2019 14:28 UTC](https://discourse.nodered.org/t/help-me-get-started/7675 "2019-02-09T14:28:08Z")

</div>

Hi All, My son got me a Ras. Pi for X-mas which I'd like to stash it inside my driveway gate control box for (really) remote operation. After stumbling around with Python, the peeps on the Pi forum said to check out No…

---

## [Can't switch instance 2 on a fibaro FGS-223 double switch](https://discourse.nodered.org/t/cant-switch-instance-2-on-a-fibaro-fgs-223-double-switch/7769)

<div class="topic-metadata">

**Author:** [@TacoScheltema](https://discourse.nodered.org/u/TacoScheltema)\
**Replies:** 4\
**Last updated:** [9 February 2019 12:25 UTC](https://discourse.nodered.org/t/cant-switch-instance-2-on-a-fibaro-fgs-223-double-switch/7769 "2019-02-09T12:25:28Z")

</div>

Hi all, I've successfully setup node-red and have been able to create my first flows. I have trouble with my Fibaro FGS-223 double switches though. I can easily operate the first instance by sending a 'switchOn' or 'swi…

---

## [Get the coordinates of gyroscope sensor connected with RPI using Google node](https://discourse.nodered.org/t/get-the-coordinates-of-gyroscope-sensor-connected-with-rpi-using-google-node/7735)

<div class="topic-metadata">

**Author:** [@Varul92](https://discourse.nodered.org/u/Varul92)\
**Replies:** 1\
**Last updated:** [9 February 2019 10:28 UTC](https://discourse.nodered.org/t/get-the-coordinates-of-gyroscope-sensor-connected-with-rpi-using-google-node/7735 "2019-02-09T10:28:29Z")

</div>

Hi, I have been working with a gyroscope sensor and node red, I am able to receive the data from this sensor using MQTT method but Instead of that I am thinking to connect my google credentials with Node red services an…

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

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