# Latest

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

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

**Page:** 1086

---

## [Environment variables outside settings.js file](https://discourse.nodered.org/t/environment-variables-outside-settings-js-file/26527)

<div class="topic-metadata">

**Author:** [@Lupin\_III](https://discourse.nodered.org/u/Lupin_III)\
**Replies:** 20\
**Last updated:** [22 May 2020 10:50 UTC](https://discourse.nodered.org/t/environment-variables-outside-settings-js-file/26527 "2020-05-22T10:50:34Z")

</div>

Hi, after read several messages I still have some troubles, could you please help me? I have never used environment variables before. Now, in settings.js I've added "env: process.env" just below " functionGlobalContext…

---

## [Pi-gpio input pull / buffering message](https://discourse.nodered.org/t/pi-gpio-input-pull-buffering-message/26545)

<div class="topic-metadata">

**Author:** [@32Domi](https://discourse.nodered.org/u/32Domi)\
**Replies:** 6\
**Last updated:** [22 May 2020 10:02 UTC](https://discourse.nodered.org/t/pi-gpio-input-pull-buffering-message/26545 "2020-05-22T10:02:14Z")

</div>

Hi everyone, I need some assistance on how to buffer a message if there's no network or get a pulled state of a Raspberry GPI. I have a state on a GPI, sending it via udp to another system. But as soon as the network c…

---

## [From the ARDUINO world, MAP( ) command](https://discourse.nodered.org/t/from-the-arduino-world-map-command/27072)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 18\
**Last updated:** [22 May 2020 09:11 UTC](https://discourse.nodered.org/t/from-the-arduino-world-map-command/27072 "2020-05-22T09:11:55Z")

</div>

In the world of Arduino, I can map values. So if I have an input range of 1 - 20 I can map that to be 1 - 100. So 1 = 1. 2 = 5 3 = 10 4 = 15 20 = 100 (I hope I did the intermediate values correctly) Is there a wa…

---

## [Switch size and Slider size. Not working](https://discourse.nodered.org/t/switch-size-and-slider-size-not-working/27071)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 4\
**Last updated:** [22 May 2020 08:34 UTC](https://discourse.nodered.org/t/switch-size-and-slider-size-not-working/27071 "2020-05-22T08:34:53Z")

</div>

I have a switch node set as size 1 x 2 (Vertical) That is ok. Beside it I want to put a slider also sized 1 x 2 (vertical) Yeah, but something isn't working. The slider is longer (taller) the switch.

---

## [Webhook: Trigger iOS shortcuts from notifications](https://discourse.nodered.org/t/webhook-trigger-ios-shortcuts-from-notifications/10568)

<div class="topic-metadata">

**Author:** [@sliemeobn](https://discourse.nodered.org/u/sliemeobn)\
**Replies:** 9\
**Last updated:** [22 May 2020 08:20 UTC](https://discourse.nodered.org/t/webhook-trigger-ios-shortcuts-from-notifications/10568 "2020-05-22T08:20:35Z")

</div>

Last week I released the iOS app Pushcut which integrates push notifications with customizable actions that can either be iOS shortcuts or URLs. You can trigger the notification through a HTTP web API. I am sure it can b…

---

## [Help with creating a gauge to display MPH for a treadmill](https://discourse.nodered.org/t/help-with-creating-a-gauge-to-display-mph-for-a-treadmill/27064)

<div class="topic-metadata">

**Author:** [@dlolling](https://discourse.nodered.org/u/dlolling)\
**Replies:** 5\
**Last updated:** [22 May 2020 06:16 UTC](https://discourse.nodered.org/t/help-with-creating-a-gauge-to-display-mph-for-a-treadmill/27064 "2020-05-22T06:16:10Z")

</div>

Hello, I am new to Node-RED and programming in general so please bear with me. I am trying to replace a broken treadmill console Raspberry Pi 4 Model B and a touch screen. I would like to display and control everythin…

---

## [Door lock with password pin](https://discourse.nodered.org/t/door-lock-with-password-pin/27008)

<div class="topic-metadata">

**Author:** [@thalesmaoa](https://discourse.nodered.org/u/thalesmaoa)\
**Replies:** 1\
**Last updated:** [22 May 2020 04:10 UTC](https://discourse.nodered.org/t/door-lock-with-password-pin/27008 "2020-05-22T04:10:25Z")

</div>

There are a lot of solutions regarding this topic, but I couldn’t find any specific using nodered and mqqt server. I’ve implemented a door lock in my house with two rfid. One internal and other external. I also took out…

---

## [Beginner - array and declaring variables](https://discourse.nodered.org/t/beginner-array-and-declaring-variables/26964)

<div class="topic-metadata">

**Author:** [@lenvirthus](https://discourse.nodered.org/u/lenvirthus)\
**Replies:** 4\
**Last updated:** [22 May 2020 02:44 UTC](https://discourse.nodered.org/t/beginner-array-and-declaring-variables/26964 "2020-05-22T02:44:47Z")

</div>

Hi Everyone, I am new to this. Just after some advice or direction on how to do this. What I'm trying to achieve - I have a flow that runs on a time trigger -\> extracts data from a database -\> formats that data from t…

---

## [Custom Admin API with authentication](https://discourse.nodered.org/t/custom-admin-api-with-authentication/27051)

<div class="topic-metadata">

**Author:** [@ashish-y](https://discourse.nodered.org/u/ashish-y)\
**Replies:** 4\
**Last updated:** [21 May 2020 23:51 UTC](https://discourse.nodered.org/t/custom-admin-api-with-authentication/27051 "2020-05-21T23:51:45Z")

</div>

Hi, I have a custom API that fetches data from a datasource on click of a button from the node-red dropdown menu. Location of the API: packages/node\_modules/@node-red/editor-api/lib/admin/index.js adminApp.get("/test…

---

## [Pass data from angular to Node red query string and get data in Node red](https://discourse.nodered.org/t/pass-data-from-angular-to-node-red-query-string-and-get-data-in-node-red/27025)

<div class="topic-metadata">

**Author:** [@dhpatel177](https://discourse.nodered.org/u/dhpatel177)\
**Replies:** 1\
**Last updated:** [22 May 2020 00:53 UTC](https://discourse.nodered.org/t/pass-data-from-angular-to-node-red-query-string-and-get-data-in-node-red/27025 "2020-05-22T00:53:02Z")

</div>

Hello, Can we pass data from angular to node red in query string and get that data on node red initialization or before the api for getting flow is called? Thanks.

---

## [Ui not displaying anything](https://discourse.nodered.org/t/ui-not-displaying-anything/26984)

<div class="topic-metadata">

**Author:** [@Chenko](https://discourse.nodered.org/u/Chenko)\
**Replies:** 18\
**Last updated:** [21 May 2020 23:22 UTC](https://discourse.nodered.org/t/ui-not-displaying-anything/26984 "2020-05-21T23:22:38Z")

</div>

Hello good morning. My UI stoped display today and only displays connection lost at the bottom left of the screen. I have lost of dashboard nodes in my flow but still cant get anything in the ui

---

## [\[Example flow\] Dashboard table node](https://discourse.nodered.org/t/example-flow-dashboard-table-node/27061)

<div class="topic-metadata">

**Author:** [@thebaldgeek](https://discourse.nodered.org/u/thebaldgeek)\
**Replies:** 0\
**Last updated:** [21 May 2020 22:28 UTC](https://discourse.nodered.org/t/example-flow-dashboard-table-node/27061 "2020-05-21T22:28:07Z")

</div>

Almost every question in the forums about using the table nodes results in suggesting that the examples be used as a way to get going. The trouble with the examples is that they do not contain a msg.payload. They simpl…

---

## [Read Thingspeak API and plot chart](https://discourse.nodered.org/t/read-thingspeak-api-and-plot-chart/27058)

<div class="topic-metadata">

**Author:** [@fengrun85](https://discourse.nodered.org/u/fengrun85)\
**Replies:** 0\
**Last updated:** [21 May 2020 22:11 UTC](https://discourse.nodered.org/t/read-thingspeak-api-and-plot-chart/27058 "2020-05-21T22:11:44Z")

</div>

Trying to plot a line chart after reading from Thingspeak but empty chart appears on UI and no line drawn \[{"id":"da03e7c2.9473b8","type":"tab","label":"Test","disabled":false,"info":""},{"id":"fa13b94f.299688","type":"…

---

## [JSONata: Get max and minimum temperature with timestamp](https://discourse.nodered.org/t/jsonata-get-max-and-minimum-temperature-with-timestamp/26879)

<div class="topic-metadata">

**Author:** [@JSONata](https://discourse.nodered.org/u/JSONata)\
**Replies:** 39\
**Last updated:** [21 May 2020 22:01 UTC](https://discourse.nodered.org/t/jsonata-get-max-and-minimum-temperature-with-timestamp/26879 "2020-05-21T22:01:58Z")

</div>

Ok, we have this data from influx. Temperature over the last 30 minutes \[{"time":"2020-05-18T19:09:53.000Z","Temperatur":24.1},{"time":"2020-05-18T19:09:58.000Z","Temperatur":24},{"time":"2020-05-18T19:12:48.000Z","Temp…

---

## [Http API Call in NodeRed](https://discourse.nodered.org/t/http-api-call-in-nodered/27050)

<div class="topic-metadata">

**Author:** [@Chaos](https://discourse.nodered.org/u/Chaos)\
**Replies:** 2\
**Last updated:** [21 May 2020 21:01 UTC](https://discourse.nodered.org/t/http-api-call-in-nodered/27050 "2020-05-21T21:01:58Z")

</div>

Hi I am wanting to get crypo prices from coinmarketcap. I have an API Key and the url \`https://pro-api.coinmarketcap.com. But where do i start!. I have an inject, function, http request node and a debug node. But have n…

---

## [How to append timestamp into msg.payload](https://discourse.nodered.org/t/how-to-append-timestamp-into-msg-payload/6981)

<div class="topic-metadata">

**Author:** [@gmahule](https://discourse.nodered.org/u/gmahule)\
**Replies:** 10\
**Last updated:** [21 May 2020 21:01 UTC](https://discourse.nodered.org/t/how-to-append-timestamp-into-msg-payload/6981 "2020-05-21T21:01:50Z")

</div>

Hello Everyone, I am using node-red-contrib-moment and I am using date/time formatter my problem is when i am using output as msg.payload then my original message get replaced by the time. So I want to add timestamp wit…

---

## [MongoDB node doesn't recover when mongo is restarted](https://discourse.nodered.org/t/mongodb-node-doesnt-recover-when-mongo-is-restarted/26604)

<div class="topic-metadata">

**Author:** [@cadu](https://discourse.nodered.org/u/cadu)\
**Replies:** 1\
**Last updated:** [21 May 2020 20:08 UTC](https://discourse.nodered.org/t/mongodb-node-doesnt-recover-when-mongo-is-restarted/26604 "2020-05-21T20:08:46Z")

</div>

Hello! I'm using node-red-node-mongodb which I believe is the default mongo node. When the mongo database gets restarted for whatever reason, it doesn't recover and throws the following error repeatedly: "MongoError: T…

---

## [Knot following?](https://discourse.nodered.org/t/knot-following/26999)

<div class="topic-metadata">

**Author:** [@Joaovitor](https://discourse.nodered.org/u/Joaovitor)\
**Replies:** 5\
**Last updated:** [21 May 2020 19:53 UTC](https://discourse.nodered.org/t/knot-following/26999 "2020-05-21T19:53:47Z")

</div>

I need to do a very simple task: record maximum and minimum values. I want some node to compare the current value with the previous one and see if it is bigger or smaller. If so, return and update the maximum and minimu…

---

## [Synology Docker - Fails to start after settings.js edit](https://discourse.nodered.org/t/synology-docker-fails-to-start-after-settings-js-edit/27005)

<div class="topic-metadata">

**Author:** [@dougle03](https://discourse.nodered.org/u/dougle03)\
**Replies:** 8\
**Last updated:** [21 May 2020 18:43 UTC](https://discourse.nodered.org/t/synology-docker-fails-to-start-after-settings-js-edit/27005 "2020-05-21T18:43:43Z")

</div>

Hi all, little problem here; apologies if this has been asked before (I did do a few searches). I'm running NR in Docker on my Synology NAS since Jan with no issues. This evening, whilst tinkering, I decided to try and…

---

## [Live stream with a camera pi on node red dashboard](https://discourse.nodered.org/t/live-stream-with-a-camera-pi-on-node-red-dashboard/10594)

<div class="topic-metadata">

**Author:** [@khalil](https://discourse.nodered.org/u/khalil)\
**Replies:** 7\
**Last updated:** [21 May 2020 17:32 UTC](https://discourse.nodered.org/t/live-stream-with-a-camera-pi-on-node-red-dashboard/10594 "2020-05-21T17:32:26Z")

</div>

Hi everyone. I am trying to make a live stream with my Camera Pi on my dashboard node red. i used the RPi\_Cam\_Web\_Interface idea it worked well when i used a template whith this code below Now i am asking if there is …

---

## [Smart plug - tuya](https://discourse.nodered.org/t/smart-plug-tuya/24946)

<div class="topic-metadata">

**Author:** [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Replies:** 12\
**Last updated:** [21 May 2020 16:09 UTC](https://discourse.nodered.org/t/smart-plug-tuya/24946 "2020-05-21T16:09:53Z")

</div>

Hi, I have a smart plug (ZOOZE). I installed smart tuya node on node red but I found that I can't connect to the device if I don' have the device key. Have you an idea how can I find the device key? Thank you

---

## [Modify the properties of a node](https://discourse.nodered.org/t/modify-the-properties-of-a-node/27026)

<div class="topic-metadata">

**Author:** [@cigno](https://discourse.nodered.org/u/cigno)\
**Replies:** 7\
**Last updated:** [21 May 2020 15:01 UTC](https://discourse.nodered.org/t/modify-the-properties-of-a-node/27026 "2020-05-21T15:01:18Z")

</div>

Hi All. How can I edit these properties from Dashboard via an input text.

---

## [Using a INA219 to measure voltage and current](https://discourse.nodered.org/t/using-a-ina219-to-measure-voltage-and-current/16407)

<div class="topic-metadata">

**Author:** [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Replies:** 4\
**Last updated:** [21 May 2020 14:47 UTC](https://discourse.nodered.org/t/using-a-ina219-to-measure-voltage-and-current/16407 "2020-05-21T14:47:46Z")

</div>

A very short tutorial (for my IoT students) explaining how to use the INA219 device to measure voltage and current in a circuit. As with most of my projects, a Wemos D1 Mini is used to provide the control/sensing interf…

---

## [Retrieve data from influxdb in higher precision](https://discourse.nodered.org/t/retrieve-data-from-influxdb-in-higher-precision/27024)

<div class="topic-metadata">

**Author:** [@JPUA](https://discourse.nodered.org/u/JPUA)\
**Replies:** 3\
**Last updated:** [21 May 2020 13:53 UTC](https://discourse.nodered.org/t/retrieve-data-from-influxdb-in-higher-precision/27024 "2020-05-21T13:53:56Z")

</div>

Hello kind souls, I need some help working on my first project with influxdb and grafana here. I need to retrieve my past data from influxdb with the highest precision I can. I have successfully retrieved my data through…

---

## [Why does JSON object overwrites it's previously stored values?](https://discourse.nodered.org/t/why-does-json-object-overwrites-its-previously-stored-values/27032)

<div class="topic-metadata">

**Author:** [@Klemzo](https://discourse.nodered.org/u/Klemzo)\
**Replies:** 5\
**Last updated:** [21 May 2020 13:45 UTC](https://discourse.nodered.org/t/why-does-json-object-overwrites-its-previously-stored-values/27032 "2020-05-21T13:45:18Z")

</div>

I have defined JSON object "OBJ" with key "test" and it's value 0. Then I iterate through for loop 10 times. First I push the current data of OBJ into msg.payload which is an array. I then assign new value for test, whi…

---

## [Strange pop up - already editing](https://discourse.nodered.org/t/strange-pop-up-already-editing/27028)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 2\
**Last updated:** [21 May 2020 12:30 UTC](https://discourse.nodered.org/t/strange-pop-up-already-editing/27028 "2020-05-21T12:30:39Z")

</div>

I only have one open forum tab on one browser on one computer so unless someone is hacking my account somewhere else ....... :slight\_smile:

---

## [From flow configuration (array of json objects) to deployed code within the Node-RED runtime](https://discourse.nodered.org/t/from-flow-configuration-array-of-json-objects-to-deployed-code-within-the-node-red-runtime/27035)

<div class="topic-metadata">

**Author:** [@boehand](https://discourse.nodered.org/u/boehand)\
**Replies:** 0\
**Last updated:** [21 May 2020 12:21 UTC](https://discourse.nodered.org/t/from-flow-configuration-array-of-json-objects-to-deployed-code-within-the-node-red-runtime/27035 "2020-05-21T12:21:18Z")

</div>

Hi, Nick, I am a research assistant at the Saxon Textile Research Institute (affiliated institute of the Chemnitz University of Technology (Germany)). I am doing research in the field of End User Programming and use Nod…

---

## [Callback function arduino](https://discourse.nodered.org/t/callback-function-arduino/27021)

<div class="topic-metadata">

**Author:** [@qmf](https://discourse.nodered.org/u/qmf)\
**Replies:** 28\
**Last updated:** [21 May 2020 12:05 UTC](https://discourse.nodered.org/t/callback-function-arduino/27021 "2020-05-21T12:05:04Z")

</div>

Hi there, I am trying to get the payload in the serial monitor of arduino through mqtt and node-red, but although I get the message, the first character is missing! Does anyone know what I am doing wrong? void receiveM…

---

## [How can i change tabs with button?](https://discourse.nodered.org/t/how-can-i-change-tabs-with-button/27010)

<div class="topic-metadata">

**Author:** [@carrero](https://discourse.nodered.org/u/carrero)\
**Replies:** 11\
**Last updated:** [21 May 2020 10:59 UTC](https://discourse.nodered.org/t/how-can-i-change-tabs-with-button/27010 "2020-05-21T10:59:40Z")

</div>

Hi everyone, im starting on node-red and first of all i want to create multiple tabs and change into them using a button. I supposed that if i have a tab called 4 and i inject with the button the payload number 4, it sho…

---

## [Why i got this ip?](https://discourse.nodered.org/t/why-i-got-this-ip/27014)

<div class="topic-metadata">

**Author:** [@carrero](https://discourse.nodered.org/u/carrero)\
**Replies:** 4\
**Last updated:** [21 May 2020 10:48 UTC](https://discourse.nodered.org/t/why-i-got-this-ip/27014 "2020-05-21T10:48:54Z")

</div>

Hi guys, i dont know much about node-red, but i have just installed dashboard and mi ip is this one :http://127.0.0.1:1880/ui/#!/0?socketid=FrUow3jN7G\_uHg9cAAAB is this a bug or a problem?

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

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