# Latest

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

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

**Page:** 1048

---

## [Rain volume using totaliser node](https://discourse.nodered.org/t/rain-volume-using-totaliser-node/29733)

<div class="topic-metadata">

**Author:** [@mshaz](https://discourse.nodered.org/u/mshaz)\
**Replies:** 2\
**Last updated:** [9 July 2020 16:18 UTC](https://discourse.nodered.org/t/rain-volume-using-totaliser-node/29733 "2020-07-09T16:18:37Z")

</div>

Hi, I am a newbie. I m not sure if this is the correct way to use totaliser node for rain volume last 1 hour and 24 hours but the main issue here is that the rain sensor has a stored value of previous rain amount and to…

---

## [Users sharing flows](https://discourse.nodered.org/t/users-sharing-flows/29797)

<div class="topic-metadata">

**Author:** [@ddelapasse](https://discourse.nodered.org/u/ddelapasse)\
**Replies:** 3\
**Last updated:** [9 July 2020 16:13 UTC](https://discourse.nodered.org/t/users-sharing-flows/29797 "2020-07-09T16:13:14Z")

</div>

Hi, Still really new to this, but trying to figure out how we can add some locking to prevent multiple users from overwriting the same flow. This would be for small teams who maybe be working/viewing "team flows". I k…

---

## [Text Entry-Numberic Keypad only on iOS](https://discourse.nodered.org/t/text-entry-numberic-keypad-only-on-ios/29791)

<div class="topic-metadata">

**Author:** [@sweetwater](https://discourse.nodered.org/u/sweetwater)\
**Replies:** 2\
**Last updated:** [9 July 2020 15:00 UTC](https://discourse.nodered.org/t/text-entry-numberic-keypad-only-on-ios/29791 "2020-07-09T15:00:48Z")

</div>

On the NodeRed Dashboard. We are using the Text Input to allow user input a phone number. All works well. We have set the Text Input mode = phone also numbers. However on iOs ( iPad) it does not trigger the Numeric o…

---

## [Dwell time in node-red](https://discourse.nodered.org/t/dwell-time-in-node-red/29788)

<div class="topic-metadata">

**Author:** [@qmf](https://discourse.nodered.org/u/qmf)\
**Replies:** 1\
**Last updated:** [9 July 2020 13:13 UTC](https://discourse.nodered.org/t/dwell-time-in-node-red/29788 "2020-07-09T13:13:34Z")

</div>

Hello, Does anyone know how could I get my dwell time on nodered? Thank you! Q.

---

## [JSON Parse Error converts the msg object to string](https://discourse.nodered.org/t/json-parse-error-converts-the-msg-object-to-string/29747)

<div class="topic-metadata">

**Author:** [@mikeh](https://discourse.nodered.org/u/mikeh)\
**Replies:** 1\
**Last updated:** [9 July 2020 12:48 UTC](https://discourse.nodered.org/t/json-parse-error-converts-the-msg-object-to-string/29747 "2020-07-09T12:48:21Z")

</div>

I'm using the http request node and sometimes I get this error "JSON Parse Error", maybe because the server is down or something. But whenever that happens the node converts the msg object to a string. Thus losing all th…

---

## [Show status from webpages in Dashboard with colors](https://discourse.nodered.org/t/show-status-from-webpages-in-dashboard-with-colors/29783)

<div class="topic-metadata">

**Author:** [@grawsom](https://discourse.nodered.org/u/grawsom)\
**Replies:** 0\
**Last updated:** [9 July 2020 12:46 UTC](https://discourse.nodered.org/t/show-status-from-webpages-in-dashboard-with-colors/29783 "2020-07-09T12:46:08Z")

</div>

Hello - this is new to me about asking for help (not good at it), but I'm stuck. I have made some Node-red stuff, where I monitor some webpages for status information. Here is a sample of my flow. \[{"id":"b45c1a1.2b56…

---

## [Display of environment values in subflows a bit strange](https://discourse.nodered.org/t/display-of-environment-values-in-subflows-a-bit-strange/29779)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 2\
**Last updated:** [9 July 2020 12:36 UTC](https://discourse.nodered.org/t/display-of-environment-values-in-subflows-a-bit-strange/29779 "2020-07-09T12:36:06Z")

</div>

I'm getting confused when adding and deleting environment variables in subflows So I add this one in but it doesn't appear on this screen Then if I delete it it disappears from this screen but now appears on…

---

## [How to revert node-red to previous version](https://discourse.nodered.org/t/how-to-revert-node-red-to-previous-version/29655)

<div class="topic-metadata">

**Author:** [@Dave](https://discourse.nodered.org/u/Dave)\
**Replies:** 12\
**Last updated:** [9 July 2020 12:16 UTC](https://discourse.nodered.org/t/how-to-revert-node-red-to-previous-version/29655 "2020-07-09T12:16:08Z")

</div>

I updated my main raspberry pi4 to node-red 1.1.0 but I would like to revert back to 1.0.3 how would I do that, please.

---

## [Orchestrate microservices](https://discourse.nodered.org/t/orchestrate-microservices/29777)

<div class="topic-metadata">

**Author:** [@lisandro](https://discourse.nodered.org/u/lisandro)\
**Replies:** 4\
**Last updated:** [9 July 2020 11:45 UTC](https://discourse.nodered.org/t/orchestrate-microservices/29777 "2020-07-09T11:45:14Z")

</div>

Hello, I am analyzing some tools in order to orchestrate some microservices, so as to guarantee a synchronous process between all of them. Does node-red work for this purpose? Kind regards

---

## [Display 2 extracts from influxdb in an UI-Chart](https://discourse.nodered.org/t/display-2-extracts-from-influxdb-in-an-ui-chart/29665)

<div class="topic-metadata">

**Author:** [@JungeG](https://discourse.nodered.org/u/JungeG)\
**Replies:** 15\
**Last updated:** [9 July 2020 11:29 UTC](https://discourse.nodered.org/t/display-2-extracts-from-influxdb-in-an-ui-chart/29665 "2020-07-09T11:29:30Z")

</div>

Hi! I am extracting the power consumption and the power consumption within the last hour from an influxdb. the flow looks like: After the extract is formated i get 2 arrays of the object: With the Chart node I ca…

---

## [Issues using new token attribute in AdminAuth](https://discourse.nodered.org/t/issues-using-new-token-attribute-in-adminauth/29588)

<div class="topic-metadata">

**Author:** [@crackytsi](https://discourse.nodered.org/u/crackytsi)\
**Replies:** 8\
**Last updated:** [9 July 2020 11:29 UTC](https://discourse.nodered.org/t/issues-using-new-token-attribute-in-adminauth/29588 "2020-07-09T11:29:09Z")

</div>

Hi, I try to authenticate admins based on a header variable using new tokens feature of nodered 1.1. Here some sample code in settings.js, but unforunately this does not work. It just displays the login dialog, without…

---

## [How to start/stop a node in nodered from nodejs application](https://discourse.nodered.org/t/how-to-start-stop-a-node-in-nodered-from-nodejs-application/29774)

<div class="topic-metadata">

**Author:** [@arunkumarshan](https://discourse.nodered.org/u/arunkumarshan)\
**Replies:** 1\
**Last updated:** [9 July 2020 11:13 UTC](https://discourse.nodered.org/t/how-to-start-stop-a-node-in-nodered-from-nodejs-application/29774 "2020-07-09T11:13:06Z")

</div>

Hi, We have a requirement to load all flows details created in nodered from external like using angularjs /nodejs, also to start /stop the node (inject node) from outside nodered. I have referred https://nodered.org/do…

---

## [Unexpected end of JSON input error](https://discourse.nodered.org/t/unexpected-end-of-json-input-error/29661)

<div class="topic-metadata">

**Author:** [@steven\_191](https://discourse.nodered.org/u/steven_191)\
**Replies:** 14\
**Last updated:** [9 July 2020 10:08 UTC](https://discourse.nodered.org/t/unexpected-end-of-json-input-error/29661 "2020-07-09T10:08:49Z")

</div>

I have an ESP based device operating fine. It sends two MQTT messages to node red running on a pi zero. The first message comes in and goes through a JSON node to convert from a string to JSON object. The second messag…

---

## [MQTT Change group background color](https://discourse.nodered.org/t/mqtt-change-group-background-color/29773)

<div class="topic-metadata">

**Author:** [@Nitr0](https://discourse.nodered.org/u/Nitr0)\
**Replies:** 0\
**Last updated:** [9 July 2020 10:05 UTC](https://discourse.nodered.org/t/mqtt-change-group-background-color/29773 "2020-07-09T10:05:42Z")

</div>

Hey! I'm currently getting MQTT data to node red. But i'd like to change "Groups" background color when MQTT says i.e "false", tried multiple ways via javascript. Seems that it can't handle "if" statement, or i'm just d…

---

## [Dynamically create/run function node](https://discourse.nodered.org/t/dynamically-create-run-function-node/29770)

<div class="topic-metadata">

**Author:** [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Replies:** 2\
**Last updated:** [9 July 2020 09:53 UTC](https://discourse.nodered.org/t/dynamically-create-run-function-node/29770 "2020-07-09T09:53:04Z")

</div>

Dear nodered users, I am actually creating a program where the users will create a text file based code of any javascript code, and this file will be loaded on our nodered. Is there anyway to run that pre-created javas…

---

## [Performing complete document updates correctly on mongodb](https://discourse.nodered.org/t/performing-complete-document-updates-correctly-on-mongodb/29723)

<div class="topic-metadata">

**Author:** [@freddyrm](https://discourse.nodered.org/u/freddyrm)\
**Replies:** 2\
**Last updated:** [9 July 2020 09:51 UTC](https://discourse.nodered.org/t/performing-complete-document-updates-correctly-on-mongodb/29723 "2020-07-09T09:51:38Z")

</div>

Hello, I am new to node-red and Mongo interactions and I am having trouble finding some clear examples of how to perform an update over a document. I have a constant stream of data coming in my flow, that comes from di…

---

## [Access a global variable from "node-red-contrib-fs-ops" node](https://discourse.nodered.org/t/access-a-global-variable-from-node-red-contrib-fs-ops-node/29348)

<div class="topic-metadata">

**Author:** [@Jude.Robise](https://discourse.nodered.org/u/Jude.Robise)\
**Replies:** 11\
**Last updated:** [9 July 2020 09:10 UTC](https://discourse.nodered.org/t/access-a-global-variable-from-node-red-contrib-fs-ops-node/29348 "2020-07-09T09:10:54Z")

</div>

Dear all, Just a quick help, How should I access global variables from this file node? I have created a global variable already by global.set already. Just wanna get those value to node-red-contrib-fs-ops file move nod…

---

## [Can't install "OpenZWave" module](https://discourse.nodered.org/t/cant-install-openzwave-module/29762)

<div class="topic-metadata">

**Author:** [@vp2021](https://discourse.nodered.org/u/vp2021)\
**Replies:** 2\
**Last updated:** [9 July 2020 07:58 UTC](https://discourse.nodered.org/t/cant-install-openzwave-module/29762 "2020-07-09T07:58:46Z")

</div>

Hello, I want to use the "Open-ZWave" module in Node-RED. I went to the installation directory of Node-RED, and used the following command: $ npm install node-red-contrib-openzwave I have this mistake: The install…

---

## [Configure docker file to up node-red](https://discourse.nodered.org/t/configure-docker-file-to-up-node-red/29767)

<div class="topic-metadata">

**Author:** [@emicjed](https://discourse.nodered.org/u/emicjed)\
**Replies:** 0\
**Last updated:** [9 July 2020 07:58 UTC](https://discourse.nodered.org/t/configure-docker-file-to-up-node-red/29767 "2020-07-09T07:58:29Z")

</div>

Hello, I was given the task of placing node red using IBM Cloud kubernates cluster. At the moment, I think I was able to create a cluster, add the configured node.js image to it, and install node-red to it. Unfortunately…

---

## [Convert UDP to initial value](https://discourse.nodered.org/t/convert-udp-to-initial-value/29758)

<div class="topic-metadata">

**Author:** [@abedgarr](https://discourse.nodered.org/u/abedgarr)\
**Replies:** 1\
**Last updated:** [9 July 2020 05:57 UTC](https://discourse.nodered.org/t/convert-udp-to-initial-value/29758 "2020-07-09T05:57:28Z")

</div>

Good day, I have had little use with node red, currently I am using it to send and receive simulink values to node red. My query is, I am sending a constant with number 1, from simulink to the UDP output, how could I co…

---

## [Two real time series chart](https://discourse.nodered.org/t/two-real-time-series-chart/29647)

<div class="topic-metadata">

**Author:** [@apex](https://discourse.nodered.org/u/apex)\
**Replies:** 6\
**Last updated:** [9 July 2020 05:13 UTC](https://discourse.nodered.org/t/two-real-time-series-chart/29647 "2020-07-09T05:13:11Z")

</div>

i find this example. https://flows.nodered.org/flow/36f2de38ed4bb62cf3a5e8fdc76d779e but can some explain why? many thanks

---

## [Using Function node to format date in YYYY-MM-DD](https://discourse.nodered.org/t/using-function-node-to-format-date-in-yyyy-mm-dd/1587)

<div class="topic-metadata">

**Author:** [@bidyutper](https://discourse.nodered.org/u/bidyutper)\
**Replies:** 4\
**Last updated:** [25 September 2019 19:41 UTC](https://discourse.nodered.org/t/using-function-node-to-format-date-in-yyyy-mm-dd/1587 "2019-09-25T19:41:38Z")

</div>

Hi, how to format In YYYY-MM-DD using function node Found a Js function for the same: function convert(str) { var mnths = { Jan:"01", Feb:"02", Mar:"03", Apr:"04", May:"05", Jun:"06", Jul:"07", Aug:"08", Sep:"09", O…

---

## [What kind of best way to send a image file to Node-RED](https://discourse.nodered.org/t/what-kind-of-best-way-to-send-a-image-file-to-node-red/29280)

<div class="topic-metadata">

**Author:** [@Timon](https://discourse.nodered.org/u/Timon)\
**Replies:** 2\
**Last updated:** [9 July 2020 00:23 UTC](https://discourse.nodered.org/t/what-kind-of-best-way-to-send-a-image-file-to-node-red/29280 "2020-07-09T00:23:05Z")

</div>

Hello there, I want to save a image file from device to DB with Node-RED. So i create flows as below inside Node-RED. create node 'http in' create node 'template' create node 'debug' I am wondering how do i pick eac…

---

## [Average function](https://discourse.nodered.org/t/average-function/29745)

<div class="topic-metadata">

**Author:** [@lalo](https://discourse.nodered.org/u/lalo)\
**Replies:** 1\
**Last updated:** [9 July 2020 00:21 UTC](https://discourse.nodered.org/t/average-function/29745 "2020-07-09T00:21:17Z")

</div>

Hi, I'm trying to make a function to read 40 times and with the 40 values make and average every second and then send the msg.paylod some help please

---

## [Node-red ui-table not working on IBM cloud](https://discourse.nodered.org/t/node-red-ui-table-not-working-on-ibm-cloud/29328)

<div class="topic-metadata">

**Author:** [@ani15](https://discourse.nodered.org/u/ani15)\
**Replies:** 16\
**Last updated:** [9 July 2020 00:16 UTC](https://discourse.nodered.org/t/node-red-ui-table-not-working-on-ibm-cloud/29328 "2020-07-09T00:16:30Z")

</div>

I am unable to create a table using ui-table node . i want to form a table having items , number,fresh,rotten,price ..pls help.....here is the flow \[{"id":"c592cb53.2f9348","type":"tab","label":"Flow 7","disabled":false…

---

## [Can I access the name of a subflow within a function node inside the subflow](https://discourse.nodered.org/t/can-i-access-the-name-of-a-subflow-within-a-function-node-inside-the-subflow/29651)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 9\
**Last updated:** [8 July 2020 21:43 UTC](https://discourse.nodered.org/t/can-i-access-the-name-of-a-subflow-within-a-function-node-inside-the-subflow/29651 "2020-07-08T21:43:25Z")

</div>

...so I can just use the name of subflow as an easy means of getting a parameter into the subflow?

---

## [Is global.set(var,value) required?](https://discourse.nodered.org/t/is-global-set-var-value-required/29690)

<div class="topic-metadata">

**Author:** [@cmisztur](https://discourse.nodered.org/u/cmisztur)\
**Replies:** 3\
**Last updated:** [8 July 2020 21:37 UTC](https://discourse.nodered.org/t/is-global-set-var-value-required/29690 "2020-07-08T21:37:10Z")

</div>

In a function node I retrieve a global variable and assign it to a message property. var a = global.get('var\_a'); msg.a = a; In another node I manipulate msg.a. I notice that next time I call global.get('var\_a'), the …

---

## [Remove array objects that don't contain a specific key](https://discourse.nodered.org/t/remove-array-objects-that-dont-contain-a-specific-key/29735)

<div class="topic-metadata">

**Author:** [@jomacdon](https://discourse.nodered.org/u/jomacdon)\
**Replies:** 8\
**Last updated:** [8 July 2020 21:27 UTC](https://discourse.nodered.org/t/remove-array-objects-that-dont-contain-a-specific-key/29735 "2020-07-08T21:27:41Z")

</div>

I'm really new to Node-Red and would like to know how to remove array objects that don't contain a specific key. Below is the first object from my array, it contains the key called 'clearedTime' - can I delete / remove …

---

## [Grabbing last character in a string in function node](https://discourse.nodered.org/t/grabbing-last-character-in-a-string-in-function-node/29683)

<div class="topic-metadata">

**Author:** [@vlturner](https://discourse.nodered.org/u/vlturner)\
**Replies:** 5\
**Last updated:** [8 July 2020 21:05 UTC](https://discourse.nodered.org/t/grabbing-last-character-in-a-string-in-function-node/29683 "2020-07-08T21:05:53Z")

</div>

I'm having a problem grabbing the last character of my msg.port. I want to use it to inject it into the right column of a csv file. timestamp,port or sensor,pressure\_0,pressure\_1, temperature. I did something stupid an…

---

## [Power Forecasts and Data-Tuning for Solar Installations (Node-Red / solcast-API / InfluxDB / Grafana)](https://discourse.nodered.org/t/power-forecasts-and-data-tuning-for-solar-installations-node-red-solcast-api-influxdb-grafana/28037)

<div class="topic-metadata">

**Author:** [@hominidae](https://discourse.nodered.org/u/hominidae)\
**Replies:** 4\
**Last updated:** [8 July 2020 20:15 UTC](https://discourse.nodered.org/t/power-forecasts-and-data-tuning-for-solar-installations-node-red-solcast-api-influxdb-grafana/28037 "2020-07-08T20:15:04Z")

</div>

Hi folks, at home, I have a freshly installed solar power plant and now wanted to do some information gathering and analysis with its data. As I can already collect various energy based information in my home to mqtt a…

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

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