# General

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

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

**Page:** 695

---

## [Msg.object to msg.url](https://discourse.nodered.org/t/msg-object-to-msg-url/31929)

<div class="topic-metadata">

**Author:** [@fxx](https://discourse.nodered.org/u/fxx)\
**Replies:** 3\
**Last updated:** [24 August 2020 06:01 UTC](https://discourse.nodered.org/t/msg-object-to-msg-url/31929 "2020-08-24T06:01:50Z")

</div>

Hi there. I got stuck changing msg.url (object) to msg.url acceptable in http request node. What should I set msg.url to in change node? Can I return msg.url from the function as a string? \[{"id":"ace7ea29.4b43c","ty…

---

## [Remove all tags \<...\> from payload?](https://discourse.nodered.org/t/remove-all-tags-from-payload/31920)

<div class="topic-metadata">

**Author:** [@CaptainSweatpants](https://discourse.nodered.org/u/CaptainSweatpants)\
**Replies:** 3\
**Last updated:** [24 August 2020 05:33 UTC](https://discourse.nodered.org/t/remove-all-tags-from-payload/31920 "2020-08-24T05:33:35Z")

</div>

So I have Template nodes containing SSML content to send to my Echo devices around the house. I recently implemented some flows which direct the SSML to only the Echo devices with active movement in those rooms.. but, he…

---

## [Two inputs in one function](https://discourse.nodered.org/t/two-inputs-in-one-function/31884)

<div class="topic-metadata">

**Author:** [@zamzon](https://discourse.nodered.org/u/zamzon)\
**Replies:** 30\
**Last updated:** [23 August 2020 23:49 UTC](https://discourse.nodered.org/t/two-inputs-in-one-function/31884 "2020-08-23T23:49:12Z")

</div>

Hi I need to have two inputs in one function, the two inputs look like this Input 1 Buffer: {"0":28,"1":2,"2":154,"3":128,"4":255,"5":100,"6":255,"7":102} Input 2 JSON: {"on":true,"brightness":40,"rgb":\[255,178,76\],"h…

---

## [Very weird thing just happened in the \`edit\` screen](https://discourse.nodered.org/t/very-weird-thing-just-happened-in-the-edit-screen/31468)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 3\
**Last updated:** [23 August 2020 21:21 UTC](https://discourse.nodered.org/t/very-weird-thing-just-happened-in-the-edit-screen/31468 "2020-08-23T21:21:33Z")

</div>

It happened, and I dismissed it, but then thought it should be something to mention. It didn't take much effort to invoke the problem again. This is the screen as it was: I then drag a function node onto the screen.…

---

## [Encryption Key with projects](https://discourse.nodered.org/t/encryption-key-with-projects/31913)

<div class="topic-metadata">

**Author:** [@ffich](https://discourse.nodered.org/u/ffich)\
**Replies:** 4\
**Last updated:** [23 August 2020 21:28 UTC](https://discourse.nodered.org/t/encryption-key-with-projects/31913 "2020-08-23T21:28:20Z")

</div>

Hi folks, I keep loosing my encryption key in my Raspberry Pi Node-RED projects... if I'm not wrong it happens after every shutdown. I want to point out that I never do a proper shutdown on my Pi, but it's always a pow…

---

## [Reading text file, removing filename](https://discourse.nodered.org/t/reading-text-file-removing-filename/31907)

<div class="topic-metadata">

**Author:** [@edstobi](https://discourse.nodered.org/u/edstobi)\
**Replies:** 3\
**Last updated:** [23 August 2020 20:04 UTC](https://discourse.nodered.org/t/reading-text-file-removing-filename/31907 "2020-08-23T20:04:05Z")

</div>

Hello if i insert the array by hand it works. If i read it from the file I have the same information in the object, but the file path is below. This seems to disturb the further flow, because the function does not proce…

---

## [Scan I2C register of MPU6000 module through node red](https://discourse.nodered.org/t/scan-i2c-register-of-mpu6000-module-through-node-red/7661)

<div class="topic-metadata">

**Author:** [@fredy76](https://discourse.nodered.org/u/fredy76)\
**Replies:** 3\
**Last updated:** [23 August 2020 19:26 UTC](https://discourse.nodered.org/t/scan-i2c-register-of-mpu6000-module-through-node-red/7661 "2020-08-23T19:26:49Z")

</div>

I have Mpu6000 which is connected to I2C shield mounted on Raspberry Pi 3 B+. I have installed the node-red and I2C node in raspberry pi, but to scan the I2C data, do I have to write the code or is there any other way t…

---

## ["Error: ENOENT: no such file or directory" shows on log when opening DEBUG in new window](https://discourse.nodered.org/t/error-enoent-no-such-file-or-directory-shows-on-log-when-opening-debug-in-new-window/29303)

<div class="topic-metadata">

**Author:** [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Replies:** 10\
**Last updated:** [23 August 2020 13:07 UTC](https://discourse.nodered.org/t/error-enoent-no-such-file-or-directory-shows-on-log-when-opening-debug-in-new-window/29303 "2020-08-23T13:07:37Z")

</div>

This happens in Node-RED v 1.0.6 and 1.1.0 - I didn't try it in earlier releases. Reproducible on OS: macOS v10.14.6 and raspberry pi (buster) Open the editor and go to the debug tab down the bottom right is the 'Open…

---

## [Filtering Trafic Information](https://discourse.nodered.org/t/filtering-trafic-information/31787)

<div class="topic-metadata">

**Author:** [@alcor007](https://discourse.nodered.org/u/alcor007)\
**Replies:** 4\
**Last updated:** [23 August 2020 10:08 UTC](https://discourse.nodered.org/t/filtering-trafic-information/31787 "2020-08-23T10:08:20Z")

</div>

Hi all, I created a flow to extract trafic information from an rss-feed (still learning!). Next, I devised a rather complicated way to filter out trafic information relating to certain roads only. Even though I am a com…

---

## [How to set node id for css](https://discourse.nodered.org/t/how-to-set-node-id-for-css/31314)

<div class="topic-metadata">

**Author:** [@newsky40](https://discourse.nodered.org/u/newsky40)\
**Replies:** 3\
**Last updated:** [23 August 2020 09:34 UTC](https://discourse.nodered.org/t/how-to-set-node-id-for-css/31314 "2020-08-23T09:34:25Z")

</div>

I want to use the css file to assign a color to each text nodes. I want each nodes to have a different color. To do so, I want to set a node id or class and assign a color directly from the css file. How can I assign an…

---

## [\[newbie\] How to make this function?](https://discourse.nodered.org/t/newbie-how-to-make-this-function/31886)

<div class="topic-metadata">

**Author:** [@hugocoolens](https://discourse.nodered.org/u/hugocoolens)\
**Replies:** 8\
**Last updated:** [23 August 2020 09:26 UTC](https://discourse.nodered.org/t/newbie-how-to-make-this-function/31886 "2020-08-23T09:26:43Z")

</div>

I'd like to display the voltage measured by a sonoff pow r2 displayed in a graph. I have captured the msg.payload in json format and made two input nodes with it, so you can see how the data is made up. I just want a f…

---

## [Help to find how this message is being made](https://discourse.nodered.org/t/help-to-find-how-this-message-is-being-made/31896)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [23 August 2020 07:31 UTC](https://discourse.nodered.org/t/help-to-find-how-this-message-is-being-made/31896 "2020-08-23T07:31:21Z")

</div>

For reasons I am not sure I am trying to get back into an old project as a distraction on train signals. It doesn't work. (Shame. It used to.) This is all because a while back I lost EVERYTHING and had to reconstruct…

---

## [Googel api local ip does not work](https://discourse.nodered.org/t/googel-api-local-ip-does-not-work/31890)

<div class="topic-metadata">

**Author:** [@Higgis](https://discourse.nodered.org/u/Higgis)\
**Replies:** 0\
**Last updated:** [22 August 2020 21:07 UTC](https://discourse.nodered.org/t/googel-api-local-ip-does-not-work/31890 "2020-08-22T21:07:19Z")

</div>

trying to install node-red-contrib-google-oauth2 but when I have to fill in the information according to the page https://flows.nodered.org/node/node-red-contrib-google-oauth2 "Choose Web Application. As Authorized Jav…

---

## [How to solve this problem Roll off Roof observatory](https://discourse.nodered.org/t/how-to-solve-this-problem-roll-off-roof-observatory/31744)

<div class="topic-metadata">

**Author:** [@calberts](https://discourse.nodered.org/u/calberts)\
**Replies:** 25\
**Last updated:** [22 August 2020 20:06 UTC](https://discourse.nodered.org/t/how-to-solve-this-problem-roll-off-roof-observatory/31744 "2020-08-22T20:06:56Z")

</div>

I am building Roll of Roof Observatory. I like to move the roof with node-red. I have for that two relays and peace of software. the software is not flexible. If i open the roof relay 1 will be active if i close the roof…

---

## [Reverse/split bytes](https://discourse.nodered.org/t/reverse-split-bytes/31885)

<div class="topic-metadata">

**Author:** [@New2Node](https://discourse.nodered.org/u/New2Node)\
**Replies:** 2\
**Last updated:** [22 August 2020 19:42 UTC](https://discourse.nodered.org/t/reverse-split-bytes/31885 "2020-08-22T19:42:02Z")

</div>

Hi, I’m loving Node red and learning how to manipulate messages! I have a question which I’m sure someone will find simple! What’s the best way to reverse/spilt a string and return some data. For example, I have a meter…

---

## [How to reset rbe?](https://discourse.nodered.org/t/how-to-reset-rbe/31876)

<div class="topic-metadata">

**Author:** [@GeorgeX](https://discourse.nodered.org/u/GeorgeX)\
**Replies:** 5\
**Last updated:** [22 August 2020 12:29 UTC](https://discourse.nodered.org/t/how-to-reset-rbe/31876 "2020-08-22T12:29:13Z")

</div>

I try to reset narrowband but maybe I don't understand how this works. 10 = PASS 10 = PASS 10 = PASS 12 = BLOCK because change of value compared to last output is greater or equal to 1 inject "reset" = to clear the …

---

## [Using exec node creates and Error 1 message even though it works](https://discourse.nodered.org/t/using-exec-node-creates-and-error-1-message-even-though-it-works/31854)

<div class="topic-metadata">

**Author:** [@shel](https://discourse.nodered.org/u/shel)\
**Replies:** 11\
**Last updated:** [22 August 2020 09:46 UTC](https://discourse.nodered.org/t/using-exec-node-creates-and-error-1-message-even-though-it-works/31854 "2020-08-22T09:46:19Z")

</div>

I have a watch directory node feeding into an exec node that watches for a file to be placed on a FTP server on the Pi. When the file arrives the command moves the file to another location on the FTP server for use. The …

---

## [My recent journey into MQTT and messages. Two handy nodes to help you](https://discourse.nodered.org/t/my-recent-journey-into-mqtt-and-messages-two-handy-nodes-to-help-you/31863)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [22 August 2020 09:33 UTC](https://discourse.nodered.org/t/my-recent-journey-into-mqtt-and-messages-two-handy-nodes-to-help-you/31863 "2020-08-22T09:33:42Z")

</div>

Preface: This was brought about because of a lot of help I got from other people in my quest to send complicated messages over MQTT. Thanks to @knolleary, @JGKK for helping me .... resolve the problem and for the inspi…

---

## [Filtering message from Tesla Node](https://discourse.nodered.org/t/filtering-message-from-tesla-node/31871)

<div class="topic-metadata">

**Author:** [@RobTester](https://discourse.nodered.org/u/RobTester)\
**Replies:** 3\
**Last updated:** [22 August 2020 09:28 UTC](https://discourse.nodered.org/t/filtering-message-from-tesla-node/31871 "2020-08-22T09:28:10Z")

</div>

Hi, I'm new to Node Red, and have a question. How do i filter the msg.payload output from a Tesla Node. So that I have only the output "battery\_level" value that I can send with a Mqtt node to a Domoticz Device with IDX…

---

## [Alarm Clock / Setting inject to start withl global variable](https://discourse.nodered.org/t/alarm-clock-setting-inject-to-start-withl-global-variable/31831)

<div class="topic-metadata">

**Author:** [@zimb86](https://discourse.nodered.org/u/zimb86)\
**Replies:** 4\
**Last updated:** [22 August 2020 07:27 UTC](https://discourse.nodered.org/t/alarm-clock-setting-inject-to-start-withl-global-variable/31831 "2020-08-22T07:27:34Z")

</div>

Hi all, I´m looking for the easiest way to start a flow at a specific time. This time ist actually saved in a global variable global.alarmclock\_time I tried to achieve this using "inject enhanced" and set tje global v…

---

## [Extract values from complex payload](https://discourse.nodered.org/t/extract-values-from-complex-payload/31866)

<div class="topic-metadata">

**Author:** [@anakaine](https://discourse.nodered.org/u/anakaine)\
**Replies:** 3\
**Last updated:** [22 August 2020 06:55 UTC](https://discourse.nodered.org/t/extract-values-from-complex-payload/31866 "2020-08-22T06:55:21Z")

</div>

I'm a relative newbie to Node-Red, but capable developer in some other languages. What would be the best way to approach extracting the Temprature and Humidity values from the following payload? The payload is being rec…

---

## [Hex to Base64 function](https://discourse.nodered.org/t/hex-to-base64-function/31864)

<div class="topic-metadata">

**Author:** [@vangalvin](https://discourse.nodered.org/u/vangalvin)\
**Replies:** 4\
**Last updated:** [22 August 2020 06:22 UTC](https://discourse.nodered.org/t/hex-to-base64-function/31864 "2020-08-22T06:22:34Z")

</div>

The project I am working on requires me to set the ID and channel data of a device. Both are in HEX, I managed to get the ID data working fine but the channel data is an issue becaue its a 16bit hex value 0x00FF,0x000…

---

## [Help with how to parse this message](https://discourse.nodered.org/t/help-with-how-to-parse-this-message/31817)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 44\
**Last updated:** [22 August 2020 01:52 UTC](https://discourse.nodered.org/t/help-with-how-to-parse-this-message/31817 "2020-08-22T01:52:30Z")

</div>

This is the message: rgb,3,0,20,0 And I want to switch the message depending on the (in this case) 3. It can be 1, 2 or 3. Thanks in advance.

---

## [Info for Windows 10 users: v2004 WSL updates](https://discourse.nodered.org/t/info-for-windows-10-users-v2004-wsl-updates/31841)

<div class="topic-metadata">

**Author:** [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Replies:** 2\
**Last updated:** [22 August 2020 00:16 UTC](https://discourse.nodered.org/t/info-for-windows-10-users-v2004-wsl-updates/31841 "2020-08-22T00:16:29Z")

</div>

Hi all, quick update for anyone using Windows 10 with Node-RED. The 2004 version recently released has updated Windows Subsystem for Linux (WSL) to v2. It now uses a full Linux kernel and has greatly speeded up filing s…

---

## [Content-Type of HTTP In node](https://discourse.nodered.org/t/content-type-of-http-in-node/30720)

<div class="topic-metadata">

**Author:** [@augjoh](https://discourse.nodered.org/u/augjoh)\
**Replies:** 9\
**Last updated:** [21 August 2020 22:55 UTC](https://discourse.nodered.org/t/content-type-of-http-in-node/30720 "2020-08-21T22:55:26Z")

</div>

Our project runs node-red standalone and provides an OCSP (RFC 6960) service. The OCSP requests are received using an HTTP In node. When receiving an HTTP POST request with Content-Type: application/ocsp-request, the bod…

---

## [Unable to resolve host \<Raspberry Pi Host name\>: Name or service not known](https://discourse.nodered.org/t/unable-to-resolve-host-raspberry-pi-host-name-name-or-service-not-known/19900)

<div class="topic-metadata">

**Author:** [@AungKL](https://discourse.nodered.org/u/AungKL)\
**Replies:** 6\
**Last updated:** [21 August 2020 21:27 UTC](https://discourse.nodered.org/t/unable-to-resolve-host-raspberry-pi-host-name-name-or-service-not-known/19900 "2020-08-21T21:27:41Z")

</div>

Hello, I have Raspberry Pi (model B plus v1.2) and configure as headless system with VNC. When I start the node red, I found this message as follow: sudo: unable to resolve host RPiBPlusv12: Name or service not known …

---

## [Downloading csv file generated by MySQL database after pressing a form button](https://discourse.nodered.org/t/downloading-csv-file-generated-by-mysql-database-after-pressing-a-form-button/31486)

<div class="topic-metadata">

**Author:** [@SinZapatillas](https://discourse.nodered.org/u/SinZapatillas)\
**Replies:** 30\
**Last updated:** [21 August 2020 19:39 UTC](https://discourse.nodered.org/t/downloading-csv-file-generated-by-mysql-database-after-pressing-a-form-button/31486 "2020-08-21T19:39:06Z")

</div>

Hello! I want to download the file from the node-red dashborad from a remote computer, into the download folder of it. Right now Im using an static IP but not when the product is launched. I have used the flow @Steve-Mc…

---

## [Custom url for my flow](https://discourse.nodered.org/t/custom-url-for-my-flow/31820)

<div class="topic-metadata">

**Author:** [@RobW](https://discourse.nodered.org/u/RobW)\
**Replies:** 13\
**Last updated:** [21 August 2020 16:19 UTC](https://discourse.nodered.org/t/custom-url-for-my-flow/31820 "2020-08-21T16:19:50Z")

</div>

Hi! I have discovered Node Red and have been playing around with a lot of fun. I have created a weather site with some info on it like temp, humidity, wind. But....I can't figure out how to make it accessible through 1…

---

## [Injecting multiple JSON objects in a database](https://discourse.nodered.org/t/injecting-multiple-json-objects-in-a-database/31842)

<div class="topic-metadata">

**Author:** [@SinZapatillas](https://discourse.nodered.org/u/SinZapatillas)\
**Replies:** 0\
**Last updated:** [21 August 2020 15:20 UTC](https://discourse.nodered.org/t/injecting-multiple-json-objects-in-a-database/31842 "2020-08-21T15:20:48Z")

</div>

Hello! I have a data logger in a device that captures dat in an SD at a 100Hz data rate from 6 sensors. Every 0.01s I collect the data and create a JSON object that looks like this: lectura = { "ID" : 1, "Fuerza" : …

---

## [Unable to start node-red on boot on a Raspberry pi 4](https://discourse.nodered.org/t/unable-to-start-node-red-on-boot-on-a-raspberry-pi-4/31838)

<div class="topic-metadata">

**Author:** [@vongomben](https://discourse.nodered.org/u/vongomben)\
**Replies:** 3\
**Last updated:** [21 August 2020 15:17 UTC](https://discourse.nodered.org/t/unable-to-start-node-red-on-boot-on-a-raspberry-pi-4/31838 "2020-08-21T15:17:10Z")

</div>

Hi forum. Not sure whether this is hardware-related, but I'm not able to see my node-red run on boot all the times i boot it. It dows a good 50% of times (I'm afraid too unreliable). I'm on the latest raspby OS and on …

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

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