# General

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

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

**Page:** 930

---

## [Persistent data not being saved](https://discourse.nodered.org/t/persistent-data-not-being-saved/5680)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 16\
**Last updated:** [12 December 2018 11:29 UTC](https://discourse.nodered.org/t/persistent-data-not-being-saved/5680 "2018-12-12T11:29:14Z")

</div>

Using v0.19.5 script installed, on a Pi running Debian Stretch. Persistence to disk generally works well for me, but noticed that node-red-stop does not initiate a flush to disk, and this has caught me out a few times n…

---

## [Input type date format "dd-MM-yyyy"](https://discourse.nodered.org/t/input-type-date-format-dd-mm-yyyy/5679)

<div class="topic-metadata">

**Author:** [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Replies:** 3\
**Last updated:** [12 December 2018 10:07 UTC](https://discourse.nodered.org/t/input-type-date-format-dd-mm-yyyy/5679 "2018-12-12T10:07:23Z")

</div>

I have an input type date \> \<input type="date" ng-model="msg.payload.data1" id="date" name="Date" \> when i dispaly it in template mustache node, i get like this i want to change the format of date. i have tried this…

---

## [Node-red-node-serialport 0.6.8 not working (0.4.2 do)](https://discourse.nodered.org/t/node-red-node-serialport-0-6-8-not-working-0-4-2-do/5007)

<div class="topic-metadata">

**Author:** [@KirchnerAlex](https://discourse.nodered.org/u/KirchnerAlex)\
**Replies:** 29\
**Last updated:** [11 December 2018 20:39 UTC](https://discourse.nodered.org/t/node-red-node-serialport-0-6-8-not-working-0-4-2-do/5007 "2018-12-11T20:39:10Z")

</div>

Sorry about that generally topic, but i do not really know how to ask. I have a heatpump system with an USB-Interface which sends and receives simple Strings like "13 1234" Want ro read/write this strings. With my Dev…

---

## [How to pass device token to sns](https://discourse.nodered.org/t/how-to-pass-device-token-to-sns/5687)

<div class="topic-metadata">

**Author:** [@akhilendharreddy](https://discourse.nodered.org/u/akhilendharreddy)\
**Replies:** 0\
**Last updated:** [11 December 2018 19:06 UTC](https://discourse.nodered.org/t/how-to-pass-device-token-to-sns/5687 "2018-12-11T19:06:38Z")

</div>

Hi, i am trying integrate AWS SNS in node red, where firstly i have to send the deviceToken to register particular device, i am trying to use SNS node where i can manually set the token, but i have to pass as input from …

---

## [Compare checkbox checked value](https://discourse.nodered.org/t/compare-checkbox-checked-value/5671)

<div class="topic-metadata">

**Author:** [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Replies:** 5\
**Last updated:** [11 December 2018 13:02 UTC](https://discourse.nodered.org/t/compare-checkbox-checked-value/5671 "2018-12-11T13:02:11Z")

</div>

i'am sending msg.payload from dashboard template node to a mustache template node. what i want to do is to check if the input came from the first template is checked or not, in my second template. i have tried a lot of c…

---

## [Retaining the data format when using MQTT?](https://discourse.nodered.org/t/retaining-the-data-format-when-using-mqtt/5655)

<div class="topic-metadata">

**Author:** [@v8dave](https://discourse.nodered.org/u/v8dave)\
**Replies:** 3\
**Last updated:** [11 December 2018 04:20 UTC](https://discourse.nodered.org/t/retaining-the-data-format-when-using-mqtt/5655 "2018-12-11T04:20:05Z")

</div>

I have a second Raspberry Pi3 acting as a node for an Enocean switch located in another room and I need to be able to pass the Enocean data packet to the primary Node-red running on a Pi3. I am trying to do this via the …

---

## [Node-Red on android phone advise](https://discourse.nodered.org/t/node-red-on-android-phone-advise/5621)

<div class="topic-metadata">

**Author:** [@kenkoknz](https://discourse.nodered.org/u/kenkoknz)\
**Replies:** 2\
**Last updated:** [11 December 2018 00:51 UTC](https://discourse.nodered.org/t/node-red-on-android-phone-advise/5621 "2018-12-11T00:51:24Z")

</div>

Hi All, If anyone has a play with the termux api, would appreciate some advise on NR on android platform. Installed NR on android phone and pleasantly surprised at how fast and easy the installation was, seem to be much…

---

## [Memory leak, what am I doing wrong?](https://discourse.nodered.org/t/memory-leak-what-am-i-doing-wrong/627)

<div class="topic-metadata">

**Author:** [@wb666greene](https://discourse.nodered.org/u/wb666greene)\
**Replies:** 28\
**Last updated:** [10 December 2018 23:12 UTC](https://discourse.nodered.org/t/memory-leak-what-am-i-doing-wrong/627 "2018-12-10T23:12:22Z")

</div>

I’m using a Raspberry Pi 3B+ to add AI “person detector” to a commercial video security DVR. Its streaming protocols are proprietary so I use its “ftp snapshots” feature as the source of images to analyse. I use a simp…

---

## [Removing text from string](https://discourse.nodered.org/t/removing-text-from-string/5626)

<div class="topic-metadata">

**Author:** [@mason08](https://discourse.nodered.org/u/mason08)\
**Replies:** 6\
**Last updated:** [10 December 2018 21:28 UTC](https://discourse.nodered.org/t/removing-text-from-string/5626 "2018-12-10T21:28:18Z")

</div>

Im trying to remove text from a string before sending it to a function node to then be converted over to a number. How would i do that? Im receiving data on serial from arduino and running that through a switch node. …

---

## [Start node-red on boot on osx pm2](https://discourse.nodered.org/t/start-node-red-on-boot-on-osx-pm2/5625)

<div class="topic-metadata">

**Author:** [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Replies:** 6\
**Last updated:** [10 December 2018 19:56 UTC](https://discourse.nodered.org/t/start-node-red-on-boot-on-osx-pm2/5625 "2018-12-10T19:56:24Z")

</div>

I run all the steps that are written to auto boot NR on osx But i cannot get it to work... Is there another way to start node red on boot on osx? I think it has to do with the command i have to do below. Checking the…

---

## [Executing bash commands from a sidebar](https://discourse.nodered.org/t/executing-bash-commands-from-a-sidebar/5641)

<div class="topic-metadata">

**Author:** [@malinthasa](https://discourse.nodered.org/u/malinthasa)\
**Replies:** 2\
**Last updated:** [10 December 2018 18:11 UTC](https://discourse.nodered.org/t/executing-bash-commands-from-a-sidebar/5641 "2018-12-10T18:11:02Z")

</div>

Hi, I am developing a sidebar to monitor and manage external server (running locally). I need to execute several different bash commands (ex: ping, java .etc) from my sidebar for monitoring and management tasks. Accordi…

---

## [Get data from http](https://discourse.nodered.org/t/get-data-from-http/5640)

<div class="topic-metadata">

**Author:** [@ulfdogg](https://discourse.nodered.org/u/ulfdogg)\
**Replies:** 4\
**Last updated:** [10 December 2018 16:17 UTC](https://discourse.nodered.org/t/get-data-from-http/5640 "2018-12-10T16:17:45Z")

</div>

Hi, I have got a question about splitting http request. I want to get one part of a string from a website. Therefore I am using http request and then I would like to split it. After I split it, I get two strings in th…

---

## [Ng-click send values](https://discourse.nodered.org/t/ng-click-send-values/5636)

<div class="topic-metadata">

**Author:** [@hathemi](https://discourse.nodered.org/u/hathemi)\
**Replies:** 6\
**Last updated:** [10 December 2018 14:48 UTC](https://discourse.nodered.org/t/ng-click-send-values/5636 "2018-12-10T14:48:46Z")

</div>

when i click at button1, i found that msg.archive take value 10, but, when i click at button2 msg.archive return undefined. can anyone explain me why ? and how can i keep the value of each button ?? And thank you. \> …

---

## [How to create own UI for node-red + how to give access of node-red to every new user](https://discourse.nodered.org/t/how-to-create-own-ui-for-node-red-how-to-give-access-of-node-red-to-every-new-user/5639)

<div class="topic-metadata">

**Author:** [@sam](https://discourse.nodered.org/u/sam)\
**Replies:** 1\
**Last updated:** [10 December 2018 14:20 UTC](https://discourse.nodered.org/t/how-to-create-own-ui-for-node-red-how-to-give-access-of-node-red-to-every-new-user/5639 "2018-12-10T14:20:05Z")

</div>

How to create Own UI for node-red and how to give access of node-red to every new user? When they create their own project not everyone can see their work or custom node. Note : Every user has different machine.

---

## [Twitter configuration node stays active](https://discourse.nodered.org/t/twitter-configuration-node-stays-active/5634)

<div class="topic-metadata">

**Author:** [@Sjoerd](https://discourse.nodered.org/u/Sjoerd)\
**Replies:** 2\
**Last updated:** [10 December 2018 12:23 UTC](https://discourse.nodered.org/t/twitter-configuration-node-stays-active/5634 "2018-12-10T12:23:06Z")

</div>

Hello, i am using Node-RED v 0.19.5 with node-red-node-twitter v 1.1.4. I made a flow without changing the API keys and - of course - I received an error ("Could not authenticate you."). After I created new API keys and…

---

## [Return only latest max number in message](https://discourse.nodered.org/t/return-only-latest-max-number-in-message/5535)

<div class="topic-metadata">

**Author:** [@MANNAS3](https://discourse.nodered.org/u/MANNAS3)\
**Replies:** 4\
**Last updated:** [10 December 2018 11:28 UTC](https://discourse.nodered.org/t/return-only-latest-max-number-in-message/5535 "2018-12-10T11:28:08Z")

</div>

I have a couple of function nodes in which I am using context in order to compare the current with older message received and check which one is greater than the other and save the new value to node context in case it is…

---

## [Google calendar Modifying events](https://discourse.nodered.org/t/google-calendar-modifying-events/5605)

<div class="topic-metadata">

**Author:** [@adtwomey](https://discourse.nodered.org/u/adtwomey)\
**Replies:** 2\
**Last updated:** [10 December 2018 10:18 UTC](https://discourse.nodered.org/t/google-calendar-modifying-events/5605 "2018-12-10T10:18:48Z")

</div>

Hi guys is there a way to Modifying events with the Google Calendar API in node red. or do I have to add this coda this guy show's here.. in the video?https://www.youtube.com/watch?v=Qd64idiKZWw&feature=youtu.be And we'…

---

## [Problems with email node and twilio sms node(Error: connect ehostunreached)](https://discourse.nodered.org/t/problems-with-email-node-and-twilio-sms-node-error-connect-ehostunreached/5632)

<div class="topic-metadata">

**Author:** [@ThanosMel](https://discourse.nodered.org/u/ThanosMel)\
**Replies:** 2\
**Last updated:** [10 December 2018 10:04 UTC](https://discourse.nodered.org/t/problems-with-email-node-and-twilio-sms-node-error-connect-ehostunreached/5632 "2018-12-10T10:04:30Z")

</div>

I am facing a really weird issue. I am trying to send emails and sms via nodered and everything is fine when i run nodered from my home network. On my college presentation the emails and sms did not send at all and the e…

---

## [Getting page / file from server using Windows credentials](https://discourse.nodered.org/t/getting-page-file-from-server-using-windows-credentials/5031)

<div class="topic-metadata">

**Author:** [@PetrMares](https://discourse.nodered.org/u/PetrMares)\
**Replies:** 4\
**Last updated:** [10 December 2018 05:41 UTC](https://discourse.nodered.org/t/getting-page-file-from-server-using-windows-credentials/5031 "2018-12-10T05:41:01Z")

</div>

Hello, I need to get and process file with XML content which is on server within the internal network. There is used Windows Authentication. I didn't find useful flow in library. Tried to find way on internet too, but wi…

---

## [Converting MQTT location to GEOFENCE GPS](https://discourse.nodered.org/t/converting-mqtt-location-to-geofence-gps/5629)

<div class="topic-metadata">

**Author:** [@hvddrift](https://discourse.nodered.org/u/hvddrift)\
**Replies:** 2\
**Last updated:** [10 December 2018 02:58 UTC](https://discourse.nodered.org/t/converting-mqtt-location-to-geofence-gps/5629 "2018-12-10T02:58:43Z")

</div>

Hi My understanding of Java is quite low, however, I would like some help writing a function. My mqtt device tracker gives this payload: 12/10/2018, 11:47:33 AM\[node: 978c90cb.73b7\] zanzito/shared\_locations/my\_cell :…

---

## [Need help for my first function](https://discourse.nodered.org/t/need-help-for-my-first-function/5612)

<div class="topic-metadata">

**Author:** [@marsab](https://discourse.nodered.org/u/marsab)\
**Replies:** 1\
**Last updated:** [9 December 2018 18:04 UTC](https://discourse.nodered.org/t/need-help-for-my-first-function/5612 "2018-12-09T18:04:18Z")

</div>

Hi, I'm struggling with a very basic principle. I would like to trigger a custom message payload based on a time trigger. For example, if it's 9:00 AM I'd like to send this payload "colorTemp":153 to another node. Ri…

---

## [Conditions - alarm project](https://discourse.nodered.org/t/conditions-alarm-project/5602)

<div class="topic-metadata">

**Author:** [@Glorifiedg](https://discourse.nodered.org/u/Glorifiedg)\
**Replies:** 3\
**Last updated:** [9 December 2018 13:17 UTC](https://discourse.nodered.org/t/conditions-alarm-project/5602 "2018-12-09T13:17:00Z")

</div>

Hi all! It's my first node red and I'm trying to make an mqtt arduino alarm. I need help on how can I do something like this: If door\_open\_topic="open" AND alarm\_topic="armed" THEN do this and that... Thanks for the h…

---

## [Load on my RPI seems a bit high](https://discourse.nodered.org/t/load-on-my-rpi-seems-a-bit-high/5596)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [9 December 2018 09:07 UTC](https://discourse.nodered.org/t/load-on-my-rpi-seems-a-bit-high/5596 "2018-12-09T09:07:09Z")

</div>

Sorry folks if it is not covered by NodeRed, but I have to start somewhere. I have a RPI and after recent problems things have gone ..... weird. This is the machine specs: alias sysinfo='cat /sys/firmware/devicetree/b…

---

## [\[Resolved\]: Getting the underlying date of the OS with exec node](https://discourse.nodered.org/t/resolved-getting-the-underlying-date-of-the-os-with-exec-node/5580)

<div class="topic-metadata">

**Author:** [@IoTPlay](https://discourse.nodered.org/u/IoTPlay)\
**Replies:** 8\
**Last updated:** [8 December 2018 20:15 UTC](https://discourse.nodered.org/t/resolved-getting-the-underlying-date-of-the-os-with-exec-node/5580 "2018-12-08T20:15:39Z")

</div>

Hi, my lights turns on too late, I checked from the OS side (I run docker), bot the host OS and the docker OS - the timezone is set correctly, but I want to ensure from Node-RED side the time is correct. I use the exec n…

---

## [Context in v0.19.4 causes crash after a couple of refreshes? maybe?](https://discourse.nodered.org/t/context-in-v0-19-4-causes-crash-after-a-couple-of-refreshes-maybe/5590)

<div class="topic-metadata">

**Author:** [@btsimonh](https://discourse.nodered.org/u/btsimonh)\
**Replies:** 3\
**Last updated:** [8 December 2018 19:11 UTC](https://discourse.nodered.org/t/context-in-v0-19-4-causes-crash-after-a-couple-of-refreshes-maybe/5590 "2018-12-08T19:11:41Z")

</div>

Hi All, Just found a bad one. I have a flow which puts some data in global. This data contains references to BLE noble devices, which are HUGE trees with circular references. I just refreshed my RPi, and put on the l…

---

## [Change node not working as I expected](https://discourse.nodered.org/t/change-node-not-working-as-i-expected/5584)

<div class="topic-metadata">

**Author:** [@Dave](https://discourse.nodered.org/u/Dave)\
**Replies:** 4\
**Last updated:** [8 December 2018 19:11 UTC](https://discourse.nodered.org/t/change-node-not-working-as-i-expected/5584 "2018-12-08T19:11:10Z")

</div>

Hi I am trying to recreate the following format object topic: "owl" payload: object Name: "53" IP: "27" so I understand that to get the IP from this result I would access msg.payload.IP fine! But how do I recrea…

---

## [ReferenceError: SunCalc is not defined](https://discourse.nodered.org/t/referenceerror-suncalc-is-not-defined/5540)

<div class="topic-metadata">

**Author:** [@or78rXxZ](https://discourse.nodered.org/u/or78rXxZ)\
**Replies:** 9\
**Last updated:** [8 December 2018 16:19 UTC](https://discourse.nodered.org/t/referenceerror-suncalc-is-not-defined/5540 "2018-12-08T16:19:35Z")

</div>

I really have no idea what I am doing :slight\_smile: I would like to use suncalc to get the sunset and sunrise times for a day. I installed suncalc in node red and npm. The sunrise node in node red works ok. I added S…

---

## [Transfering info from Node-Red to Ardunio mega. Rookie (Deactivated as of incorrect setup.)](https://discourse.nodered.org/t/transfering-info-from-node-red-to-ardunio-mega-rookie-deactivated-as-of-incorrect-setup/5563)

<div class="topic-metadata">

**Author:** [@Christian](https://discourse.nodered.org/u/Christian)\
**Replies:** 2\
**Last updated:** [8 December 2018 15:10 UTC](https://discourse.nodered.org/t/transfering-info-from-node-red-to-ardunio-mega-rookie-deactivated-as-of-incorrect-setup/5563 "2018-12-08T15:10:30Z")

</div>

Hello there! I'm not good at this, so forgive me. Not too long ago, I had trouble with a CSS selector, and the problem was fortunately solved, however. I now stand with the problem that I'm trying to transfer (a strin…

---

## [Arduino serial data and alarms](https://discourse.nodered.org/t/arduino-serial-data-and-alarms/5484)

<div class="topic-metadata">

**Author:** [@mason08](https://discourse.nodered.org/u/mason08)\
**Replies:** 10\
**Last updated:** [8 December 2018 01:18 UTC](https://discourse.nodered.org/t/arduino-serial-data-and-alarms/5484 "2018-12-08T01:18:31Z")

</div>

I was trying to use a max31855 with node red but didnt have much success. I did how ever have a Arduino nano thats able to read the data with no issue. Im currently seeing data from the Arduino over the serial node. I…

---

## [Broke node-red - can I fix it somehow?](https://discourse.nodered.org/t/broke-node-red-can-i-fix-it-somehow/5574)

<div class="topic-metadata">

**Author:** [@Samuel](https://discourse.nodered.org/u/Samuel)\
**Replies:** 5\
**Last updated:** [7 December 2018 23:19 UTC](https://discourse.nodered.org/t/broke-node-red-can-i-fix-it-somehow/5574 "2018-12-07T23:19:57Z")

</div>

Guys, I have broke my node-red. I have installed few new packages and it won't start. this is full log from startup. I have already reinstalled NR, that didn't help. Any ideas? Thank you Welcome to Node-RED ========…

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

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