# General

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

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

**Page:** 813

---

## [Is there a way to externalize mongodb connection info](https://discourse.nodered.org/t/is-there-a-way-to-externalize-mongodb-connection-info/15012)

<div class="topic-metadata">

**Author:** [@johnlongo](https://discourse.nodered.org/u/johnlongo)\
**Replies:** 26\
**Last updated:** [28 December 2019 08:39 UTC](https://discourse.nodered.org/t/is-there-a-way-to-externalize-mongodb-connection-info/15012 "2019-12-28T08:39:16Z")

</div>

Is there a way to externalize mongodb connection info?

---

## [\`template\` node. Not understanding all that is written](https://discourse.nodered.org/t/template-node-not-understanding-all-that-is-written/19670)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 36\
**Last updated:** [28 December 2019 20:28 UTC](https://discourse.nodered.org/t/template-node-not-understanding-all-that-is-written/19670 "2019-12-28T20:28:48Z")

</div>

Ok, a recent conversation I was in mentioned the template node. After that, I looked at the node's info. I don't understand: It is possible to use a property from the flow context or global context. Just use {{flow.n…

---

## [Counter problem](https://discourse.nodered.org/t/counter-problem/19687)

<div class="topic-metadata">

**Author:** [@bigmac5753](https://discourse.nodered.org/u/bigmac5753)\
**Replies:** 2\
**Last updated:** [28 December 2019 20:24 UTC](https://discourse.nodered.org/t/counter-problem/19687 "2019-12-28T20:24:57Z")

</div>

I am having issues setting up a sequence and would appreciate some help. I have a hue dimmer and would like to achieve the following: first press - turn light on 5% second press - 25% third press - 45% fourth press …

---

## [Mqtt broker. Payed or is it safe to open a port to public?](https://discourse.nodered.org/t/mqtt-broker-payed-or-is-it-safe-to-open-a-port-to-public/19679)

<div class="topic-metadata">

**Author:** [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Replies:** 6\
**Last updated:** [28 December 2019 19:13 UTC](https://discourse.nodered.org/t/mqtt-broker-payed-or-is-it-safe-to-open-a-port-to-public/19679 "2019-12-28T19:13:46Z")

</div>

Hi! Not directly a NR related question but i only use mqtt with Nodered I want to do things with mqtt outside my house. Is it safe to open a public port or is it more safe to use a payed service?? Anyone experience wit…

---

## [Node-red not starting in ubuntu](https://discourse.nodered.org/t/node-red-not-starting-in-ubuntu/17038)

<div class="topic-metadata">

**Author:** [@Sagarlambat](https://discourse.nodered.org/u/Sagarlambat)\
**Replies:** 10\
**Last updated:** [28 December 2019 14:32 UTC](https://discourse.nodered.org/t/node-red-not-starting-in-ubuntu/17038 "2019-12-28T14:32:56Z")

</div>

Hello guys, I'am trying to start node-red in Ubuntu but it is unable to start and giving the following message whenever i run the command "node-red". It ran once when i installed it but all of sudden it crashed. admin…

---

## [Upgrading Node-RED on Heroku?](https://discourse.nodered.org/t/upgrading-node-red-on-heroku/19612)

<div class="topic-metadata">

**Author:** [@nicholas](https://discourse.nodered.org/u/nicholas)\
**Replies:** 4\
**Last updated:** [27 December 2019 23:29 UTC](https://discourse.nodered.org/t/upgrading-node-red-on-heroku/19612 "2019-12-27T23:29:09Z")

</div>

Hi guys! At my company, I maintain a Node-RED 0.18.4 instance that's hosted on Heroku \[I didn't do the initial install\]. I'd like to upgrade this instance to the current Node-RED version. What's the best way to go abo…

---

## [First post! Embedding payload into a formatted message](https://discourse.nodered.org/t/first-post-embedding-payload-into-a-formatted-message/19668)

<div class="topic-metadata">

**Author:** [@Mobile\_NR\_Env](https://discourse.nodered.org/u/Mobile_NR_Env)\
**Replies:** 3\
**Last updated:** [27 December 2019 22:35 UTC](https://discourse.nodered.org/t/first-post-embedding-payload-into-a-formatted-message/19668 "2019-12-27T22:35:15Z")

</div>

First of all. Node Red. What a game changer! Loving it. Can someone help? I'd like to know how to embed the payload message from "soc" (Battery state of charge) sensor in HA. Sensor returns msg.payload "97.7" (as an e…

---

## [Linux cloud service](https://discourse.nodered.org/t/linux-cloud-service/16797)

<div class="topic-metadata">

**Author:** [@royag](https://discourse.nodered.org/u/royag)\
**Replies:** 33\
**Last updated:** [27 December 2019 20:45 UTC](https://discourse.nodered.org/t/linux-cloud-service/16797 "2019-12-27T20:45:27Z")

</div>

Hello, I'm looking for an online provider that offers Linux in the cloud. I would like to install on this server nodered and mosquitto. I can also put my own Raspberry online, but I want the availability and security of …

---

## [Synology NodeRed Docker Zigbee Stick?](https://discourse.nodered.org/t/synology-nodered-docker-zigbee-stick/19664)

<div class="topic-metadata">

**Author:** [@peter\_pan](https://discourse.nodered.org/u/peter_pan)\
**Replies:** 0\
**Last updated:** [27 December 2019 20:35 UTC](https://discourse.nodered.org/t/synology-nodered-docker-zigbee-stick/19664 "2019-12-27T20:35:27Z")

</div>

I installed NodeRed in Docker on my Synology. I would like to use a Zigbee Stick in Node Red. What do I have to enter in the Docker that I can use the stick?

---

## [Template/Mustache node not encode to html anymore](https://discourse.nodered.org/t/template-mustache-node-not-encode-to-html-anymore/19654)

<div class="topic-metadata">

**Author:** [@Andydesjardins](https://discourse.nodered.org/u/Andydesjardins)\
**Replies:** 7\
**Last updated:** [27 December 2019 19:37 UTC](https://discourse.nodered.org/t/template-mustache-node-not-encode-to-html-anymore/19654 "2019-12-27T19:37:06Z")

</div>

Hello guys, Is it just me but the template/mustache node doesn't encode special chars to html anymore? It was working previously. \[{"id":"69d3d7db.2f3468","type":"inject","z":"aacc5666.3ef618","name":"","topic":"","pay…

---

## [Getting Digital I/O from a modbus TCP device](https://discourse.nodered.org/t/getting-digital-i-o-from-a-modbus-tcp-device/19442)

<div class="topic-metadata">

**Author:** [@adk\_MechETech](https://discourse.nodered.org/u/adk_MechETech)\
**Replies:** 22\
**Last updated:** [27 December 2019 18:54 UTC](https://discourse.nodered.org/t/getting-digital-i-o-from-a-modbus-tcp-device/19442 "2019-12-27T18:54:23Z")

</div>

I am very new to Node-Red, however I have been a controls engineer working with PLCs and other hardware for almost 10 years now. I am very familiar with the hardware and communication side of things, and less familiar w…

---

## [Extract object from a node](https://discourse.nodered.org/t/extract-object-from-a-node/19638)

<div class="topic-metadata">

**Author:** [@debouttek](https://discourse.nodered.org/u/debouttek)\
**Replies:** 3\
**Last updated:** [27 December 2019 16:29 UTC](https://discourse.nodered.org/t/extract-object-from-a-node/19638 "2019-12-27T16:29:12Z")

</div>

Hi Is there a way to extract an object? I only need the 26.316 not the text DISTANCE:

---

## [Optimize my flow for reusing](https://discourse.nodered.org/t/optimize-my-flow-for-reusing/19642)

<div class="topic-metadata">

**Author:** [@pvanklink](https://discourse.nodered.org/u/pvanklink)\
**Replies:** 6\
**Last updated:** [27 December 2019 15:02 UTC](https://discourse.nodered.org/t/optimize-my-flow-for-reusing/19642 "2019-12-27T15:02:37Z")

</div>

Hi i need some help for optimizing a working flow. I made a flow that checks my domoticz service by checking responce from a zwave device when it responces its ok, if not, i send a pushover message and restart the serv…

---

## [NodeRed not finding Git](https://discourse.nodered.org/t/nodered-not-finding-git/19647)

<div class="topic-metadata">

**Author:** [@MarcMarc2006](https://discourse.nodered.org/u/MarcMarc2006)\
**Replies:** 4\
**Last updated:** [27 December 2019 14:23 UTC](https://discourse.nodered.org/t/nodered-not-finding-git/19647 "2019-12-27T14:23:50Z")

</div>

Hi, I am new to NodeRed and I am trying to enable the projects. But I have a problem. I modified the setings.js file and downloaded Git but it is still writing "P roject disabled: Git command not found". Please Help :fr…

---

## [SELECT from SQL into variable](https://discourse.nodered.org/t/select-from-sql-into-variable/19605)

<div class="topic-metadata">

**Author:** [@kajoty](https://discourse.nodered.org/u/kajoty)\
**Replies:** 6\
**Last updated:** [27 December 2019 12:02 UTC](https://discourse.nodered.org/t/select-from-sql-into-variable/19605 "2019-12-27T12:02:44Z")

</div>

Hello. I need again some help with SQL and NR. I've stored some temp datas into a SQL db. Now I want to "ask" the db for the latest temp. The db is like this column "1" = AUTO\_INCREMENT column "temperature\_C" = the …

---

## [SIEMENS IOT Gateway I/O Module Node](https://discourse.nodered.org/t/siemens-iot-gateway-i-o-module-node/19634)

<div class="topic-metadata">

**Author:** [@wschua](https://discourse.nodered.org/u/wschua)\
**Replies:** 0\
**Last updated:** [27 December 2019 09:29 UTC](https://discourse.nodered.org/t/siemens-iot-gateway-i-o-module-node/19634 "2019-12-27T09:29:46Z")

</div>

Hello all, I am unable to find the nodes for the SIEMENS IOT Gateway I/O Module Node for the following add on for the SIEMENS IOT Gateway: SIMATIC IOT2000, Input Modul sink/source, 10x DI, ARDUINO Shield for SIMATIC IO…

---

## [Node Red Outputs Lits](https://discourse.nodered.org/t/node-red-outputs-lits/19630)

<div class="topic-metadata">

**Author:** [@KELVINHAN95](https://discourse.nodered.org/u/KELVINHAN95)\
**Replies:** 1\
**Last updated:** [27 December 2019 07:43 UTC](https://discourse.nodered.org/t/node-red-outputs-lits/19630 "2019-12-27T07:43:59Z")

</div>

Other than msg.topic, msg.payload, msg.reset, what other form of outputs are there?

---

## [Node-RED working on Raspberri Pi but not on PC!](https://discourse.nodered.org/t/node-red-working-on-raspberri-pi-but-not-on-pc/19592)

<div class="topic-metadata">

**Author:** [@saeed1](https://discourse.nodered.org/u/saeed1)\
**Replies:** 2\
**Last updated:** [26 December 2019 19:50 UTC](https://discourse.nodered.org/t/node-red-working-on-raspberri-pi-but-not-on-pc/19592 "2019-12-26T19:50:38Z")

</div>

I am reading data of a humidity sensor with Node-RED I am using Arduino Uno + Ethernet shield to publish data by using mqtt. I am publishing data after each 3 seconds. Data is just single value like 30 I am us…

---

## [Save a daily csv file of sensor data](https://discourse.nodered.org/t/save-a-daily-csv-file-of-sensor-data/19562)

<div class="topic-metadata">

**Author:** [@YairHach](https://discourse.nodered.org/u/YairHach)\
**Replies:** 5\
**Last updated:** [26 December 2019 19:45 UTC](https://discourse.nodered.org/t/save-a-daily-csv-file-of-sensor-data/19562 "2019-12-26T19:45:32Z")

</div>

Hey, I connected 2 xiaomi temp sensors to my Node-RED. They send a msg every 30 min, i want to save the data to a csv file and "close" the file every day. Every timestamp with data get a row in the csv with the same h…

---

## [Change node credentials at runtime](https://discourse.nodered.org/t/change-node-credentials-at-runtime/19590)

<div class="topic-metadata">

**Author:** [@alexkn](https://discourse.nodered.org/u/alexkn)\
**Replies:** 1\
**Last updated:** [26 December 2019 10:14 UTC](https://discourse.nodered.org/t/change-node-credentials-at-runtime/19590 "2019-12-26T10:14:18Z")

</div>

In my node I use an API with OAuth authentication. I save the refresh token in the node credentials. When the access token is refreshed, the API also returns a new refresh token. How can I save the new refresh token i…

---

## [How to input message and display it](https://discourse.nodered.org/t/how-to-input-message-and-display-it/19580)

<div class="topic-metadata">

**Author:** [@KELVINHAN95](https://discourse.nodered.org/u/KELVINHAN95)\
**Replies:** 2\
**Last updated:** [26 December 2019 08:56 UTC](https://discourse.nodered.org/t/how-to-input-message-and-display-it/19580 "2019-12-26T08:56:57Z")

</div>

Hi, I need help to create a flow for the one highlighted in yellow. Basically, when my guy click on the "stop", first a pop up message will as, ARE YOU SURE? Then, If my guy click "yes" to the previous output, another…

---

## [Kismet to NodeRed](https://discourse.nodered.org/t/kismet-to-nodered/19587)

<div class="topic-metadata">

**Author:** [@serine8](https://discourse.nodered.org/u/serine8)\
**Replies:** 1\
**Last updated:** [26 December 2019 08:23 UTC](https://discourse.nodered.org/t/kismet-to-nodered/19587 "2019-12-26T08:23:36Z")

</div>

I want to build an web UI from kismet log and want to use node red, do you have any idea how to do it?

---

## [Can I use node-red in product? Should I need to buy some licenses?](https://discourse.nodered.org/t/can-i-use-node-red-in-product-should-i-need-to-buy-some-licenses/19585)

<div class="topic-metadata">

**Author:** [@nimish21](https://discourse.nodered.org/u/nimish21)\
**Replies:** 1\
**Last updated:** [26 December 2019 07:02 UTC](https://discourse.nodered.org/t/can-i-use-node-red-in-product-should-i-need-to-buy-some-licenses/19585 "2019-12-26T07:02:12Z")

</div>

Hello, I am creating an IOT Industrial Product, I need to program the device using Node-Red can I use the node-red for the production and product?

---

## [Bugs in node-red-contrib-huemagic 2.1.0](https://discourse.nodered.org/t/bugs-in-node-red-contrib-huemagic-2-1-0/19576)

<div class="topic-metadata">

**Author:** [@parasaurolophus](https://discourse.nodered.org/u/parasaurolophus)\
**Replies:** 0\
**Last updated:** [25 December 2019 16:38 UTC](https://discourse.nodered.org/t/bugs-in-node-red-contrib-huemagic-2-1-0/19576 "2019-12-25T16:38:04Z")

</div>

Latest release caused all my existing hue-related flows to break due to no longer forwarding events. I was able to fix this for flows that use group nodes by reconfiguring all existing nodes. Work-around was to check t…

---

## [How can I use node red node in contrib node](https://discourse.nodered.org/t/how-can-i-use-node-red-node-in-contrib-node/19570)

<div class="topic-metadata">

**Author:** [@kiran007](https://discourse.nodered.org/u/kiran007)\
**Replies:** 0\
**Last updated:** [25 December 2019 10:55 UTC](https://discourse.nodered.org/t/how-can-i-use-node-red-node-in-contrib-node/19570 "2019-12-25T10:55:57Z")

</div>

Hi, I created data required for http request in one contrib node and in same code I want request to server. I tried with "request" library it is working, but it requires extra library to install with npm. Thanks

---

## [Working with context in function nodes](https://discourse.nodered.org/t/working-with-context-in-function-nodes/19567)

<div class="topic-metadata">

**Author:** [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Replies:** 4\
**Last updated:** [25 December 2019 10:29 UTC](https://discourse.nodered.org/t/working-with-context-in-function-nodes/19567 "2019-12-25T10:29:12Z")

</div>

While working/writing code in some function nodes, it just came to my mind that I'm missing a method/function I have some code that is used in a simulator that runs several iterations and I would like it to start "clean…

---

## [How to add \\0x1A (EOF) in inject node](https://discourse.nodered.org/t/how-to-add-0x1a-eof-in-inject-node/19549)

<div class="topic-metadata">

**Author:** [@AungKL](https://discourse.nodered.org/u/AungKL)\
**Replies:** 2\
**Last updated:** [25 December 2019 06:54 UTC](https://discourse.nodered.org/t/how-to-add-0x1a-eof-in-inject-node/19549 "2019-12-25T06:54:02Z")

</div>

Hello, I'm writing a code for sending SMS with Raspberry Pi and GSM USB dongle. I have a problem with inject node in writing a EOF character in JSON format. The flow is as follow: \[{"id":"d8eb11d.efd40f","type":"tab",…

---

## [Help with how to create messages with \`inject\` node](https://discourse.nodered.org/t/help-with-how-to-create-messages-with-inject-node/19564)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 4\
**Last updated:** [24 December 2019 23:30 UTC](https://discourse.nodered.org/t/help-with-how-to-create-messages-with-inject-node/19564 "2019-12-24T23:30:11Z")

</div>

Usually the inject node injects stuff in msg.payload. You can edit the topic in another field. Just because I want to optimise node usage: Is there a way to make the inject node send a msg.flush message? I'm guessing…

---

## [CSV read is adding spaces - How to Stop](https://discourse.nodered.org/t/csv-read-is-adding-spaces-how-to-stop/19552)

<div class="topic-metadata">

**Author:** [@Brew](https://discourse.nodered.org/u/Brew)\
**Replies:** 3\
**Last updated:** [24 December 2019 22:58 UTC](https://discourse.nodered.org/t/csv-read-is-adding-spaces-how-to-stop/19552 "2019-12-24T22:58:35Z")

</div>

Hi there forum, can someone help me I'm trying to execute a CSV file to control / change my NeoPixels all connected to my Raspberry Pi. When I read out the CSV file each line bar the last has a space added to the end of…

---

## [Node-RED stops publishing and Subsribing](https://discourse.nodered.org/t/node-red-stops-publishing-and-subsribing/19540)

<div class="topic-metadata">

**Author:** [@saeed1](https://discourse.nodered.org/u/saeed1)\
**Replies:** 6\
**Last updated:** [24 December 2019 20:59 UTC](https://discourse.nodered.org/t/node-red-stops-publishing-and-subsribing/19540 "2019-12-24T20:59:49Z")

</div>

I am controlling an led with a push button. It works fine manually. Then i controlled it by using node-RED . It works also fine for 40 seconds, after it Node-RED becomes unfunctional. I am running mosquitto and Node-RED …

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

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