# General

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

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

**Page:** 871

---

## [Help SQLite error](https://discourse.nodered.org/t/help-sqlite-error/12837)

<div class="topic-metadata">

**Author:** [@RickyChan21](https://discourse.nodered.org/u/RickyChan21)\
**Replies:** 8\
**Last updated:** [3 July 2019 18:36 UTC](https://discourse.nodered.org/t/help-sqlite-error/12837 "2019-07-03T18:36:16Z")

</div>

Hello I have a MQTT node subscribed to an arduino with a temperature sensor. This node then is connected to a function that insert the value to SQLite database. I tried testing this using the terminal on linux to publis…

---

## [JSONata: to payload or not to payload](https://discourse.nodered.org/t/jsonata-to-payload-or-not-to-payload/12857)

<div class="topic-metadata">

**Author:** [@broo0ose](https://discourse.nodered.org/u/broo0ose)\
**Replies:** 2\
**Last updated:** [3 July 2019 18:42 UTC](https://discourse.nodered.org/t/jsonata-to-payload-or-not-to-payload/12857 "2019-07-03T18:42:33Z")

</div>

Hi, I may be missing something (probably) but I think there is some inconsistency in the way the JSONata Expression Editor works as opposed to the way expressions must be formatted in the node. In the test tab of the e…

---

## [Threading / async questions](https://discourse.nodered.org/t/threading-async-questions/12879)

<div class="topic-metadata">

**Author:** [@thatcadguy](https://discourse.nodered.org/u/thatcadguy)\
**Replies:** 1\
**Last updated:** [3 July 2019 18:34 UTC](https://discourse.nodered.org/t/threading-async-questions/12879 "2019-07-03T18:34:23Z")

</div>

I've got some heavy lifting to do and I don't want it to affect overall responsiveness. Trying to wrap my head around how everything is executed. My understanding of Node.js is that there's a single thread for the event …

---

## [Inject node payload](https://discourse.nodered.org/t/inject-node-payload/12868)

<div class="topic-metadata">

**Author:** [@Poodlepapa](https://discourse.nodered.org/u/Poodlepapa)\
**Replies:** 10\
**Last updated:** [3 July 2019 17:00 UTC](https://discourse.nodered.org/t/inject-node-payload/12868 "2019-07-03T17:00:30Z")

</div>

I'm trying to use an inject node to send a simple True and another to send false at a certain time. It's not working. I have the node set to payload, repeat at a specific time, and made sure that my Pi in in the correct…

---

## [Modify MQTT payload according to 24 hr timer](https://discourse.nodered.org/t/modify-mqtt-payload-according-to-24-hr-timer/12836)

<div class="topic-metadata">

**Author:** [@m\_elias](https://discourse.nodered.org/u/m_elias)\
**Replies:** 2\
**Last updated:** [3 July 2019 15:34 UTC](https://discourse.nodered.org/t/modify-mqtt-payload-according-to-24-hr-timer/12836 "2019-07-03T15:34:39Z")

</div>

Hi, I have an Arduino thermostat controlled via MQTT. I'd like to change my temperature set point higher in the morning and lower in the evening by a set amount. I was thinking of using BigTimer and a function node but …

---

## [Create KW/H from Watt](https://discourse.nodered.org/t/create-kw-h-from-watt/12776)

<div class="topic-metadata">

**Author:** [@sven](https://discourse.nodered.org/u/sven)\
**Replies:** 19\
**Last updated:** [3 July 2019 15:34 UTC](https://discourse.nodered.org/t/create-kw-h-from-watt/12776 "2019-07-03T15:34:33Z")

</div>

Hello I have connected an Energy Meter that brings me Actual Watt every Second. To Calculate the Energy Cost i need An KW/H Had anyone an odea how to make this? Greeting

---

## [Node red crash with bad node parameter](https://discourse.nodered.org/t/node-red-crash-with-bad-node-parameter/7671)

<div class="topic-metadata">

**Author:** [@Yuriy](https://discourse.nodered.org/u/Yuriy)\
**Replies:** 8\
**Last updated:** [3 July 2019 13:52 UTC](https://discourse.nodered.org/t/node-red-crash-with-bad-node-parameter/7671 "2019-07-03T13:52:36Z")

</div>

I'm new to Node-Red. It's happened to get Node-Red crash by changing one of node parameters (Modbus TCP - ip address); moreover Node-Red failed to re-start due an uncaught exception during loading of flows. Eventually, …

---

## [Node-red crashes](https://discourse.nodered.org/t/node-red-crashes/9590)

<div class="topic-metadata">

**Author:** [@olab](https://discourse.nodered.org/u/olab)\
**Replies:** 3\
**Last updated:** [3 July 2019 13:50 UTC](https://discourse.nodered.org/t/node-red-crashes/9590 "2019-07-03T13:50:58Z")

</div>

Hello, I just created a bad flow in my node red-project. Now the node-red refuses to start with the following message: 29 Mar 20:03:38 - \[info\] Started flows 29 Mar 20:03:42 - \[red\] Uncaught Exception: 29 Mar 20:03:4…

---

## [Locking up NR...and escape out from there](https://discourse.nodered.org/t/locking-up-nr-and-escape-out-from-there/9890)

<div class="topic-metadata">

**Author:** [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Replies:** 18\
**Last updated:** [10 April 2019 08:06 UTC](https://discourse.nodered.org/t/locking-up-nr-and-escape-out-from-there/9890 "2019-04-10T08:06:39Z")

</div>

I was in discussion with another NR user if NR could "by accident" be so "busy" so it lost responsiveness completely. Only way to "escape out" would be to kill the NR process I thought I should try this and wrote the fo…

---

## [Streaming audio to an icecast server](https://discourse.nodered.org/t/streaming-audio-to-an-icecast-server/12856)

<div class="topic-metadata">

**Author:** [@b01](https://discourse.nodered.org/u/b01)\
**Replies:** 0\
**Last updated:** [3 July 2019 12:46 UTC](https://discourse.nodered.org/t/streaming-audio-to-an-icecast-server/12856 "2019-07-03T12:46:58Z")

</div>

hello node-red community, I'm willing to send an audio stream to an icecast server I'd like to feed this audio stream with for example Text To Speech object and / or an audio source like another audio stream or file. W…

---

## [Set context array not working](https://discourse.nodered.org/t/set-context-array-not-working/12829)

<div class="topic-metadata">

**Author:** [@Zwall33](https://discourse.nodered.org/u/Zwall33)\
**Replies:** 25\
**Last updated:** [3 July 2019 09:20 UTC](https://discourse.nodered.org/t/set-context-array-not-working/12829 "2019-07-03T09:20:16Z")

</div>

To put it simply, I'm trying to collect around 400 defaults coming from a PLC. I have the communication and default collection working. I have to treat the data and format it to send it in a database. The error I keep h…

---

## [Sub flows..... Dumb question](https://discourse.nodered.org/t/sub-flows-dumb-question/12847)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [3 July 2019 08:47 UTC](https://discourse.nodered.org/t/sub-flows-dumb-question/12847 "2019-07-03T08:47:10Z")

</div>

I have started using sub-flows and it is great. My understanding is that I have a flow and because parts of it are repeated, rather than have the same nodes repeated, I can use a sub-flow and it acts like a "sub-routine…

---

## [Raspberry Pi 4 Model B + Raspbian Buster](https://discourse.nodered.org/t/raspberry-pi-4-model-b-raspbian-buster/12558)

<div class="topic-metadata">

**Author:** [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Replies:** 49\
**Last updated:** [3 July 2019 08:27 UTC](https://discourse.nodered.org/t/raspberry-pi-4-model-b-raspbian-buster/12558 "2019-07-03T08:27:01Z")

</div>

What a surprise. I was getting ready to prepare an SD card with Raspian Stretch and found out that Raspian already moved to version 10, Raspian Buster. Also, found out that Raspberry PI version 4 has been released! Does…

---

## [Unauthorised at localhost:1880/flows](https://discourse.nodered.org/t/unauthorised-at-localhost-1880-flows/12712)

<div class="topic-metadata">

**Author:** [@tramanah](https://discourse.nodered.org/u/tramanah)\
**Replies:** 4\
**Last updated:** [3 July 2019 07:46 UTC](https://discourse.nodered.org/t/unauthorised-at-localhost-1880-flows/12712 "2019-07-03T07:46:28Z")

</div>

Hi, I am trying to download the entire tabs code by :- localhost:1880/flows it's showing unauthorised. I do have another question, how to stop node red in the window platform. while trying "node-red-stop" its doesn't w…

---

## [The \`rate-limit\` node. Just wanting to check](https://discourse.nodered.org/t/the-rate-limit-node-just-wanting-to-check/12850)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [3 July 2019 07:30 UTC](https://discourse.nodered.org/t/the-rate-limit-node-just-wanting-to-check/12850 "2019-07-03T07:30:38Z")

</div>

I am wanting to limit the amount of stuff saved to a log file. The readings are taken about every 6 seconds. (About 10 per minute.) I am happy with 1. I hacked a flow with the gate node (non-standard) but then saw th…

---

## [MQTT Input Node Sends CPU 100%](https://discourse.nodered.org/t/mqtt-input-node-sends-cpu-100/12827)

<div class="topic-metadata">

**Author:** [@Soloam](https://discourse.nodered.org/u/Soloam)\
**Replies:** 10\
**Last updated:** [3 July 2019 07:10 UTC](https://discourse.nodered.org/t/mqtt-input-node-sends-cpu-100/12827 "2019-07-03T07:10:21Z")

</div>

Hello, I have been having a problem in nodered (currently on 0.20.6, don't know since when this is happening) tht when I try to access some http node (in) it sends my cpu to 100% and takes a long time, this occurs on a s…

---

## [Project - deciding when to use arduino code vs nodes](https://discourse.nodered.org/t/project-deciding-when-to-use-arduino-code-vs-nodes/12627)

<div class="topic-metadata">

**Author:** [@877](https://discourse.nodered.org/u/877)\
**Replies:** 11\
**Last updated:** [2 July 2019 19:53 UTC](https://discourse.nodered.org/t/project-deciding-when-to-use-arduino-code-vs-nodes/12627 "2019-07-02T19:53:45Z")

</div>

I've been thinking about this for a while as I want to convert my existing project to support MQTT. Link to my github project Schematic In this project there are two inputs from an intruder alarm panel: Alarm armed …

---

## [Error enabling persistent context](https://discourse.nodered.org/t/error-enabling-persistent-context/12800)

<div class="topic-metadata">

**Author:** [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Replies:** 7\
**Last updated:** [2 July 2019 17:39 UTC](https://discourse.nodered.org/t/error-enabling-persistent-context/12800 "2019-07-02T17:39:31Z")

</div>

I'm running NR v0.20.6, Node.js v8.11.2 and trying to enable persistent context storage. In my settings.js file, contextStorage: { default: { module:"memory" }, } works fine, but contextStorage: { …

---

## [Node File not creating or appending file](https://discourse.nodered.org/t/node-file-not-creating-or-appending-file/12760)

<div class="topic-metadata">

**Author:** [@Romulas](https://discourse.nodered.org/u/Romulas)\
**Replies:** 5\
**Last updated:** [2 July 2019 16:17 UTC](https://discourse.nodered.org/t/node-file-not-creating-or-appending-file/12760 "2019-07-02T16:17:07Z")

</div>

Hi I've been using the Nodered plugin in Hassio for a while works great I have quite a few flows running. I would like to log MQTT payloads to a file. To test I send a simple timestamp to the File Node. (Standard Fil…

---

## [No debug messages mystery](https://discourse.nodered.org/t/no-debug-messages-mystery/12791)

<div class="topic-metadata">

**Author:** [@hepcat72](https://discourse.nodered.org/u/hepcat72)\
**Replies:** 4\
**Last updated:** [2 July 2019 15:39 UTC](https://discourse.nodered.org/t/no-debug-messages-mystery/12791 "2019-07-02T15:39:27Z")

</div>

I set up some wemo socket (i.e. outlet/plug) nodes to control some window unit air conditioners I installed over the weekend. They are triggered via IFTTT & Webhookrelay. I created 2 ways to turn a set of wemo sockets …

---

## [Type Error on dragging a node from the node palette on NR v0.20.6](https://discourse.nodered.org/t/type-error-on-dragging-a-node-from-the-node-palette-on-nr-v0-20-6/12822)

<div class="topic-metadata">

**Author:** [@dbaba](https://discourse.nodered.org/u/dbaba)\
**Replies:** 2\
**Last updated:** [2 July 2019 12:51 UTC](https://discourse.nodered.org/t/type-error-on-dragging-a-node-from-the-node-palette-on-nr-v0-20-6/12822 "2019-07-02T12:51:35Z")

</div>

I'm a contribution node developer. I received an issue report from my node users. They say as of NR v0.20.6, dragging a node (node-red-contrib-lwm2m node) from the node palette didn't work properly. So I looked into the…

---

## [Node display configuration is incorrect, what's the reason ](https://discourse.nodered.org/t/node-display-configuration-is-incorrect-whats-the-reason/12812)

<div class="topic-metadata">

**Author:** [@liuxuetan](https://discourse.nodered.org/u/liuxuetan)\
**Replies:** 7\
**Last updated:** [2 July 2019 11:33 UTC](https://discourse.nodered.org/t/node-display-configuration-is-incorrect-whats-the-reason/12812 "2019-07-02T11:33:55Z")

</div>

The program imported in the new version of node-red software (the program runs well on the old version of the software). The node display configuration is incorrect. What's the reason?

---

## [In the UI Editor how to change the interface depending on a config node](https://discourse.nodered.org/t/in-the-ui-editor-how-to-change-the-interface-depending-on-a-config-node/12818)

<div class="topic-metadata">

**Author:** [@jmcanterafonseca](https://discourse.nodered.org/u/jmcanterafonseca)\
**Replies:** 2\
**Last updated:** [2 July 2019 11:01 UTC](https://discourse.nodered.org/t/in-the-ui-editor-how-to-change-the-interface-depending-on-a-config-node/12818 "2019-07-02T11:01:43Z")

</div>

I have a Node which UI configuration points to a Config node. Now I want to change the edit interface of my Node (hiding some fields) depending on the value of a configuration field within the referred Config Node. Is t…

---

## [Add to an array to produce 2 lines on a chart](https://discourse.nodered.org/t/add-to-an-array-to-produce-2-lines-on-a-chart/12814)

<div class="topic-metadata">

**Author:** [@Dave](https://discourse.nodered.org/u/Dave)\
**Replies:** 1\
**Last updated:** [2 July 2019 10:16 UTC](https://discourse.nodered.org/t/add-to-an-array-to-produce-2-lines-on-a-chart/12814 "2019-07-02T10:16:00Z")

</div>

Hi am having difficulty, I want a payload that produces 2 lines on a chart here's my existing array msg.payload={"name":'DN',"points":\[{"00:00":20},{"23:59":20}\]}; and I want to add say {"name":'DZ',"points":\[{"00:00":…

---

## [Install two Node Red on same device/server](https://discourse.nodered.org/t/install-two-node-red-on-same-device-server/12810)

<div class="topic-metadata">

**Author:** [@YT2310](https://discourse.nodered.org/u/YT2310)\
**Replies:** 2\
**Last updated:** [2 July 2019 09:57 UTC](https://discourse.nodered.org/t/install-two-node-red-on-same-device-server/12810 "2019-07-02T09:57:47Z")

</div>

Hello Everyone, Is it possible to install Node red two times on the same device so that I can use two different Node Red Systems on the same device or server? For the moment I use Node red on a virtual machine. Now I w…

---

## [Insert data to Microsoft Azure](https://discourse.nodered.org/t/insert-data-to-microsoft-azure/12806)

<div class="topic-metadata">

**Author:** [@jason\_tien](https://discourse.nodered.org/u/jason_tien)\
**Replies:** 3\
**Last updated:** [2 July 2019 08:56 UTC](https://discourse.nodered.org/t/insert-data-to-microsoft-azure/12806 "2019-07-02T08:56:37Z")

</div>

Hi everyone. I would like to ask about why the Microsoft Azure every time just get one to two data only? how to solve this problems? Because my flow is when the groov view detected "1" or "0" I need to store the data in …

---

## [Is there a node to control Pi hdmi Monitor?](https://discourse.nodered.org/t/is-there-a-node-to-control-pi-hdmi-monitor/12799)

<div class="topic-metadata">

**Author:** [@kenkoknz](https://discourse.nodered.org/u/kenkoknz)\
**Replies:** 4\
**Last updated:** [2 July 2019 07:51 UTC](https://discourse.nodered.org/t/is-there-a-node-to-control-pi-hdmi-monitor/12799 "2019-07-02T07:51:52Z")

</div>

Hi, Just wondering if there is a node to control the hdmi display on a pi, ie control what is being displayed, font size, color, timesquare scroll, image, pixels, etc? I guess one fiddle around and use Dashboard UI some…

---

## [How to install the historical version node-red](https://discourse.nodered.org/t/how-to-install-the-historical-version-node-red/12804)

<div class="topic-metadata">

**Author:** [@liuxuetan](https://discourse.nodered.org/u/liuxuetan)\
**Replies:** 2\
**Last updated:** [2 July 2019 07:02 UTC](https://discourse.nodered.org/t/how-to-install-the-historical-version-node-red/12804 "2019-07-02T07:02:26Z")

</div>

How to install the historical version node-red？

---

## [Node-Red stop to run when no SSH](https://discourse.nodered.org/t/node-red-stop-to-run-when-no-ssh/12777)

<div class="topic-metadata">

**Author:** [@eng56](https://discourse.nodered.org/u/eng56)\
**Replies:** 2\
**Last updated:** [1 July 2019 11:31 UTC](https://discourse.nodered.org/t/node-red-stop-to-run-when-no-ssh/12777 "2019-07-01T11:31:26Z")

</div>

Hello, I m' new on Node Red, first thank you for all your help, it helped me a lot but now I'm blocked and I don't find the soltuion on the discourse. My node red is hosted on a Amazon Server (EC2) and linked to an Infl…

---

## [Accessing global variables from a custom node](https://discourse.nodered.org/t/accessing-global-variables-from-a-custom-node/7330)

<div class="topic-metadata">

**Author:** [@Karina25](https://discourse.nodered.org/u/Karina25)\
**Replies:** 9\
**Last updated:** [1 July 2019 10:10 UTC](https://discourse.nodered.org/t/accessing-global-variables-from-a-custom-node/7330 "2019-07-01T10:10:21Z")

</div>

Hello, i recently managed to create my own node but unfortunately i can't access my global variables in the JavaScript Code of the node. I tried it like this: global.get("name") As soon as i use it in Node-RED i get th…

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

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