# General

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

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

**Page:** 590

---

## [Storing JSON formatted values in a file and retrieving them](https://discourse.nodered.org/t/storing-json-formatted-values-in-a-file-and-retrieving-them/42400)

<div class="topic-metadata">

**Author:** [@beetlezap](https://discourse.nodered.org/u/beetlezap)\
**Replies:** 11\
**Last updated:** [10 March 2021 22:00 UTC](https://discourse.nodered.org/t/storing-json-formatted-values-in-a-file-and-retrieving-them/42400 "2021-03-10T22:00:38Z")

</div>

I am getting stuck with an extremely simple use-case and I really do not understand why it is failing. This is where i store the data: This is the output stored in the file: }{ "name": "surf-John Doe", "fnam…

---

## [Days left from date to date](https://discourse.nodered.org/t/days-left-from-date-to-date/42432)

<div class="topic-metadata">

**Author:** [@Andersk87](https://discourse.nodered.org/u/Andersk87)\
**Replies:** 3\
**Last updated:** [10 March 2021 21:36 UTC](https://discourse.nodered.org/t/days-left-from-date-to-date/42432 "2021-03-10T21:36:56Z")

</div>

Hi I´m struggling with my function node. collection data from an API, get dates in this format: "2021-04-19T00:00:00" I would like to take the date from today, and show remaining days to the date from the api. tried …

---

## [Javascript for PWM (Pulse Width Modulation) to dim a heater](https://discourse.nodered.org/t/javascript-for-pwm-pulse-width-modulation-to-dim-a-heater/41730)

<div class="topic-metadata">

**Author:** [@Jeff](https://discourse.nodered.org/u/Jeff)\
**Replies:** 21\
**Last updated:** [10 March 2021 21:06 UTC](https://discourse.nodered.org/t/javascript-for-pwm-pulse-width-modulation-to-dim-a-heater/41730 "2021-03-10T21:06:59Z")

</div>

Hello, NodeRed is new for me, and I'm new here.... I Installed Node-RED on a Unipi Neuron S103 (Raspberry Pi inside) and want to dim an electrical heater. I want to send short pulses (PWM) to a solid state relais. Can s…

---

## [Table of Variables](https://discourse.nodered.org/t/table-of-variables/42323)

<div class="topic-metadata">

**Author:** [@PHewson](https://discourse.nodered.org/u/PHewson)\
**Replies:** 6\
**Last updated:** [10 March 2021 20:59 UTC](https://discourse.nodered.org/t/table-of-variables/42323 "2021-03-10T20:59:01Z")

</div>

Hi, For transparency, I am not a programmer in C, C#, json etc, but by using multiple guides I got there! I work with Crestron Simpl windows and my Simpl+ (C deriviant) is limited. I have done a search but NodeRed is …

---

## [Value calculation "last day"](https://discourse.nodered.org/t/value-calculation-last-day/42419)

<div class="topic-metadata">

**Author:** [@joselitoo](https://discourse.nodered.org/u/joselitoo)\
**Replies:** 11\
**Last updated:** [10 March 2021 20:57 UTC](https://discourse.nodered.org/t/value-calculation-last-day/42419 "2021-03-10T20:57:09Z")

</div>

Hi, i want to find out which power consumption i have over the last day (not last 24h). I can´t find any information on the inet around this. I know i can do this all manually etc but an automaton would be nice. So her…

---

## [Getting RGB values from general light](https://discourse.nodered.org/t/getting-rgb-values-from-general-light/42410)

<div class="topic-metadata">

**Author:** [@JJdave](https://discourse.nodered.org/u/JJdave)\
**Replies:** 5\
**Last updated:** [10 March 2021 19:27 UTC](https://discourse.nodered.org/t/getting-rgb-values-from-general-light/42410 "2021-03-10T19:27:08Z")

</div>

Hi there just wondering how to get the current RGB values from a light bulb? I have currently Mueller Licht lights installed via a Conbee II Zigbee stick. Everything works properly. But want to know how to read out cu…

---

## [Newbie question on changing abbreviations to string from array](https://discourse.nodered.org/t/newbie-question-on-changing-abbreviations-to-string-from-array/42355)

<div class="topic-metadata">

**Author:** [@viixxiiv](https://discourse.nodered.org/u/viixxiiv)\
**Replies:** 3\
**Last updated:** [10 March 2021 17:09 UTC](https://discourse.nodered.org/t/newbie-question-on-changing-abbreviations-to-string-from-array/42355 "2021-03-10T17:09:28Z")

</div>

Hi all! I’ve just starting putting together my first node red project but and stuck. I managed to make an api call and extracted the data I want but it’s in an abbreviated form. I want to convert it to a string base on…

---

## [Need advice about node-red multiple user instances](https://discourse.nodered.org/t/need-advice-about-node-red-multiple-user-instances/42313)

<div class="topic-metadata">

**Author:** [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Replies:** 11\
**Last updated:** [10 March 2021 16:44 UTC](https://discourse.nodered.org/t/need-advice-about-node-red-multiple-user-instances/42313 "2021-03-10T16:44:59Z")

</div>

Hello everyone, I'm about to build a dashboard for multiple users, lets say an admin dashboard, where you can access each tab and get the most information and control, and an user dashboard where you have only the view …

---

## [Monitor variables in a table](https://discourse.nodered.org/t/monitor-variables-in-a-table/42304)

<div class="topic-metadata">

**Author:** [@cbp](https://discourse.nodered.org/u/cbp)\
**Replies:** 4\
**Last updated:** [10 March 2021 16:32 UTC](https://discourse.nodered.org/t/monitor-variables-in-a-table/42304 "2021-03-10T16:32:15Z")

</div>

I'm an embedded programmer and work extensively on the STM32 MCUs. They have a tool called Cubemonitor for live monitoring variables within the executable and is based on Node-red. I'm trying to figure out how to monitor…

---

## [Global Function for multiple Function Nodes](https://discourse.nodered.org/t/global-function-for-multiple-function-nodes/42394)

<div class="topic-metadata">

**Author:** [@ozdeadmeat](https://discourse.nodered.org/u/ozdeadmeat)\
**Replies:** 6\
**Last updated:** [10 March 2021 16:23 UTC](https://discourse.nodered.org/t/global-function-for-multiple-function-nodes/42394 "2021-03-10T16:23:40Z")

</div>

Is there a way to have a set of functions loaded into a global or flow space that i can use in multiple function nodes? I use function nodes alot to do formatting and other such things and depending on the flow I will h…

---

## [Using inject node](https://discourse.nodered.org/t/using-inject-node/42391)

<div class="topic-metadata">

**Author:** [@Parit](https://discourse.nodered.org/u/Parit)\
**Replies:** 10\
**Last updated:** [10 March 2021 15:39 UTC](https://discourse.nodered.org/t/using-inject-node/42391 "2021-03-10T15:39:34Z")

</div>

I want to use the inject node to send to value every 5 seconds but i'm not sure to to do it.

---

## [Modbus TCP Client not connecting via Pi](https://discourse.nodered.org/t/modbus-tcp-client-not-connecting-via-pi/42414)

<div class="topic-metadata">

**Author:** [@edwardr](https://discourse.nodered.org/u/edwardr)\
**Replies:** 5\
**Last updated:** [10 March 2021 15:21 UTC](https://discourse.nodered.org/t/modbus-tcp-client-not-connecting-via-pi/42414 "2021-03-10T15:21:17Z")

</div>

Hi All, I am trying to connect a my modbus client on Pi to my server on my S7. I initially set the modbus client up on my node red on my laptop which was working. I copied over the flow to my Pi and installed it into no…

---

## [Get lights to flash when phone receives calls/messages](https://discourse.nodered.org/t/get-lights-to-flash-when-phone-receives-calls-messages/42398)

<div class="topic-metadata">

**Author:** [@DJwho123](https://discourse.nodered.org/u/DJwho123)\
**Replies:** 4\
**Last updated:** [10 March 2021 14:52 UTC](https://discourse.nodered.org/t/get-lights-to-flash-when-phone-receives-calls-messages/42398 "2021-03-10T14:52:02Z")

</div>

Hi! I would like my house lights to flash (preferable in different colours, depending on the notification) when my phone receives notifications (calls, messages, and so on). Is this possible in Node red? Thanks guys!

---

## [New tls error when starting node red](https://discourse.nodered.org/t/new-tls-error-when-starting-node-red/42412)

<div class="topic-metadata">

**Author:** [@jfpedno](https://discourse.nodered.org/u/jfpedno)\
**Replies:** 1\
**Last updated:** [10 March 2021 14:00 UTC](https://discourse.nodered.org/t/new-tls-error-when-starting-node-red/42412 "2021-03-10T14:00:38Z")

</div>

Could I have a tip about how to fix my tl error. My node red was working on https but I get that new error now. It was working before and coming back few weeks after then : Error: error:140AB18F:SSL routines:SSL\_CTX\_use…

---

## [Google Oauth issues](https://discourse.nodered.org/t/google-oauth-issues/42197)

<div class="topic-metadata">

**Author:** [@umtksa](https://discourse.nodered.org/u/umtksa)\
**Replies:** 12\
**Last updated:** [10 March 2021 12:14 UTC](https://discourse.nodered.org/t/google-oauth-issues/42197 "2021-03-10T12:14:20Z")

</div>

I have a dashboard running on raspberry pi running on diet-pi pi running just Node-red and chromium in kiosk mode locally so it's not accessible from outside world I have alot of widgets running on dashboard getting d…

---

## [Node Red to device Domoticz](https://discourse.nodered.org/t/node-red-to-device-domoticz/42358)

<div class="topic-metadata">

**Author:** [@RobTester](https://discourse.nodered.org/u/RobTester)\
**Replies:** 4\
**Last updated:** [10 March 2021 11:59 UTC](https://discourse.nodered.org/t/node-red-to-device-domoticz/42358 "2021-03-10T11:59:37Z")

</div>

Hi, How can I send a value to Domoticz with a function Node? I have a Domoticz Device type "General,kWh" with IDX=522 and I want to have the value what is send with the inject Node in Domoticz Device "Today kWh" Than…

---

## [Saving array to mysql - letters and numbers](https://discourse.nodered.org/t/saving-array-to-mysql-letters-and-numbers/42365)

<div class="topic-metadata">

**Author:** [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Replies:** 7\
**Last updated:** [10 March 2021 11:25 UTC](https://discourse.nodered.org/t/saving-array-to-mysql-letters-and-numbers/42365 "2021-03-10T11:25:32Z")

</div>

Hi! After about 4 hours googling and trying i hope someone here knows the answer :wink: i have a array that i want to save to a database. the array is below \[2,3,"b",5,6,7\] when it is saved in the table the " " are …

---

## [Thingspeak data to node-red](https://discourse.nodered.org/t/thingspeak-data-to-node-red/11330)

<div class="topic-metadata">

**Author:** [@mshaz](https://discourse.nodered.org/u/mshaz)\
**Replies:** 4\
**Last updated:** [10 March 2021 11:10 UTC](https://discourse.nodered.org/t/thingspeak-data-to-node-red/11330 "2021-03-10T11:10:39Z")

</div>

I have data in thingspeak but unsure how do i send it to node-red. here is the feed link and data format. https://api.thingspeak.com/channels/782876/feeds.json?results=2 {"channel":{"id":782876,"name":"Floodsensed","l…

---

## [How to write payload to google doc?](https://discourse.nodered.org/t/how-to-write-payload-to-google-doc/42379)

<div class="topic-metadata">

**Author:** [@AK51](https://discourse.nodered.org/u/AK51)\
**Replies:** 3\
**Last updated:** [10 March 2021 10:58 UTC](https://discourse.nodered.org/t/how-to-write-payload-to-google-doc/42379 "2021-03-10T10:58:24Z")

</div>

Hi, I have a payload like this: Index, time and 700 data. I can see it in the msg.payload and I want to log the data in google doc (or excel) I have searched some links like https://flows.nodered.org/flow/a36ccbcfc…

---

## [Do I need to worry about these errors?](https://discourse.nodered.org/t/do-i-need-to-worry-about-these-errors/42386)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [10 March 2021 09:01 UTC](https://discourse.nodered.org/t/do-i-need-to-worry-about-these-errors/42386 "2021-03-10T09:01:27Z")

</div>

While working on something else I tried restarting NR on this machine. I see these errors... To call them by what they seem to call themselves. TypeError: Cannot read property 'config' of null at addWidget (/home/…

---

## [Digital signature on smartphone](https://discourse.nodered.org/t/digital-signature-on-smartphone/42395)

<div class="topic-metadata">

**Author:** [@Miguel](https://discourse.nodered.org/u/Miguel)\
**Replies:** 1\
**Last updated:** [10 March 2021 10:24 UTC](https://discourse.nodered.org/t/digital-signature-on-smartphone/42395 "2021-03-10T10:24:34Z")

</div>

Does anybody already tried to capture a screenshot on a smartphone (with NR on it) where a user draws a digital signature into a blank field and presses a kind of send button with that image later on? Will it be doable …

---

## [How to get temperature values below zero](https://discourse.nodered.org/t/how-to-get-temperature-values-below-zero/42383)

<div class="topic-metadata">

**Author:** [@Noschvie](https://discourse.nodered.org/u/Noschvie)\
**Replies:** 6\
**Last updated:** [10 March 2021 10:09 UTC](https://discourse.nodered.org/t/how-to-get-temperature-values-below-zero/42383 "2021-03-10T10:09:11Z")

</div>

Hello, using Modbus to get the outdoor temperature value with the range of negative numbers too. Reading the Modbus address works fine and gets the data as: Kessel (1) : msg.payload : Object object data: array\[1\] 0: 6…

---

## [Reboot, vs \`node-red-restart\`](https://discourse.nodered.org/t/reboot-vs-node-red-restart/42373)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 11\
**Last updated:** [10 March 2021 09:23 UTC](https://discourse.nodered.org/t/reboot-vs-node-red-restart/42373 "2021-03-10T09:23:09Z")

</div>

Today's question: I have flows which have inject nodes which inject a signal at boot. Fair enough. So what's the difference - as I am sure there is - between a reboot (where the machine reboots) and if I go to the ter…

---

## [ModbusTCP on node-red is it possible for 50 devices?](https://discourse.nodered.org/t/modbustcp-on-node-red-is-it-possible-for-50-devices/17316)

<div class="topic-metadata">

**Author:** [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Replies:** 36\
**Last updated:** [5 February 2021 16:32 UTC](https://discourse.nodered.org/t/modbustcp-on-node-red-is-it-possible-for-50-devices/17316 "2021-02-05T16:32:15Z")

</div>

Hello everyone here already implemented modbus on our Node-Red? I have 50 modbus devices, and I want to get connected on it via Modbus using Node-Red, I have concern in terms of processing and reliability of the system, …

---

## [Solved Install error on script but can not identify the issue](https://discourse.nodered.org/t/solved-install-error-on-script-but-can-not-identify-the-issue/42338)

<div class="topic-metadata">

**Author:** [@riker65](https://discourse.nodered.org/u/riker65)\
**Replies:** 4\
**Last updated:** [10 March 2021 07:26 UTC](https://discourse.nodered.org/t/solved-install-error-on-script-but-can-not-identify-the-issue/42338 "2021-03-10T07:26:28Z")

</div>

Hi I tried to follow your recommendation to install node-red. as written here: install script looking intot the log I do not see a hint. running with suod also got an error (see below) What am I missing? Thanks fo…

---

## [Issue in getting response from http call](https://discourse.nodered.org/t/issue-in-getting-response-from-http-call/42291)

<div class="topic-metadata">

**Author:** [@arvindharitus](https://discourse.nodered.org/u/arvindharitus)\
**Replies:** 1\
**Last updated:** [10 March 2021 03:22 UTC](https://discourse.nodered.org/t/issue-in-getting-response-from-http-call/42291 "2021-03-10T03:22:52Z")

</div>

Good morning, This is my first assignment of Node-Red and I am creating a custom-node that will get data from an API. To get the data I need to send an access token from another host. I am getting the access token thro…

---

## [8 bit ascii to hex](https://discourse.nodered.org/t/8-bit-ascii-to-hex/42369)

<div class="topic-metadata">

**Author:** [@PCRover](https://discourse.nodered.org/u/PCRover)\
**Replies:** 3\
**Last updated:** [9 March 2021 23:20 UTC](https://discourse.nodered.org/t/8-bit-ascii-to-hex/42369 "2021-03-09T23:20:10Z")

</div>

Is there a way to take an 8bit ascii serial data string (11 bytes) from a serial port and and decode it to hex values? This conversion doesn't work as I believe it only uses 7 bits. I get mostly bad data. data = Buffer…

---

## [Telegram BOT message loop + delay](https://discourse.nodered.org/t/telegram-bot-message-loop-delay/42360)

<div class="topic-metadata">

**Author:** [@Hunter](https://discourse.nodered.org/u/Hunter)\
**Replies:** 3\
**Last updated:** [9 March 2021 22:45 UTC](https://discourse.nodered.org/t/telegram-bot-message-loop-delay/42360 "2021-03-09T22:45:50Z")

</div>

Hello, I have a Telegram BOT running, fetching messages from a DB and sending them into a channel. These messages actually consist of 2 messages, the first is a map (location), the second is a text message. If the next …

---

## [Want to query modbus sensor via mqtt](https://discourse.nodered.org/t/want-to-query-modbus-sensor-via-mqtt/42085)

<div class="topic-metadata">

**Author:** [@bachloo.rahul](https://discourse.nodered.org/u/bachloo.rahul)\
**Replies:** 20\
**Last updated:** [9 March 2021 18:36 UTC](https://discourse.nodered.org/t/want-to-query-modbus-sensor-via-mqtt/42085 "2021-03-09T18:36:28Z")

</div>

I am using a vibration sensor which is connected through modbus rtu to lorawan end node and end node is in turn connected with the lorawan gateway.so can i send modbus commands from node red platform to query the senso…

---

## [How to filter a result from a resquest](https://discourse.nodered.org/t/how-to-filter-a-result-from-a-resquest/42357)

<div class="topic-metadata">

**Author:** [@ndz](https://discourse.nodered.org/u/ndz)\
**Replies:** 6\
**Last updated:** [9 March 2021 18:21 UTC](https://discourse.nodered.org/t/how-to-filter-a-result-from-a-resquest/42357 "2021-03-09T18:21:01Z")

</div>

I have a request that returns basically that inside of each item theres is an object that has a "dataAbertura" field, a string im trying to filter these results with that function, but its not working msg.payload.va…

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

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