# General

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

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

**Page:** 887

---

## [Access a value on message](https://discourse.nodered.org/t/access-a-value-on-message/10925)

<div class="topic-metadata">

**Author:** [@davidcgu](https://discourse.nodered.org/u/davidcgu)\
**Replies:** 6\
**Last updated:** [13 May 2019 13:22 UTC](https://discourse.nodered.org/t/access-a-value-on-message/10925 "2019-05-13T13:22:58Z")

</div>

Good afternoon If is not a bit f abuse can someone help me to access prinTime (as example) on message below in order to get it as mesg.payload? {"\_timestamp": 1557336569, "progress": 43, "printer\_data": {"progress": …

---

## [Can’t connect NR to control Kodi?](https://discourse.nodered.org/t/can-t-connect-nr-to-control-kodi/11048)

<div class="topic-metadata">

**Author:** [@nodecentral](https://discourse.nodered.org/u/nodecentral)\
**Replies:** 2\
**Last updated:** [12 May 2019 22:01 UTC](https://discourse.nodered.org/t/can-t-connect-nr-to-control-kodi/11048 "2019-05-12T22:01:36Z")

</div>

Hi I’ve tried a number of ways to connect to my Kodi installation but had no luck, I’ve tried the Kodi node (which just keeps showing reconnecting), I’ve also tried a tcp node (which shows connected but I can’t get that…

---

## [Storing an object into the flow](https://discourse.nodered.org/t/storing-an-object-into-the-flow/11036)

<div class="topic-metadata">

**Author:** [@Aviation](https://discourse.nodered.org/u/Aviation)\
**Replies:** 4\
**Last updated:** [12 May 2019 19:35 UTC](https://discourse.nodered.org/t/storing-an-object-into-the-flow/11036 "2019-05-12T19:35:24Z")

</div>

Hi all, actually, storing an object into the flow drives me crazy. If I process the code below, I got always the String "\[object Object\]" stored in the flow and even if I return it to the debug it is the same string re…

---

## [Database Store and Forward options](https://discourse.nodered.org/t/database-store-and-forward-options/11011)

<div class="topic-metadata">

**Author:** [@pderbyshire](https://discourse.nodered.org/u/pderbyshire)\
**Replies:** 23\
**Last updated:** [12 May 2019 18:50 UTC](https://discourse.nodered.org/t/database-store-and-forward-options/11011 "2019-05-12T18:50:12Z")

</div>

Anyone know of nodes that can assist with Database (MSSQL, MySQL, Oracle, etc) store and forward functionality? For example it will appear I am storing data to Table1 in Database1 on Server1. If I am unable to store a …

---

## [Get a value from website](https://discourse.nodered.org/t/get-a-value-from-website/11043)

<div class="topic-metadata">

**Author:** [@HaVi](https://discourse.nodered.org/u/HaVi)\
**Replies:** 5\
**Last updated:** [12 May 2019 17:32 UTC](https://discourse.nodered.org/t/get-a-value-from-website/11043 "2019-05-12T17:32:47Z")

</div>

Hi, I want to use a value from a website to write it in my Influx database. The HTTP-request URL I use in Node-RED is https://waterinfo.rws.nl/#!/details/publiek/waterhoogte-t-o-v-nap/Tiel-Waal(TIEW)/Waterhoogte\_\_\_20Op…

---

## [Problem with exec node](https://discourse.nodered.org/t/problem-with-exec-node/11014)

<div class="topic-metadata">

**Author:** [@mike67](https://discourse.nodered.org/u/mike67)\
**Replies:** 6\
**Last updated:** [12 May 2019 14:17 UTC](https://discourse.nodered.org/t/problem-with-exec-node/11014 "2019-05-12T14:17:03Z")

</div>

Hello I think I have problem with the exec node. I don't get the same result when I use the same command in an exec node or in the putty console. For example, I try to use ngrok. (but I don't use the ngrok node, becau…

---

## [Node-red crash when network is down?](https://discourse.nodered.org/t/node-red-crash-when-network-is-down/11034)

<div class="topic-metadata">

**Author:** [@patwiken](https://discourse.nodered.org/u/patwiken)\
**Replies:** 2\
**Last updated:** [12 May 2019 10:18 UTC](https://discourse.nodered.org/t/node-red-crash-when-network-is-down/11034 "2019-05-12T10:18:02Z")

</div>

Hi, sometimes Node-red is crashing and I think it's when my network is down. I don' know why there is this behaviour. Here are the logs when the crash occurs. May 11 20:20:00 Home-server node-red\[1234\]: 11 May 20:20:00…

---

## [Errors when trying to compare dates (every 5s) :"Function tried to send a message of type string"](https://discourse.nodered.org/t/errors-when-trying-to-compare-dates-every-5s-function-tried-to-send-a-message-of-type-string/11028)

<div class="topic-metadata">

**Author:** [@xoani](https://discourse.nodered.org/u/xoani)\
**Replies:** 2\
**Last updated:** [12 May 2019 05:13 UTC](https://discourse.nodered.org/t/errors-when-trying-to-compare-dates-every-5s-function-tried-to-send-a-message-of-type-string/11028 "2019-05-12T05:13:44Z")

</div>

Hello. I need to be able to check when the date changes (when the day is over and a new one starts) ever 5 seconds. For that I have a function node that checks the date and saves it in a msg.var , another delay node for …

---

## [Ngrok node doesn't work : no return message](https://discourse.nodered.org/t/ngrok-node-doesnt-work-no-return-message/11015)

<div class="topic-metadata">

**Author:** [@mike67](https://discourse.nodered.org/u/mike67)\
**Replies:** 3\
**Last updated:** [11 May 2019 21:30 UTC](https://discourse.nodered.org/t/ngrok-node-doesnt-work-no-return-message/11015 "2019-05-11T21:30:39Z")

</div>

Hello I try to use ngrok node. But it doesn't work. here is my code :slight\_smile: \[{"id":"80ffda43.b67d08","type":"ngrok","z":"15f53d11.3e2703","port":"https://localhost:8081","creds":"f1427d00.42191","region":"us",…

---

## [Halting flow based on state of light, or better way?](https://discourse.nodered.org/t/halting-flow-based-on-state-of-light-or-better-way/10765)

<div class="topic-metadata">

**Author:** [@garnern2](https://discourse.nodered.org/u/garnern2)\
**Replies:** 14\
**Last updated:** [11 May 2019 19:56 UTC](https://discourse.nodered.org/t/halting-flow-based-on-state-of-light-or-better-way/10765 "2019-05-11T19:56:33Z")

</div>

Greetings. I'm a complete n00b when it comes to Node Red, but also a dedicated learner, so I'm looking forward to contributing as I become more familiar with how things work. For my first string, I want to turn on our b…

---

## [How to split mqtt tag values](https://discourse.nodered.org/t/how-to-split-mqtt-tag-values/10794)

<div class="topic-metadata">

**Author:** [@muharremsari](https://discourse.nodered.org/u/muharremsari)\
**Replies:** 12\
**Last updated:** [11 May 2019 11:30 UTC](https://discourse.nodered.org/t/how-to-split-mqtt-tag-values/10794 "2019-05-11T11:30:19Z")

</div>

Have a two tags or more recived from mqtt broker. How to split tag from each other for seperated outputs? Best regards

---

## [Nested types get messed up when passed to more than one node](https://discourse.nodered.org/t/nested-types-get-messed-up-when-passed-to-more-than-one-node/11006)

<div class="topic-metadata">

**Author:** [@Holger-Will](https://discourse.nodered.org/u/Holger-Will)\
**Replies:** 6\
**Last updated:** [11 May 2019 02:46 UTC](https://discourse.nodered.org/t/nested-types-get-messed-up-when-passed-to-more-than-one-node/11006 "2019-05-11T02:46:19Z")

</div>

I came across some weired behavior: consider the following function node: class MyArray extends Array{} class MyThing { constructor(){ this.arr = new MyArray() } } var thing = new MyThing() return {paylo…

---

## [Installing a timer for a switch](https://discourse.nodered.org/t/installing-a-timer-for-a-switch/10993)

<div class="topic-metadata">

**Author:** [@Unikumet](https://discourse.nodered.org/u/Unikumet)\
**Replies:** 7\
**Last updated:** [10 May 2019 17:16 UTC](https://discourse.nodered.org/t/installing-a-timer-for-a-switch/10993 "2019-05-10T17:16:27Z")

</div>

Hi all, I'm creating this topic in good faith that someone on this forum can be able to help a new Node-RED'er. I have made a basic flow which activates a function with a ON / OFF switch, connected to a LED light to di…

---

## [Renaming a file in JavaScript Node](https://discourse.nodered.org/t/renaming-a-file-in-javascript-node/10995)

<div class="topic-metadata">

**Author:** [@xoani](https://discourse.nodered.org/u/xoani)\
**Replies:** 2\
**Last updated:** [10 May 2019 16:57 UTC](https://discourse.nodered.org/t/renaming-a-file-in-javascript-node/10995 "2019-05-10T16:57:50Z")

</div>

I have this code in my Python3 Function Node os.rename('cont.json', '%s.json'% formated\_string) msg\['payload'\]='%s.json'% formated\_string return msg It renames the file cont.json as formated\_string.json (formated\_stri…

---

## [How do you get only the last number that's outputted?](https://discourse.nodered.org/t/how-do-you-get-only-the-last-number-thats-outputted/11000)

<div class="topic-metadata">

**Author:** [@oaltakrouri](https://discourse.nodered.org/u/oaltakrouri)\
**Replies:** 3\
**Last updated:** [10 May 2019 16:19 UTC](https://discourse.nodered.org/t/how-do-you-get-only-the-last-number-thats-outputted/11000 "2019-05-10T16:19:26Z")

</div>

So I am importing a CSV file that always adds new rows, and I want to get just one of the columns, but always from the last row. I should only have 1 number outputted. I figured out how to get the specific column by u…

---

## [Preserve / store configuration on nodes](https://discourse.nodered.org/t/preserve-store-configuration-on-nodes/10929)

<div class="topic-metadata">

**Author:** [@PaulKeates1](https://discourse.nodered.org/u/PaulKeates1)\
**Replies:** 2\
**Last updated:** [10 May 2019 15:07 UTC](https://discourse.nodered.org/t/preserve-store-configuration-on-nodes/10929 "2019-05-10T15:07:15Z")

</div>

Hi, First - thanks for writing an awesome tool! NR has helped us immensely in multiple areas. I want to be able to preserve / store / use parameters on nodes so that when they are deployed on a new instance of Node-RE…

---

## [PCA9685 Control](https://discourse.nodered.org/t/pca9685-control/10981)

<div class="topic-metadata">

**Author:** [@mhswa](https://discourse.nodered.org/u/mhswa)\
**Replies:** 1\
**Last updated:** [10 May 2019 14:54 UTC](https://discourse.nodered.org/t/pca9685-control/10981 "2019-05-10T14:54:44Z")

</div>

Hi All I've been tasked to build a small demo display at my work and I'm trying to figure out the best way to interface with my hardware. I have 3 servos and a ESC to control via adafruit PWM Hat (PCA9685) I've insta…

---

## [Xor encryption Arduino code To Node Red?](https://discourse.nodered.org/t/xor-encryption-arduino-code-to-node-red/10890)

<div class="topic-metadata">

**Author:** [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Replies:** 16\
**Last updated:** [10 May 2019 14:29 UTC](https://discourse.nodered.org/t/xor-encryption-arduino-code-to-node-red/10890 "2019-05-10T14:29:28Z")

</div>

Hi All, I am still looking for encryption of my data transmitted in 433MHZ .I am not looking for absolute security but just a tip so that my messages are not read and decrypted easily. I found an XOR encryption that lo…

---

## [Context variables in Python3 function node?](https://discourse.nodered.org/t/context-variables-in-python3-function-node/10994)

<div class="topic-metadata">

**Author:** [@xoani](https://discourse.nodered.org/u/xoani)\
**Replies:** 5\
**Last updated:** [10 May 2019 13:07 UTC](https://discourse.nodered.org/t/context-variables-in-python3-function-node/10994 "2019-05-10T13:07:04Z")

</div>

Hello. I am trying to store values in a flow variable and call it in the next function node. The problem is that I am using Python3 function nodes and I don't know how to work with flow variables in python. Can anyone s…

---

## [Restart node-red automatically](https://discourse.nodered.org/t/restart-node-red-automatically/10983)

<div class="topic-metadata">

**Author:** [@carlosglez](https://discourse.nodered.org/u/carlosglez)\
**Replies:** 7\
**Last updated:** [10 May 2019 11:15 UTC](https://discourse.nodered.org/t/restart-node-red-automatically/10983 "2019-05-10T11:15:50Z")

</div>

Hello, I want that if my node-red stops for some reason that it can be restarted by itself. I was thinking in using a python script with "os.system()" and then using "crontab -e" to init it in the start of the device. I…

---

## [How to set custom icon/color on a subflow?](https://discourse.nodered.org/t/how-to-set-custom-icon-color-on-a-subflow/10986)

<div class="topic-metadata">

**Author:** [@naamah75](https://discourse.nodered.org/u/naamah75)\
**Replies:** 4\
**Last updated:** [10 May 2019 11:14 UTC](https://discourse.nodered.org/t/how-to-set-custom-icon-color-on-a-subflow/10986 "2019-05-10T11:14:13Z")

</div>

it's possible to set a custom icon and color on a subflow? I would mean, not the icons available with node-red, but something like a uploaded png file.

---

## [How to implement a timeout on a subflow?](https://discourse.nodered.org/t/how-to-implement-a-timeout-on-a-subflow/10980)

<div class="topic-metadata">

**Author:** [@naamah75](https://discourse.nodered.org/u/naamah75)\
**Replies:** 2\
**Last updated:** [10 May 2019 09:04 UTC](https://discourse.nodered.org/t/how-to-implement-a-timeout-on-a-subflow/10980 "2019-05-10T09:04:43Z")

</div>

I would want to write a subflow that implement a modbus-rtu request and the relative reading of the response, but in case of no answer from the mosbus client I need to "exit" from subflow with a timeout output. I wouldn…

---

## [K-30 CO2 sensor](https://discourse.nodered.org/t/k-30-co2-sensor/3399)

<div class="topic-metadata">

**Author:** [@tramanah](https://discourse.nodered.org/u/tramanah)\
**Replies:** 14\
**Last updated:** [10 May 2019 07:31 UTC](https://discourse.nodered.org/t/k-30-co2-sensor/3399 "2019-05-10T07:31:21Z")

</div>

Hi, I am running this python script for monitoring CO2 level, the code is running perfectly. How i can convert this script into NODE RED. Thank you. #rpi serial connections #Python app to run a K-30 Sensor import ser…

---

## [Extremely slow loading of GUI](https://discourse.nodered.org/t/extremely-slow-loading-of-gui/10955)

<div class="topic-metadata">

**Author:** [@awasen](https://discourse.nodered.org/u/awasen)\
**Replies:** 4\
**Last updated:** [10 May 2019 05:35 UTC](https://discourse.nodered.org/t/extremely-slow-loading-of-gui/10955 "2019-05-10T05:35:17Z")

</div>

9 May 15:42:07 - \[info\] Welcome to Node-RED 9 May 15:42:07 - \[info\] Node-RED version: v0.20.5 9 May 15:42:07 - \[info\] Node.js version: v10.15.3 9 May 15:42:07 - \[info\] Linux 4.14.98-v7+ arm LE 9 May 15:42:09 - \[inf…

---

## [Replay of MQTT topics upon Deploy](https://discourse.nodered.org/t/replay-of-mqtt-topics-upon-deploy/10969)

<div class="topic-metadata">

**Author:** [@biz](https://discourse.nodered.org/u/biz)\
**Replies:** 3\
**Last updated:** [9 May 2019 21:18 UTC](https://discourse.nodered.org/t/replay-of-mqtt-topics-upon-deploy/10969 "2019-05-09T21:18:38Z")

</div>

Hello All. A fairly long time but intermintent user of Node-Red Love it! A tiny bit of background. I initially had node red 18.4 on my raspberry pi. Used it worked great but quickly expanded out of a raspberry pi since …

---

## [GET request is not working](https://discourse.nodered.org/t/get-request-is-not-working/10965)

<div class="topic-metadata">

**Author:** [@Tonna100](https://discourse.nodered.org/u/Tonna100)\
**Replies:** 2\
**Last updated:** [9 May 2019 18:49 UTC](https://discourse.nodered.org/t/get-request-is-not-working/10965 "2019-05-09T18:49:29Z")

</div>

Input object: msg.payload : {"object":"page","entry":\[{"id":"463445907732883","time":1557422097573,"messaging":\[{"recipient":{"id":"463445907732883"},"timestamp":1557422097573,"sender":{"id":"2091862310930299"},"postbac…

---

## [Function node wait for 24 hours/ irrigation timer (SOLVED)](https://discourse.nodered.org/t/function-node-wait-for-24-hours-irrigation-timer-solved/10963)

<div class="topic-metadata">

**Author:** [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)\
**Replies:** 3\
**Last updated:** [9 May 2019 16:47 UTC](https://discourse.nodered.org/t/function-node-wait-for-24-hours-irrigation-timer-solved/10963 "2019-05-09T16:47:54Z")

</div>

I have built a project to water my raised garden beds. I'm using an MCP3008 connected to a raspberry pi zero. All of the components are working great, but... I'd like to monitor and graph the data from the moisture and …

---

## [LG webOS and Raspberry Pi](https://discourse.nodered.org/t/lg-webos-and-raspberry-pi/10938)

<div class="topic-metadata">

**Author:** [@mshaz](https://discourse.nodered.org/u/mshaz)\
**Replies:** 4\
**Last updated:** [9 May 2019 15:49 UTC](https://discourse.nodered.org/t/lg-webos-and-raspberry-pi/10938 "2019-05-09T15:49:10Z")

</div>

Hi am newbie, I read that webOS can be installed in Raspberry Pi 3 but can node-red runs on LG webOS or i need another Pi than runs on Raspbian and use the node-red to control LG screen with Pi 3 running webOS? Thank y…

---

## [Hosting Node-RED and running "untrusted" flows](https://discourse.nodered.org/t/hosting-node-red-and-running-untrusted-flows/10961)

<div class="topic-metadata">

**Author:** [@BenediktMiller](https://discourse.nodered.org/u/BenediktMiller)\
**Replies:** 0\
**Last updated:** [9 May 2019 14:31 UTC](https://discourse.nodered.org/t/hosting-node-red-and-running-untrusted-flows/10961 "2019-05-09T14:31:44Z")

</div>

Hey, I am currently wondering if it is possible for me to host Node-Red for Users and let them create their own flows that run on my server/in my docker container. This setup would create one docker container per user. …

---

## [Extracting data from msg.payload](https://discourse.nodered.org/t/extracting-data-from-msg-payload/10945)

<div class="topic-metadata">

**Author:** [@Zain-Shahwar](https://discourse.nodered.org/u/Zain-Shahwar)\
**Replies:** 8\
**Last updated:** [9 May 2019 14:17 UTC](https://discourse.nodered.org/t/extracting-data-from-msg-payload/10945 "2019-05-09T14:17:22Z")

</div>

Hi Everyone, I have an Arduino connected serially to my Raspberry Pi where I have node-red running. Arduino is sensing temperature data from the sensor and is send to Raspberry Pi. Everything is working perfect but I h…

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

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