# General

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

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

**Page:** 918

---

## [Access data in template node using mustache](https://discourse.nodered.org/t/access-data-in-template-node-using-mustache/7441)

<div class="topic-metadata">

**Author:** [@KevinPamu](https://discourse.nodered.org/u/KevinPamu)\
**Replies:** 2\
**Last updated:** [31 January 2019 22:39 UTC](https://discourse.nodered.org/t/access-data-in-template-node-using-mustache/7441 "2019-01-31T22:39:56Z")

</div>

Greetings, I have the following code in the function node. var now = Date.now(); var year = new Date().getUTCFullYear(); var year\_start = Date.UTC(year, 0, 1); var day\_length\_in\_ms = 10006060\*24; var day\_number = …

---

## [RPI Serial hangups](https://discourse.nodered.org/t/rpi-serial-hangups/7398)

<div class="topic-metadata">

**Author:** [@muggins](https://discourse.nodered.org/u/muggins)\
**Replies:** 12\
**Last updated:** [31 January 2019 22:20 UTC](https://discourse.nodered.org/t/rpi-serial-hangups/7398 "2019-01-31T22:20:38Z")

</div>

I have an intelligent home security system connected to my Raspberry Pi via rs232 to /dev/tty/AMA0 using serial in and out nodes within Node-Red. Communication is fine for about a week and then either the in or out node …

---

## [System update broke node red](https://discourse.nodered.org/t/system-update-broke-node-red/7448)

<div class="topic-metadata">

**Author:** [@mdiehl](https://discourse.nodered.org/u/mdiehl)\
**Replies:** 4\
**Last updated:** [31 January 2019 21:19 UTC](https://discourse.nodered.org/t/system-update-broke-node-red/7448 "2019-01-31T21:19:27Z")

</div>

Hi all, I'm just getting started with node red and it looks like I've already broken it.... I had to do a system upgrade in order to get the latest nodejs. Now, when I type: node-red Nothing happens. I just get a s…

---

## [Function: setting topic name with a string](https://discourse.nodered.org/t/function-setting-topic-name-with-a-string/7446)

<div class="topic-metadata">

**Author:** [@braunku](https://discourse.nodered.org/u/braunku)\
**Replies:** 3\
**Last updated:** [31 January 2019 20:09 UTC](https://discourse.nodered.org/t/function-setting-topic-name-with-a-string/7446 "2019-01-31T20:09:05Z")

</div>

I am trying to assign the topic name using a string with the function node, however it does not work as expected. var n1 = "var1"; // string will actually come from an incoming msg dataset = {payload : {n1 : 12 , "var2…

---

## [Communication with the Arduino Robot](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410)

<div class="topic-metadata">

**Author:** [@Sin](https://discourse.nodered.org/u/Sin)\
**Replies:** 8\
**Last updated:** [31 January 2019 19:04 UTC](https://discourse.nodered.org/t/communication-with-the-arduino-robot/7410 "2019-01-31T19:04:05Z")

</div>

Hello everyone. I'm trying to use the Arduino node from the Node-RED to communicate with the Arduino Robot. Arduino Robot: https://www.arduino.cc/en/Guide/Robot I'm trying to send some signals from the Node-RED to the …

---

## [Load firmata onto Arduino Robot](https://discourse.nodered.org/t/load-firmata-onto-arduino-robot/7253)

<div class="topic-metadata">

**Author:** [@Sin](https://discourse.nodered.org/u/Sin)\
**Replies:** 14\
**Last updated:** [31 January 2019 17:23 UTC](https://discourse.nodered.org/t/load-firmata-onto-arduino-robot/7253 "2019-01-31T17:23:57Z")

</div>

Hello everyone. I'm using Arduino Robot as shown in Image 1 to communicate with the node-red. I need to download the Arduino node in the node-red but it failed. Is anyone know how to install the Arduino node? I've follow…

---

## [Get alexa to say something](https://discourse.nodered.org/t/get-alexa-to-say-something/7435)

<div class="topic-metadata">

**Author:** [@theraph83](https://discourse.nodered.org/u/theraph83)\
**Replies:** 1\
**Last updated:** [31 January 2019 15:30 UTC](https://discourse.nodered.org/t/get-alexa-to-say-something/7435 "2019-01-31T15:30:54Z")

</div>

Hello guys im new to node red so please be patient with me ,i have node red integrated with home assistant ,i was wondering is there a way for my echo device to say something when something happens? For an example if i…

---

## [Node-red component for handling big integers](https://discourse.nodered.org/t/node-red-component-for-handling-big-integers/7369)

<div class="topic-metadata">

**Author:** [@abra](https://discourse.nodered.org/u/abra)\
**Replies:** 2\
**Last updated:** [31 January 2019 13:16 UTC](https://discourse.nodered.org/t/node-red-component-for-handling-big-integers/7369 "2019-01-31T13:16:07Z")

</div>

Is there any node-red component available, for handling big integers (Int64, UInt64) ? I need to combine into a function node two 32-bit integers into a 64-bit integer. Thx for your help.

---

## [Preset Configuration Nodes?](https://discourse.nodered.org/t/preset-configuration-nodes/7420)

<div class="topic-metadata">

**Author:** [@Naes0](https://discourse.nodered.org/u/Naes0)\
**Replies:** 0\
**Last updated:** [31 January 2019 06:42 UTC](https://discourse.nodered.org/t/preset-configuration-nodes/7420 "2019-01-31T06:42:19Z")

</div>

Is there a way to preset configuration nodes for node-red? I'm looking to set up a dev environment that has preset configuration nodes so its easy to pick configuration presents for different nodes. For example, the no…

---

## [\[Solved\] "Delayed" message creation using the delay node](https://discourse.nodered.org/t/solved-delayed-message-creation-using-the-delay-node/7415)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 1\
**Last updated:** [31 January 2019 02:11 UTC](https://discourse.nodered.org/t/solved-delayed-message-creation-using-the-delay-node/7415 "2019-01-31T02:11:28Z")

</div>

Sorry folks, this is a new one which has just presented itself to me: The delay node is nide if I want to send a second message a time after the first message is received. Here's the catch: Say I want to create a chai…

---

## [\[Solved\] Double triple press , simple RF remote](https://discourse.nodered.org/t/solved-double-triple-press-simple-rf-remote/7408)

<div class="topic-metadata">

**Author:** [@aihysp](https://discourse.nodered.org/u/aihysp)\
**Replies:** 2\
**Last updated:** [30 January 2019 21:37 UTC](https://discourse.nodered.org/t/solved-double-triple-press-simple-rf-remote/7408 "2019-01-30T21:37:30Z")

</div>

Hi can anyone give me an example for something that will count how many times my MQTT \> RF \> RF remote been pressed? so let's say in a time frame of two seconds, i press it twice, i will get an MQTT msg in Node, and i w…

---

## [Unable to test a custom node locally (npm link)](https://discourse.nodered.org/t/unable-to-test-a-custom-node-locally-npm-link/7403)

<div class="topic-metadata">

**Author:** [@Cesar.Cervantes](https://discourse.nodered.org/u/Cesar.Cervantes)\
**Replies:** 2\
**Last updated:** [30 January 2019 19:56 UTC](https://discourse.nodered.org/t/unable-to-test-a-custom-node-locally-npm-link/7403 "2019-01-30T19:56:59Z")

</div>

Hi, Environment: -Node 8.12.0 -npm 6.4.1 Win 10 I created a custom node following the template from the "Creating your first node" page. It can be installed just fine, but I'm also trying to use the "npm link" com…

---

## [Node-red configurations, connections](https://discourse.nodered.org/t/node-red-configurations-connections/7394)

<div class="topic-metadata">

**Author:** [@akhilendharreddy](https://discourse.nodered.org/u/akhilendharreddy)\
**Replies:** 0\
**Last updated:** [30 January 2019 12:44 UTC](https://discourse.nodered.org/t/node-red-configurations-connections/7394 "2019-01-30T12:44:56Z")

</div>

hi i have lot of flows in my project which are dealing with different db connections, in my local passwords are different and for production passwords are different, can i use config.json file and read all connection cre…

---

## [How to display localhost server in node red](https://discourse.nodered.org/t/how-to-display-localhost-server-in-node-red/7368)

<div class="topic-metadata">

**Author:** [@Varul92](https://discourse.nodered.org/u/Varul92)\
**Replies:** 10\
**Last updated:** [30 January 2019 13:42 UTC](https://discourse.nodered.org/t/how-to-display-localhost-server-in-node-red/7368 "2019-01-30T13:42:43Z")

</div>

Hello, I have made the local server using the ESP8266 web browser which is named as "192.168.1.110" and its is display the values of my sensor in the web browser also. Without using MQTT I want to display the data in d…

---

## [NPM update problem/question after installing a node (renamed topic)](https://discourse.nodered.org/t/npm-update-problem-question-after-installing-a-node-renamed-topic/7366)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 14\
**Last updated:** [30 January 2019 12:24 UTC](https://discourse.nodered.org/t/npm-update-problem-question-after-installing-a-node-renamed-topic/7366 "2019-01-30T12:24:45Z")

</div>

Well, I tried a couple of times to install it from the webpage. Failed. Timeout. Tried from the CLI/Terminal: pi@TimePi:~/.node-red $ npm install node-red-contrib-simpletime npm WARN node-red-project@0.0.1 No reposi…

---

## [\[Solved\] String delimiter setting for Mosquitto broker](https://discourse.nodered.org/t/solved-string-delimiter-setting-for-mosquitto-broker/7387)

<div class="topic-metadata">

**Author:** [@baqwas](https://discourse.nodered.org/u/baqwas)\
**Replies:** 1\
**Last updated:** [30 January 2019 02:06 UTC](https://discourse.nodered.org/t/solved-string-delimiter-setting-for-mosquitto-broker/7387 "2019-01-30T02:06:51Z")

</div>

Hello, This inquiry perhaps should be directed to the Mosquitto forum but I found that many reported "issues" there have been dormant for several months and hence need your indulgence here. I'm trying to get off the gro…

---

## [Using 2 msg.payload with an "if" structure](https://discourse.nodered.org/t/using-2-msg-payload-with-an-if-structure/7338)

<div class="topic-metadata">

**Author:** [@blackpi](https://discourse.nodered.org/u/blackpi)\
**Replies:** 4\
**Last updated:** [29 January 2019 21:28 UTC](https://discourse.nodered.org/t/using-2-msg-payload-with-an-if-structure/7338 "2019-01-29T21:28:19Z")

</div>

Hello, I am new here, I am trying to create a condition using mqtt nodes and openHAB nodes where if my openHAB item changes its state and I recieve the correct mqtt command it activates another mqtt command, but I don't …

---

## [Possible debug node status bug](https://discourse.nodered.org/t/possible-debug-node-status-bug/7352)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 4\
**Last updated:** [29 January 2019 20:27 UTC](https://discourse.nodered.org/t/possible-debug-node-status-bug/7352 "2019-01-29T20:27:35Z")

</div>

When a debug node is configured to display its msg.payload in the node status, it seems to exhibit a peculiar (buggy?) behavior. When the node's enable button is toggled, it sends a status message that can be caught by t…

---

## [Kv-read/write node doesn´t work](https://discourse.nodered.org/t/kv-read-write-node-doesn-t-work/7321)

<div class="topic-metadata">

**Author:** [@Dane809](https://discourse.nodered.org/u/Dane809)\
**Replies:** 10\
**Last updated:** [29 January 2019 17:00 UTC](https://discourse.nodered.org/t/kv-read-write-node-doesn-t-work/7321 "2019-01-29T17:00:35Z")

</div>

Hey guys, I want to write to the kv-write node. At the localhost (PC) I can read or write the values and everything works fine. At the IoT2040 nothing happens. I can´t read or write from/to the kv nodes. The node work a…

---

## [Node-red does not work -bind address](https://discourse.nodered.org/t/node-red-does-not-work-bind-address/7233)

<div class="topic-metadata">

**Author:** [@manal](https://discourse.nodered.org/u/manal)\
**Replies:** 15\
**Last updated:** [29 January 2019 10:45 UTC](https://discourse.nodered.org/t/node-red-does-not-work-bind-address/7233 "2019-01-29T10:45:30Z")

</div>

I run CoAP server (txthing) in raspberry pi, this server works on 0.0.0.0:5683 and I run node-red in the same device. when I run both at the same time, .. node-red doesnt work and there is error in the log "Error:bind …

---

## [File Node signal error by overwrite file](https://discourse.nodered.org/t/file-node-signal-error-by-overwrite-file/3495)

<div class="topic-metadata">

**Author:** [@NetHans](https://discourse.nodered.org/u/NetHans)\
**Replies:** 5\
**Last updated:** [29 January 2019 06:13 UTC](https://discourse.nodered.org/t/file-node-signal-error-by-overwrite-file/3495 "2019-01-29T06:13:44Z")

</div>

Hi, I have update my Node-RED from v0.18.7 to v.0.19.4. Since this update, the file node sometimes signal an error when I would like to write data to a file (overwrite). failed to write to file: Error: write after en…

---

## [Representing locations in worldmap](https://discourse.nodered.org/t/representing-locations-in-worldmap/7334)

<div class="topic-metadata">

**Author:** [@emspe](https://discourse.nodered.org/u/emspe)\
**Replies:** 2\
**Last updated:** [28 January 2019 17:26 UTC](https://discourse.nodered.org/t/representing-locations-in-worldmap/7334 "2019-01-28T17:26:32Z")

</div>

Hi, I tried below to map 2 locations in worldmap. But I couldn't see anything in my map :frowning: Kindly help me to figureout if i missed anything. I tried several times. :tired\_face: \[{"id":"b6759d10.50e8b","type":…

---

## [IoT Platform - Device Id (using variables)](https://discourse.nodered.org/t/iot-platform-device-id-using-variables/7333)

<div class="topic-metadata">

**Author:** [@sanserg](https://discourse.nodered.org/u/sanserg)\
**Replies:** 2\
**Last updated:** [28 January 2019 17:03 UTC](https://discourse.nodered.org/t/iot-platform-device-id-using-variables/7333 "2019-01-28T17:03:20Z")

</div>

Does anybody know how to use a global variable result in the IoTPlatform node device Id ? wish to use this var on Device Id parameter node var deviceId = msg.payload; global.set("deviceId", deviceId); node.warn("d…

---

## [Alexa Node Red to Viera TV](https://discourse.nodered.org/t/alexa-node-red-to-viera-tv/7318)

<div class="topic-metadata">

**Author:** [@mgguinne](https://discourse.nodered.org/u/mgguinne)\
**Replies:** 3\
**Last updated:** [28 January 2019 12:46 UTC](https://discourse.nodered.org/t/alexa-node-red-to-viera-tv/7318 "2019-01-28T12:46:53Z")

</div>

Hi, Hoping I can get your help with a simple issue. I have a configured both Alexa and Viera (node-red add-ons) and want to use Alexa to change the volume of my tv. I know I need the value "bri" but this needs to be se…

---

## [Node registration order](https://discourse.nodered.org/t/node-registration-order/6779)

<div class="topic-metadata">

**Author:** [@Lionel](https://discourse.nodered.org/u/Lionel)\
**Replies:** 8\
**Last updated:** [28 January 2019 12:03 UTC](https://discourse.nodered.org/t/node-registration-order/6779 "2019-01-28T12:03:22Z")

</div>

Hi, I have a specialized singleton node which needs to do a stuff, at the node registration , and then put the result in the flow. This result is expected by some other nodes, also at the node registration. So, the que…

---

## [How to simulate Arduino setup () {} and loop () {}](https://discourse.nodered.org/t/how-to-simulate-arduino-setup-and-loop/6865)

<div class="topic-metadata">

**Author:** [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Replies:** 3\
**Last updated:** [28 January 2019 12:01 UTC](https://discourse.nodered.org/t/how-to-simulate-arduino-setup-and-loop/6865 "2019-01-28T12:01:39Z")

</div>

Hi, thanks for kind help, I'm not hiding I'm new to Javascript, Nore Red, and I would prefer do everything I need much faster using Arduino code, but I need to adapt to progress and it's time to learn new language/syste…

---

## [Cryptomining Malware Infecting Node-RED servers](https://discourse.nodered.org/t/cryptomining-malware-infecting-node-red-servers/3454)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 14\
**Last updated:** [28 January 2019 10:52 UTC](https://discourse.nodered.org/t/cryptomining-malware-infecting-node-red-servers/3454 "2019-01-28T10:52:34Z")

</div>

Hi all, some of you will be aware that a few people have reported having their Node-RED servers infected by cryptomining malware. This can only happen if you have left a server exposed to the Internet in some way withou…

---

## [I need to change a character in msg.topic to something else](https://discourse.nodered.org/t/i-need-to-change-a-character-in-msg-topic-to-something-else/7319)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [27 January 2019 23:55 UTC](https://discourse.nodered.org/t/i-need-to-change-a-character-in-msg-topic-to-something-else/7319 "2019-01-27T23:55:40Z")

</div>

I have looked, but am confused, so am not confident to my options. The problem as it is now is like this: I have data coming in from different places. The msg.topic determines "who" sent it. I used the topic because …

---

## [(solved) Node-Red docker using another uid: error on adding packages](https://discourse.nodered.org/t/solved-node-red-docker-using-another-uid-error-on-adding-packages/7312)

<div class="topic-metadata">

**Author:** [@IoTPlay](https://discourse.nodered.org/u/IoTPlay)\
**Replies:** 2\
**Last updated:** [27 January 2019 20:13 UTC](https://discourse.nodered.org/t/solved-node-red-docker-using-another-uid-error-on-adding-packages/7312 "2019-01-27T20:13:30Z")

</div>

Hi, fired up a rpi, added docker. I deleted "pi" uid (sec reasons), added user "node-red" (uid = 1001), and group "node-red" (uid = 10050). The official node-red docker instructions warns when you delete use 1000, that y…

---

## [Use function multiple times](https://discourse.nodered.org/t/use-function-multiple-times/7280)

<div class="topic-metadata">

**Author:** [@KoenH](https://discourse.nodered.org/u/KoenH)\
**Replies:** 20\
**Last updated:** [27 January 2019 17:12 UTC](https://discourse.nodered.org/t/use-function-multiple-times/7280 "2019-01-27T17:12:01Z")

</div>

Hello, Is it possible to use a function that i created multiple times on different places? Or do i have to copy them to all instances that i want to use? already thanks!

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

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