# Latest

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

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

**Page:** 1304

---

## [How do I get the node ID in HTML](https://discourse.nodered.org/t/how-do-i-get-the-node-id-in-html/9107)

<div class="topic-metadata">

**Author:** [@JiChen](https://discourse.nodered.org/u/JiChen)\
**Replies:** 1\
**Last updated:** [18 March 2019 08:54 UTC](https://discourse.nodered.org/t/how-do-i-get-the-node-id-in-html/9107 "2019-03-18T08:54:14Z")

</div>

How do I get the node ID in HTML

---

## [Random function problem ,need help](https://discourse.nodered.org/t/random-function-problem-need-help/8882)

<div class="topic-metadata">

**Author:** [@sana\_sabah86](https://discourse.nodered.org/u/sana_sabah86)\
**Replies:** 8\
**Last updated:** [18 March 2019 03:43 UTC](https://discourse.nodered.org/t/random-function-problem-need-help/8882 "2019-03-18T03:43:22Z")

</div>

In this node, red I want to generate random number between 0-10 and if the number is less than 5 I want to output: the ((generated number from the function )) along with string message such as” less than 5” for example :…

---

## [My first flows, thirst three work last one not](https://discourse.nodered.org/t/my-first-flows-thirst-three-work-last-one-not/9062)

<div class="topic-metadata">

**Author:** [@pvklink](https://discourse.nodered.org/u/pvklink)\
**Replies:** 7\
**Last updated:** [17 March 2019 22:21 UTC](https://discourse.nodered.org/t/my-first-flows-thirst-three-work-last-one-not/9062 "2019-03-17T22:21:42Z")

</div>

Hi, this is my first experience with nodered. I am very impressed, after two hours i got the most important functionality working! I want to use it mainly via: Google Home - IFTT - NODERED - MQTT - Domoticz Http get …

---

## [Optimize my first "Flow"](https://discourse.nodered.org/t/optimize-my-first-flow/8512)

<div class="topic-metadata">

**Author:** [@itchy2](https://discourse.nodered.org/u/itchy2)\
**Replies:** 15\
**Last updated:** [17 March 2019 22:13 UTC](https://discourse.nodered.org/t/optimize-my-first-flow/8512 "2019-03-17T22:13:28Z")

</div>

Hi all, with your help I was able to create my first node-red flow. Now I want to understand what could be made in a better way. I think there is a way to reduce the nodes in terms of data transformations after the ins…

---

## [Uploading images to dashboard from windows](https://discourse.nodered.org/t/uploading-images-to-dashboard-from-windows/9102)

<div class="topic-metadata">

**Author:** [@sakura](https://discourse.nodered.org/u/sakura)\
**Replies:** 1\
**Last updated:** [17 March 2019 21:49 UTC](https://discourse.nodered.org/t/uploading-images-to-dashboard-from-windows/9102 "2019-03-17T21:49:24Z")

</div>

Hello, I'm trying to upload an image into a template node in node red, Though I'v changed httpStatic to: httpStatic: 'C:\\\\images', and uncommented: httpAdminRoot: '/admin', in settings.js file and I restarted Node R…

---

## [Lost Basic-Pallete Nodes](https://discourse.nodered.org/t/lost-basic-pallete-nodes/9093)

<div class="topic-metadata">

**Author:** [@tomskidoodle](https://discourse.nodered.org/u/tomskidoodle)\
**Replies:** 6\
**Last updated:** [17 March 2019 20:10 UTC](https://discourse.nodered.org/t/lost-basic-pallete-nodes/9093 "2019-03-17T20:10:31Z")

</div>

Greetings I have 'lost' a number of basic nodes from the initial NR install set, all related to http-request etc. I do have backups and can reinstall, but that won't help me to learn either the source of the problem or…

---

## [Last time stamped value from array](https://discourse.nodered.org/t/last-time-stamped-value-from-array/9099)

<div class="topic-metadata">

**Author:** [@stibra](https://discourse.nodered.org/u/stibra)\
**Replies:** 2\
**Last updated:** [17 March 2019 19:24 UTC](https://discourse.nodered.org/t/last-time-stamped-value-from-array/9099 "2019-03-17T19:24:35Z")

</div>

Hi, I am using a exec block to fetch temperature and humidity from my verisure system. The output gives several timestamped values in return. I am only interested in the "newest / current" value. Is there some function …

---

## [Read data from text file with node red](https://discourse.nodered.org/t/read-data-from-text-file-with-node-red/9091)

<div class="topic-metadata">

**Author:** [@supriya](https://discourse.nodered.org/u/supriya)\
**Replies:** 1\
**Last updated:** [17 March 2019 18:48 UTC](https://discourse.nodered.org/t/read-data-from-text-file-with-node-red/9091 "2019-03-17T18:48:36Z")

</div>

Hi, Am reading the count data from text file.Path is same but file is different.here i have to monitor the data if data is less than 100 that is "normal" .if it is \>100\<=150 that is "warning" & if it is \>200 it is "e…

---

## [Msg.payload to influxdb](https://discourse.nodered.org/t/msg-payload-to-influxdb/9066)

<div class="topic-metadata">

**Author:** [@stibra](https://discourse.nodered.org/u/stibra)\
**Replies:** 2\
**Last updated:** [17 March 2019 17:06 UTC](https://discourse.nodered.org/t/msg-payload-to-influxdb/9066 "2019-03-17T17:06:31Z")

</div>

Hi, My first node red flow here and a newbie question: I am using openweathermap to get weather data in node red. How do I parse the payload.tempc including a timestamp to InfluxDB (Already created DB). br Stian

---

## [Extract a Value](https://discourse.nodered.org/t/extract-a-value/9081)

<div class="topic-metadata">

**Author:** [@alex2](https://discourse.nodered.org/u/alex2)\
**Replies:** 4\
**Last updated:** [17 March 2019 13:38 UTC](https://discourse.nodered.org/t/extract-a-value/9081 "2019-03-17T13:38:00Z")

</div>

Hello, I have this payload (http get) How can I extract the Value for "PAC" { "Body" : { "Data" : { "DAY\_ENERGY" : { "Unit" : "Wh", "Value" : 8718 }, "DeviceStatus" : { "ErrorCode" : 0, "LEDColor" : 2, "LEDSt…

---

## [Help with logic filtering of message](https://discourse.nodered.org/t/help-with-logic-filtering-of-message/9076)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 20\
**Last updated:** [17 March 2019 12:24 UTC](https://discourse.nodered.org/t/help-with-logic-filtering-of-message/9076 "2019-03-17T12:24:16Z")

</div>

Ok, rather than like my previous attempt (may be deleted now) here is the problem: Two RPIs. They both ping the Gateway and another "real" IP address. They both report their results and publish them to MQTT. The mess…

---

## [Handling JSON in the file](https://discourse.nodered.org/t/handling-json-in-the-file/7823)

<div class="topic-metadata">

**Author:** [@aargollo](https://discourse.nodered.org/u/aargollo)\
**Replies:** 7\
**Last updated:** [15 March 2019 01:27 UTC](https://discourse.nodered.org/t/handling-json-in-the-file/7823 "2019-03-15T01:27:16Z")

</div>

Hi Guys! I try to work with JSON file to persist important parameters and I using at first moment, to study the best way to handling it, I starting to read a file, to do it i using REQUIRE Method, and I had this error "…

---

## [Node-RED 2019 Community Survey](https://discourse.nodered.org/t/node-red-2019-community-survey/8889)

<div class="topic-metadata">

**Author:** [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Replies:** 3\
**Last updated:** [17 March 2019 09:01 UTC](https://discourse.nodered.org/t/node-red-2019-community-survey/8889 "2019-03-17T09:01:51Z")

</div>

This year we're launching our first community survey to get a better sense of how Node-RED is actually being used. Submissions close on Friday 26th April - Please complete the survey by then! Please spare us 10 minutes…

---

## [Streaming video from uv4l to Blynk using nodered](https://discourse.nodered.org/t/streaming-video-from-uv4l-to-blynk-using-nodered/9071)

<div class="topic-metadata">

**Author:** [@janek](https://discourse.nodered.org/u/janek)\
**Replies:** 0\
**Last updated:** [17 March 2019 01:51 UTC](https://discourse.nodered.org/t/streaming-video-from-uv4l-to-blynk-using-nodered/9071 "2019-03-17T01:51:26Z")

</div>

Hi, I am able to stream video using uv4l and nodered on local server. Now I want to stream it to my phone using Blynk. I have a local Blynk server installed on my RPi3B+ and it works. On another RPi3B+ I have a rspicam …

---

## [In node red drop down node not giving expected result incase of one selction item](https://discourse.nodered.org/t/in-node-red-drop-down-node-not-giving-expected-result-incase-of-one-selction-item/9067)

<div class="topic-metadata">

**Author:** [@VIKRAMAS](https://discourse.nodered.org/u/VIKRAMAS)\
**Replies:** 3\
**Last updated:** [16 March 2019 22:20 UTC](https://discourse.nodered.org/t/in-node-red-drop-down-node-not-giving-expected-result-incase-of-one-selction-item/9067 "2019-03-16T22:20:09Z")

</div>

In nodered dropdown, I am using first drop down to select the controllerid and based on the controller id it'll push data for further choosing of data to choose luminar id. But while selcting the second dropdown values a…

---

## [Change elements position in Node Red](https://discourse.nodered.org/t/change-elements-position-in-node-red/9065)

<div class="topic-metadata">

**Author:** [@sakura](https://discourse.nodered.org/u/sakura)\
**Replies:** 5\
**Last updated:** [16 March 2019 21:55 UTC](https://discourse.nodered.org/t/change-elements-position-in-node-red/9065 "2019-03-16T21:55:59Z")

</div>

Hello, I've tried so hard to do a simple thing which is to change the position of the date so it will be in top, I tried with HTML and CSS but nothing worked, I honestly don't know what is the problem this is my flow …

---

## [User create own custom button](https://discourse.nodered.org/t/user-create-own-custom-button/9055)

<div class="topic-metadata">

**Author:** [@shafirin](https://discourse.nodered.org/u/shafirin)\
**Replies:** 4\
**Last updated:** [16 March 2019 19:42 UTC](https://discourse.nodered.org/t/user-create-own-custom-button/9055 "2019-03-16T19:42:23Z")

</div>

hello and good evening. im new to node-red, and I want to ask. can user create new button as a custom button after picking the 2 color? btw im try to make a user to create its own custom light button for the rgb light. …

---

## [Problems with the function node in 0.20.2](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036)

<div class="topic-metadata">

**Author:** [@anderdk](https://discourse.nodered.org/u/anderdk)\
**Replies:** 21\
**Last updated:** [16 March 2019 17:40 UTC](https://discourse.nodered.org/t/problems-with-the-function-node-in-0-20-2/9036 "2019-03-16T17:40:15Z")

</div>

Hi is there anybody else that got problems with the function node in version 0.20.2 the code text is unreadable after upgrade?

---

## [How store JSONata expression inside a global variable and use that for evaluation](https://discourse.nodered.org/t/how-store-jsonata-expression-inside-a-global-variable-and-use-that-for-evaluation/9032)

<div class="topic-metadata">

**Author:** [@VIKRAMAS](https://discourse.nodered.org/u/VIKRAMAS)\
**Replies:** 5\
**Last updated:** [16 March 2019 17:09 UTC](https://discourse.nodered.org/t/how-store-jsonata-expression-inside-a-global-variable-and-use-that-for-evaluation/9032 "2019-03-16T17:09:17Z")

</div>

I storing the JSONata expression inside Database or variable and while evaluating on incoming message how to use that expression(Which is stored as just string). How to achieve this in node-red.

---

## [How can I split byte from string](https://discourse.nodered.org/t/how-can-i-split-byte-from-string/7774)

<div class="topic-metadata">

**Author:** [@tgurecky](https://discourse.nodered.org/u/tgurecky)\
**Replies:** 9\
**Last updated:** [16 March 2019 16:50 UTC](https://discourse.nodered.org/t/how-can-i-split-byte-from-string/7774 "2019-03-16T16:50:51Z")

</div>

Hello friends, I'm a beginner, some simple flow I've already created and working on. Now I would like to read data from the RS485 power meter concentrator. The data is loaded into a string that has 83 bytes. Data is in…

---

## [Workspace Movement on Click or Node Closure](https://discourse.nodered.org/t/workspace-movement-on-click-or-node-closure/9031)

<div class="topic-metadata">

**Author:** [@dave-kinnear](https://discourse.nodered.org/u/dave-kinnear)\
**Replies:** 6\
**Last updated:** [16 March 2019 16:20 UTC](https://discourse.nodered.org/t/workspace-movement-on-click-or-node-closure/9031 "2019-03-16T16:20:37Z")

</div>

After a few weeks of developing a Node-RED flow to control a hydraulic system, the workspace now jumps to an unused portion (the lower right corner) upon double clicking the workspace or closing a node ('Cancel' or 'Done…

---

## [Display date in another language](https://discourse.nodered.org/t/display-date-in-another-language/9053)

<div class="topic-metadata">

**Author:** [@nassima100](https://discourse.nodered.org/u/nassima100)\
**Replies:** 4\
**Last updated:** [16 March 2019 15:29 UTC](https://discourse.nodered.org/t/display-date-in-another-language/9053 "2019-03-16T15:29:02Z")

</div>

Hello, I'm working on a weather forcast dashboard and I'm wondering if I can display the names of days and months in another language than English, French in my case {{msg.payload | date:"EEE, d MMMM yyyy"}} in this …

---

## [How can I map a static image on map](https://discourse.nodered.org/t/how-can-i-map-a-static-image-on-map/8823)

<div class="topic-metadata">

**Author:** [@VIKRAMAS](https://discourse.nodered.org/u/VIKRAMAS)\
**Replies:** 12\
**Last updated:** [16 March 2019 13:26 UTC](https://discourse.nodered.org/t/how-can-i-map-a-static-image-on-map/8823 "2019-03-16T13:26:01Z")

</div>

In openlayer map we can show the image on map(openlayer static image). Same thing how can we do in nodered world map as I wanted to load a static image and plot points on that one.

---

## [Auto hiding status bar on android device](https://discourse.nodered.org/t/auto-hiding-status-bar-on-android-device/9037)

<div class="topic-metadata">

**Author:** [@Petr](https://discourse.nodered.org/u/Petr)\
**Replies:** 9\
**Last updated:** [16 March 2019 13:09 UTC](https://discourse.nodered.org/t/auto-hiding-status-bar-on-android-device/9037 "2019-03-16T13:09:37Z")

</div>

Is there a way to set the dashboard to hide status bar (top of the android screen + browser top screen with the url field) I have dashboard where the size is set for my mobile phone (see attached picture), but I didn’t …

---

## [Color Picker Support for RGBW](https://discourse.nodered.org/t/color-picker-support-for-rgbw/8868)

<div class="topic-metadata">

**Author:** [@Janstander2011](https://discourse.nodered.org/u/Janstander2011)\
**Replies:** 10\
**Last updated:** [16 March 2019 10:32 UTC](https://discourse.nodered.org/t/color-picker-support-for-rgbw/8868 "2019-03-16T10:32:36Z")

</div>

I have a MerkuryA21 RGBW bulb ( with tuya-convert flashed sonoff / tasmota firmware) that accepts colors in the form of 255,255,255,255. I was super excited to see the color picker that's included in the default NR pale…

---

## [Forward Port to Modbus TCP](https://discourse.nodered.org/t/forward-port-to-modbus-tcp/8976)

<div class="topic-metadata">

**Author:** [@workano](https://discourse.nodered.org/u/workano)\
**Replies:** 18\
**Last updated:** [16 March 2019 03:35 UTC](https://discourse.nodered.org/t/forward-port-to-modbus-tcp/8976 "2019-03-16T03:35:08Z")

</div>

Hello all, I have a Modbus device capable to connect to a remote IP/Port. I would like to to connect it to Node-Red and bind this port to Modbus TCP. I did a connection to Node-Red TCP listener, but I do not know how to…

---

## [Node-RED 0.20.2 Released](https://discourse.nodered.org/t/node-red-0-20-2-released/9033)

<div class="topic-metadata">

**Author:** [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Replies:** 0\
**Last updated:** [15 March 2019 19:20 UTC](https://discourse.nodered.org/t/node-red-0-20-2-released/9033 "2019-03-15T19:20:32Z")

</div>

I've just published 0.20.2 - rather sooner than planned. This fixes a bug in the editor that, under a very particular set of circumstances, can cause it to load multiple copies of your flows at the same time. This in tu…

---

## [Raspberry Pi Node Red](https://discourse.nodered.org/t/raspberry-pi-node-red/9007)

<div class="topic-metadata">

**Author:** [@cannco](https://discourse.nodered.org/u/cannco)\
**Replies:** 9\
**Last updated:** [15 March 2019 10:39 UTC](https://discourse.nodered.org/t/raspberry-pi-node-red/9007 "2019-03-15T10:39:55Z")

</div>

Hi all, I'm a Coderdojo mentor teaching a Raspberry Pi class. We've been successfully using the sensors from the CamJam Edukit2 (https://camjam.me/?page\_id=623) with the Pi and I've just started looking at Node Red. Wha…

---

## [Timestamps...... Sorry](https://discourse.nodered.org/t/timestamps-sorry/7364)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 22\
**Last updated:** [15 March 2019 18:39 UTC](https://discourse.nodered.org/t/timestamps-sorry/7364 "2019-03-15T18:39:17Z")

</div>

I've been messing about with things and wanted a "human readable" time stamp on stuff. I've seen reference to the J: now() thing which is handy to put in, as I just add a change node and set msg.time to J: now() and I g…

---

## [In node red using JSONata the output is empty](https://discourse.nodered.org/t/in-node-red-using-jsonata-the-output-is-empty/8998)

<div class="topic-metadata">

**Author:** [@VIKRAMAS](https://discourse.nodered.org/u/VIKRAMAS)\
**Replies:** 5\
**Last updated:** [15 March 2019 18:29 UTC](https://discourse.nodered.org/t/in-node-red-using-jsonata-the-output-is-empty/8998 "2019-03-15T18:29:13Z")

</div>

The input I'm giving is { "payload": \[ { "FirstName": "Fred", "Surname": "Smith", "Age": 28, "Address": { "Street": "Hursley Park", "City": "Winchester", "Postcode": "SO21 2JN" }, "Phone": \[ { "type": "home", "number": …

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

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