# Latest

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

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

**Page:** 1182

---

## [Possible with Regex?](https://discourse.nodered.org/t/possible-with-regex/19672)

<div class="topic-metadata">

**Author:** [@nicedevil](https://discourse.nodered.org/u/nicedevil)\
**Replies:** 18\
**Last updated:** [29 December 2019 18:28 UTC](https://discourse.nodered.org/t/possible-with-regex/19672 "2019-12-29T18:28:17Z")

</div>

Hey guys, I never used regex expressions and only saw one in a Youtube guide where someone used one. Now I have a smart switch with 6 different states and I'm hoping I can get something done with regex expression inside…

---

## [PWM frequency on BeagleBone](https://discourse.nodered.org/t/pwm-frequency-on-beaglebone/19689)

<div class="topic-metadata">

**Author:** [@badfrogg](https://discourse.nodered.org/u/badfrogg)\
**Replies:** 5\
**Last updated:** [29 December 2019 17:59 UTC](https://discourse.nodered.org/t/pwm-frequency-on-beaglebone/19689 "2019-12-29T17:59:26Z")

</div>

Is there a method to control the PWM frequency form node-red running on BeagleBone Black? The Raspberry PI nodes have this but the BBB seems to have poor support for features like this. It suck because the BBB has a nice…

---

## [Npm install node-red-contrib-marantz-http results in exception](https://discourse.nodered.org/t/npm-install-node-red-contrib-marantz-http-results-in-exception/19660)

<div class="topic-metadata">

**Author:** [@wimtechniek](https://discourse.nodered.org/u/wimtechniek)\
**Replies:** 4\
**Last updated:** [29 December 2019 15:38 UTC](https://discourse.nodered.org/t/npm-install-node-red-contrib-marantz-http-results-in-exception/19660 "2019-12-29T15:38:19Z")

</div>

Hello, I tried to install node-red-contrib-marantz-http but it fails with the following exception; Versions 27 Dec 19:53:29 - \[info\] Node-RED version: v1.0.3 27 Dec 19:53:29 - \[info\] Node.js version: v12.14.0 27 De…

---

## [I2C Bus Nodes failed to install](https://discourse.nodered.org/t/i2c-bus-nodes-failed-to-install/19686)

<div class="topic-metadata">

**Author:** [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Replies:** 5\
**Last updated:** [29 December 2019 15:00 UTC](https://discourse.nodered.org/t/i2c-bus-nodes-failed-to-install/19686 "2019-12-29T15:00:16Z")

</div>

Hi, i tried to install 2 nodes, node-red-contrib-ads1x15 and node-red-contrib-brads-i2c-nodes. Both failed with a long error list, attached at the end. Both of them worked on Raspi 3. Now i made a image for my new Pi4…

---

## [Automation from YAML to Node-Red](https://discourse.nodered.org/t/automation-from-yaml-to-node-red/19703)

<div class="topic-metadata">

**Author:** [@AndreaSpadaGenova](https://discourse.nodered.org/u/AndreaSpadaGenova)\
**Replies:** 3\
**Last updated:** [29 December 2019 14:25 UTC](https://discourse.nodered.org/t/automation-from-yaml-to-node-red/19703 "2019-12-29T14:25:40Z")

</div>

Hi, here is a little yaml automation. I hope that someone can translate it in Node-Red to best understand how it works. The automation notify once a day via Telegram fi the tablet battery is below a minimal value. Furt…

---

## [Chatbot payload input timer - Switch till "?:?"](https://discourse.nodered.org/t/chatbot-payload-input-timer-switch-till/19706)

<div class="topic-metadata">

**Author:** [@Mobile\_NR\_Env](https://discourse.nodered.org/u/Mobile_NR_Env)\
**Replies:** 0\
**Last updated:** [29 December 2019 14:01 UTC](https://discourse.nodered.org/t/chatbot-payload-input-timer-switch-till/19706 "2019-12-29T14:01:00Z")

</div>

Hello! Whats the simplest route? I'm wanting a manually (time settable via chatbot) timer switch to pass payload message thru one output to trigger thermostat to a specific temp ie: 19\*C. Then trigger a second output …

---

## [Accessing payload from ui switch or button](https://discourse.nodered.org/t/accessing-payload-from-ui-switch-or-button/19693)

<div class="topic-metadata">

**Author:** [@chrisko](https://discourse.nodered.org/u/chrisko)\
**Replies:** 11\
**Last updated:** [29 December 2019 13:28 UTC](https://discourse.nodered.org/t/accessing-payload-from-ui-switch-or-button/19693 "2019-12-29T13:28:03Z")

</div>

Dear all, i'm very frustrated due to missing ideas how to read the payload from a switch or button. I tried like this in the function node: newmsg = {}; if (global.get("Available")===true && msg.payload.Night===true) {…

---

## [Feature: Add flow.$root for simplified access & add a context that allows for state to be only shared within a single node flow/series](https://discourse.nodered.org/t/feature-add-flow-root-for-simplified-access-add-a-context-that-allows-for-state-to-be-only-shared-within-a-single-node-flow-series/19611)

<div class="topic-metadata">

**Author:** [@niemyjski](https://discourse.nodered.org/u/niemyjski)\
**Replies:** 21\
**Last updated:** [29 December 2019 13:22 UTC](https://discourse.nodered.org/t/feature-add-flow-root-for-simplified-access-add-a-context-that-allows-for-state-to-be-only-shared-within-a-single-node-flow-series/19611 "2019-12-29T13:22:47Z")

</div>

This problem kind of reminds me of angular $scope and $rootscope.. The problem is I have generic sub flows that build on each other and once you get over two levels it becomes very hard to get at the parent, great grandp…

---

## [\`DELAY\` node - bug?](https://discourse.nodered.org/t/delay-node-bug/19705)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 5\
**Last updated:** [29 December 2019 11:42 UTC](https://discourse.nodered.org/t/delay-node-bug/19705 "2019-12-29T11:42:02Z")

</div>

I have put a delay node in a flow. For initial testing it was set to a 5 second delay. When triggered a blue dot would appear under it showing it is delaying the message. After development of the flow, I reduced it to…

---

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

---

## [Loop control in Template using Angular](https://discourse.nodered.org/t/loop-control-in-template-using-angular/19653)

<div class="topic-metadata">

**Author:** [@baqwas](https://discourse.nodered.org/u/baqwas)\
**Replies:** 2\
**Last updated:** [28 December 2019 01:12 UTC](https://discourse.nodered.org/t/loop-control-in-template-using-angular/19653 "2019-12-28T01:12:57Z")

</div>

Hello! I would like to loop over an array of fields (viz. sets of weather forecast data) in the Dashboard Template which is receiving the correct msg topic and payload (for my use). Unfortunately, my JavaScript knowledg…

---

## [Dashboard and sessionid / socketid - perhaps I misunderstood something](https://discourse.nodered.org/t/dashboard-and-sessionid-socketid-perhaps-i-misunderstood-something/19659)

<div class="topic-metadata">

**Author:** [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Replies:** 4\
**Last updated:** [27 December 2019 23:56 UTC](https://discourse.nodered.org/t/dashboard-and-sessionid-socketid-perhaps-i-misunderstood-something/19659 "2019-12-27T23:56:58Z")

</div>

Hello, I know it pays to RTFM. But just to be sure: Is it correct that the dashboard sends the socketid of a switch (for example) but if a message including a valid socketid is sent to this button all other connected bu…

---

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

---

## [Simple class property for all ui elements?](https://discourse.nodered.org/t/simple-class-property-for-all-ui-elements/19650)

<div class="topic-metadata">

**Author:** [@ryanrdetzel](https://discourse.nodered.org/u/ryanrdetzel)\
**Replies:** 1\
**Last updated:** [27 December 2019 21:11 UTC](https://discourse.nodered.org/t/simple-class-property-for-all-ui-elements/19650 "2019-12-27T21:11:31Z")

</div>

Could we get a class property for all elements that would easily allow us to target a particular element with a class name? So, for one button I could set the class to 'importantButton' and then just target that class in…

---

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

---

## [Is there a library to allow connection of HID from remote browser?](https://discourse.nodered.org/t/is-there-a-library-to-allow-connection-of-hid-from-remote-browser/19662)

<div class="topic-metadata">

**Author:** [@t-l-ray](https://discourse.nodered.org/u/t-l-ray)\
**Replies:** 0\
**Last updated:** [27 December 2019 19:58 UTC](https://discourse.nodered.org/t/is-there-a-library-to-allow-connection-of-hid-from-remote-browser/19662 "2019-12-27T19:58:49Z")

</div>

I'm guessing this probably doesn't exist but maybe? I'm wondering if there is a browser/node-red lib combo that I can combine to allow a server to talk to a HID device connected to a client PC. Chrome WebHID seems like t…

---

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

---

## [Send selected value from datalist](https://discourse.nodered.org/t/send-selected-value-from-datalist/19641)

<div class="topic-metadata">

**Author:** [@Andres](https://discourse.nodered.org/u/Andres)\
**Replies:** 0\
**Last updated:** [27 December 2019 12:43 UTC](https://discourse.nodered.org/t/send-selected-value-from-datalist/19641 "2019-12-27T12:43:02Z")

</div>

Hi! as the title indicates i want to send the selected value from a datalist when the user selects one of the options, all this using the template node and not the dropdown node, because with the datalist (and an input) …

---

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

---

## [Print out problem](https://discourse.nodered.org/t/print-out-problem/16245)

<div class="topic-metadata">

**Author:** [@PaulL](https://discourse.nodered.org/u/PaulL)\
**Replies:** 4\
**Last updated:** [3 October 2019 09:46 UTC](https://discourse.nodered.org/t/print-out-problem/16245 "2019-10-03T09:46:44Z")

</div>

Hi, I don't understand how to print a table in pdf or on a printer. The table collects information collected from a mysql database. Thanks

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

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