# General

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

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

**Page:** 655

---

## [String parsing, need help extracting values from string and assinging variables](https://discourse.nodered.org/t/string-parsing-need-help-extracting-values-from-string-and-assinging-variables/35305)

<div class="topic-metadata">

**Author:** [@nedz33](https://discourse.nodered.org/u/nedz33)\
**Replies:** 5\
**Last updated:** [12 November 2020 12:10 UTC](https://discourse.nodered.org/t/string-parsing-need-help-extracting-values-from-string-and-assinging-variables/35305 "2020-11-12T12:10:29Z")

</div>

Hi guys, Hoping someone can help, I have a flow that I am having difficulty with, It is fairly simple: I send a hex code requesting some energy data from a meter through a serial request node and I get an ASCII string …

---

## [Easy function question](https://discourse.nodered.org/t/easy-function-question/35762)

<div class="topic-metadata">

**Author:** [@trombose009](https://discourse.nodered.org/u/trombose009)\
**Replies:** 9\
**Last updated:** [12 November 2020 12:05 UTC](https://discourse.nodered.org/t/easy-function-question/35762 "2020-11-12T12:05:39Z")

</div>

Hey, I am using a get method on a http request node to get a temperature value from my heating. It ends up in a function: msg.payload = \[{temp: msg.payload.eta.value\[0\].$.strValue},{room: "aussen"}\] return msg unfor…

---

## [Easiest way of replacing a item in JSON](https://discourse.nodered.org/t/easiest-way-of-replacing-a-item-in-json/35759)

<div class="topic-metadata">

**Author:** [@CrunkFX](https://discourse.nodered.org/u/CrunkFX)\
**Replies:** 3\
**Last updated:** [12 November 2020 10:50 UTC](https://discourse.nodered.org/t/easiest-way-of-replacing-a-item-in-json/35759 "2020-11-12T10:50:07Z")

</div>

So, i got a JSON string like this: { "Attribute1":"Test","Value1":"Testvalue" } It got like 20 Attributes with corresponding values. The String is being loaded and saved from and to a file, which isn´t a problem, but h…

---

## [Problem with node-red-contrib-smartlifeair](https://discourse.nodered.org/t/problem-with-node-red-contrib-smartlifeair/35792)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 1\
**Last updated:** [12 November 2020 10:37 UTC](https://discourse.nodered.org/t/problem-with-node-red-contrib-smartlifeair/35792 "2020-11-12T10:37:32Z")

</div>

I restarted the node-red running my smartlifeair nodes and my lightbulbs didn't come on afterwards and log full of firebase errors and permissions etc etc Eventually, tried logging in to my account at but wasn't …

---

## [❓ DISCUSSION: Should nodes save/restore their own context?](https://discourse.nodered.org/t/discussion-should-nodes-save-restore-their-own-context/20590)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 95\
**Last updated:** [19 August 2020 19:36 UTC](https://discourse.nodered.org/t/discussion-should-nodes-save-restore-their-own-context/20590 "2020-08-19T19:36:55Z")

</div>

There was a post last night which touched upon nodes saving their own context data, which would then be retrieved if node-RED was restarted, a full deploy, or a system reboot. I'll use the ui chart node as an example, w…

---

## [Timestamp not showing Interval](https://discourse.nodered.org/t/timestamp-not-showing-interval/35790)

<div class="topic-metadata">

**Author:** [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Replies:** 1\
**Last updated:** [12 November 2020 10:23 UTC](https://discourse.nodered.org/t/timestamp-not-showing-interval/35790 "2020-11-12T10:23:01Z")

</div>

Hi There, I'm not able to change my interval setting in timestamp node. I had already configured it 1 month ago now I wanted to change its interval but here is the problem.

---

## [Insert Item to Sharepoint Online List](https://discourse.nodered.org/t/insert-item-to-sharepoint-online-list/35774)

<div class="topic-metadata">

**Author:** [@kyle](https://discourse.nodered.org/u/kyle)\
**Replies:** 3\
**Last updated:** [12 November 2020 09:44 UTC](https://discourse.nodered.org/t/insert-item-to-sharepoint-online-list/35774 "2020-11-12T09:44:29Z")

</div>

Hello, I'd be really curious to know if anyone has been able to use Node-RED to insert items into a Sharepoint Online list. Would you be willing to share some information on how you did it? I see there is a user contrib…

---

## [Sharepoint and Node-Red](https://discourse.nodered.org/t/sharepoint-and-node-red/33437)

<div class="topic-metadata">

**Author:** [@Nxito](https://discourse.nodered.org/u/Nxito)\
**Replies:** 3\
**Last updated:** [12 November 2020 09:43 UTC](https://discourse.nodered.org/t/sharepoint-and-node-red/33437 "2020-11-12T09:43:32Z")

</div>

i am trying to create a list in sharepoint. Also edit it and upload an image file (or url) I've been looking around the web but I found little for node-red or nodejs. I got a flow to get an access token and still can't…

---

## [Edit styling of a table](https://discourse.nodered.org/t/edit-styling-of-a-table/35789)

<div class="topic-metadata">

**Author:** [@Mech](https://discourse.nodered.org/u/Mech)\
**Replies:** 0\
**Last updated:** [12 November 2020 09:34 UTC](https://discourse.nodered.org/t/edit-styling-of-a-table/35789 "2020-11-12T09:34:09Z")

</div>

Good morning everyone, I will cut right to the chase: I'm trying to do some styling of a table. For example: in the node-red-node-ui-table node you can format columns to have a specific Tabulator format like this: Ho…

---

## [Extract voltage value only from ADS1x15](https://discourse.nodered.org/t/extract-voltage-value-only-from-ads1x15/35647)

<div class="topic-metadata">

**Author:** [@rmystique](https://discourse.nodered.org/u/rmystique)\
**Replies:** 5\
**Last updated:** [12 November 2020 04:32 UTC](https://discourse.nodered.org/t/extract-voltage-value-only-from-ads1x15/35647 "2020-11-12T04:32:05Z")

</div>

So i have the a/d outputing this: { ADS1115 • I2C\_ADDRESS\_0x48 • Channel A0-GND • Voltage: 3.2901004058961765 } But i just want the message.payload to be the numerical voltage value so i can drive a guage with it, how?

---

## [Node-Red container and machine learning node](https://discourse.nodered.org/t/node-red-container-and-machine-learning-node/35701)

<div class="topic-metadata">

**Author:** [@s19k15](https://discourse.nodered.org/u/s19k15)\
**Replies:** 13\
**Last updated:** [11 November 2020 23:52 UTC](https://discourse.nodered.org/t/node-red-container-and-machine-learning-node/35701 "2020-11-11T23:52:34Z")

</div>

I have a Windows System. Inside the Windows System, I have Virtual Box with Ubuntu Inside the Ubuntu, I have installed Node-Red as docker I have also installed the node-red-contrib-python-function. I have also instal…

---

## [Gpio: passing pin through msg.topic not working](https://discourse.nodered.org/t/gpio-passing-pin-through-msg-topic-not-working/35771)

<div class="topic-metadata">

**Author:** [@angusgrantBC](https://discourse.nodered.org/u/angusgrantBC)\
**Replies:** 3\
**Last updated:** [11 November 2020 23:50 UTC](https://discourse.nodered.org/t/gpio-passing-pin-through-msg-topic-not-working/35771 "2020-11-11T23:50:49Z")

</div>

Hi, I am using node-red-node-pi-gpio nodes to control solid state relays, which is all working fine when I assign the pin through the gpio node. I am wanting to assign the pin to use through msg.topic. The docs on the …

---

## [Any data structure with key, value but key not unique?](https://discourse.nodered.org/t/any-data-structure-with-key-value-but-key-not-unique/35766)

<div class="topic-metadata">

**Author:** [@torrent](https://discourse.nodered.org/u/torrent)\
**Replies:** 3\
**Last updated:** [11 November 2020 22:38 UTC](https://discourse.nodered.org/t/any-data-structure-with-key-value-but-key-not-unique/35766 "2020-11-11T22:38:50Z")

</div>

Hi, I am looking for a data structure with key and value (Map or Dictionary) but key is not unique in Node-Red. I have tried with this var map1 = new Map(); map1.set("test", "value"); but it doesn't work at all.

---

## [I'd like to ask you to make a toggle stitch](https://discourse.nodered.org/t/id-like-to-ask-you-to-make-a-toggle-stitch/35736)

<div class="topic-metadata">

**Author:** [@murondo](https://discourse.nodered.org/u/murondo)\
**Replies:** 1\
**Last updated:** [11 November 2020 15:44 UTC](https://discourse.nodered.org/t/id-like-to-ask-you-to-make-a-toggle-stitch/35736 "2020-11-11T15:44:40Z")

</div>

Click the button like a toggle switch to turn the 38 PIN on and the 40th pin off. Click once again to turn off pin 38 and turn on pin 40. In the middle, it turns 38 or 40 pins off. \[{"id":"12c046b3.627009","type":"f…

---

## [What is the Node.js command prompt used for?](https://discourse.nodered.org/t/what-is-the-node-js-command-prompt-used-for/35748)

<div class="topic-metadata">

**Author:** [@adamelli](https://discourse.nodered.org/u/adamelli)\
**Replies:** 1\
**Last updated:** [11 November 2020 14:42 UTC](https://discourse.nodered.org/t/what-is-the-node-js-command-prompt-used-for/35748 "2020-11-11T14:42:36Z")

</div>

Just curious. All the applications I've done using Node-RED use the regular Command Prompt. (I haven't had much luck just searching for this question as I only saw unrelated results.)

---

## [MQTT node disconnected](https://discourse.nodered.org/t/mqtt-node-disconnected/35724)

<div class="topic-metadata">

**Author:** [@thecoder](https://discourse.nodered.org/u/thecoder)\
**Replies:** 15\
**Last updated:** [11 November 2020 12:49 UTC](https://discourse.nodered.org/t/mqtt-node-disconnected/35724 "2020-11-11T12:49:49Z")

</div>

My flow shows the MQTT nodes as disconnected, I'm running mosquitto. It runs on port 1883 and the MQTT nodes are configured to connect in localhost on port 1883 When I run Node-red "node-red", I get this error at th…

---

## [Editor menu customization](https://discourse.nodered.org/t/editor-menu-customization/35737)

<div class="topic-metadata">

**Author:** [@josekavunkal](https://discourse.nodered.org/u/josekavunkal)\
**Replies:** 2\
**Last updated:** [11 November 2020 11:07 UTC](https://discourse.nodered.org/t/editor-menu-customization/35737 "2020-11-11T11:07:00Z")

</div>

I can easily change the "Help" menu and add my own link to it using editor themes . Same way is there a documentation which explains how to add a new menu to editor and add an action to that?

---

## [Function node to compare a msg.payload string](https://discourse.nodered.org/t/function-node-to-compare-a-msg-payload-string/35668)

<div class="topic-metadata">

**Author:** [@leeg77](https://discourse.nodered.org/u/leeg77)\
**Replies:** 7\
**Last updated:** [11 November 2020 10:01 UTC](https://discourse.nodered.org/t/function-node-to-compare-a-msg-payload-string/35668 "2020-11-11T10:01:51Z")

</div>

I am using the Tesseract node to read some text that I want to compare but it isn't working out. In this case I want to compare the output of the Tesseract node which with the string "DEL" This is my function node …

---

## [Token Authorization flow](https://discourse.nodered.org/t/token-authorization-flow/35715)

<div class="topic-metadata">

**Author:** [@Tico](https://discourse.nodered.org/u/Tico)\
**Replies:** 2\
**Last updated:** [11 November 2020 08:15 UTC](https://discourse.nodered.org/t/token-authorization-flow/35715 "2020-11-11T08:15:28Z")

</div>

Please refer to the attached screenshot - The top line is a successful HTTP POST request that returns an IDToken. The IDToken needs to be used in a subsequent HTTP GET request to retrieve the data I require. The atta…

---

## [How should catch send mail?](https://discourse.nodered.org/t/how-should-catch-send-mail/35643)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 8\
**Last updated:** [11 November 2020 07:13 UTC](https://discourse.nodered.org/t/how-should-catch-send-mail/35643 "2020-11-11T07:13:24Z")

</div>

I use the email node to send mail, in case I have not entered information for this mail node, the sending mail will fail. I wanted to handle this error so I used the catch node, I initialize the default isSendMail varia…

---

## [A simple flow to manage flows.json version (non-GIT)](https://discourse.nodered.org/t/a-simple-flow-to-manage-flows-json-version-non-git/35709)

<div class="topic-metadata">

**Author:** [@T0T4R4](https://discourse.nodered.org/u/T0T4R4)\
**Replies:** 0\
**Last updated:** [10 November 2020 23:49 UTC](https://discourse.nodered.org/t/a-simple-flow-to-manage-flows-json-version-non-git/35709 "2020-11-10T23:49:55Z")

</div>

Okay, I know there is the project feature, git-enabled, etc... But I have some issues with it that I will raise in a separate thread. In the meantime, here is a little flow that simply computes a hash on flows.json and …

---

## [How use biguint64 in buffer.parser](https://discourse.nodered.org/t/how-use-biguint64-in-buffer-parser/35688)

<div class="topic-metadata">

**Author:** [@thecoder](https://discourse.nodered.org/u/thecoder)\
**Replies:** 8\
**Last updated:** [10 November 2020 23:21 UTC](https://discourse.nodered.org/t/how-use-biguint64-in-buffer-parser/35688 "2020-11-10T23:21:29Z")

</div>

I need to parse a group of bits among 5 bytes, so, I need to use the format biguint64(be), however, I get an error. "TypeError: Cannot read property 'bind' of undefined" The group of interest is the following (in itali…

---

## [Help needed using flow.serialnumber into command line](https://discourse.nodered.org/t/help-needed-using-flow-serialnumber-into-command-line/35705)

<div class="topic-metadata">

**Author:** [@jeremy8810](https://discourse.nodered.org/u/jeremy8810)\
**Replies:** 2\
**Last updated:** [10 November 2020 22:58 UTC](https://discourse.nodered.org/t/help-needed-using-flow-serialnumber-into-command-line/35705 "2020-11-10T22:58:39Z")

</div>

Hi There, I am currenlty using node-red to program routers automatically. Now I want to set the router-identity to an unique ID which I saved as a string in flow.serialnumber. But since my knowledge isn't that best I …

---

## [Help needed with https put request](https://discourse.nodered.org/t/help-needed-with-https-put-request/35704)

<div class="topic-metadata">

**Author:** [@steirx](https://discourse.nodered.org/u/steirx)\
**Replies:** 2\
**Last updated:** [10 November 2020 22:26 UTC](https://discourse.nodered.org/t/help-needed-with-https-put-request/35704 "2020-11-10T22:26:03Z")

</div>

hi there, I have been experimenting with node red for a while and I love it. My javascript and HTML programming skills however are rudimentary and I am thus asking for your help (or pointers). I found a python library …

---

## [JASONata $flowcontext can't get it working](https://discourse.nodered.org/t/jasonata-flowcontext-cant-get-it-working/35696)

<div class="topic-metadata">

**Author:** [@nonix](https://discourse.nodered.org/u/nonix)\
**Replies:** 6\
**Last updated:** [10 November 2020 21:37 UTC](https://discourse.nodered.org/t/jasonata-flowcontext-cant-get-it-working/35696 "2020-11-10T21:37:34Z")

</div>

Hi guys, 'm not sure if I am doing something wrong, but I can't get this simple flow to work: \[{"id":"c1d0123d.36c56","type":"inject","z":"e4a2b71d.443e78","name":"","props":\[{"p":"payload"},{"p":"topic","vt":"str"}\],"r…

---

## [Node-Red Editor no longer working afte Node-Red hangup](https://discourse.nodered.org/t/node-red-editor-no-longer-working-afte-node-red-hangup/35463)

<div class="topic-metadata">

**Author:** [@BenrdP](https://discourse.nodered.org/u/BenrdP)\
**Replies:** 5\
**Last updated:** [10 November 2020 21:05 UTC](https://discourse.nodered.org/t/node-red-editor-no-longer-working-afte-node-red-hangup/35463 "2020-11-10T21:05:49Z")

</div>

Hello, I am starting with Node-Red two weeks before and had good succes. My System: Rasberry PI 4, MQTT Mosquitto Broker, Node-Red, 8266 Wifi Module. Today I had a complete hangup of Node-Red Editor. Node-Red adapt…

---

## [Home Assistant Websocket Detect Button Press](https://discourse.nodered.org/t/home-assistant-websocket-detect-button-press/35691)

<div class="topic-metadata">

**Author:** [@shutupfry](https://discourse.nodered.org/u/shutupfry)\
**Replies:** 0\
**Last updated:** [10 November 2020 19:29 UTC](https://discourse.nodered.org/t/home-assistant-websocket-detect-button-press/35691 "2020-11-10T19:29:43Z")

</div>

I've been working with GE Enbrighten Z wave switches, Home Assistant, and the Home Assistant Websocket Node RED module. Ultimately I'm trying to be able to detect whenever a bathroom fan is turned on and keep it running …

---

## [Dumb question about editing a node](https://discourse.nodered.org/t/dumb-question-about-editing-a-node/34434)

<div class="topic-metadata">

**Author:** [@hepcat72](https://discourse.nodered.org/u/hepcat72)\
**Replies:** 78\
**Last updated:** [10 November 2020 18:37 UTC](https://discourse.nodered.org/t/dumb-question-about-editing-a-node/34434 "2020-11-10T18:37:29Z")

</div>

Hi, I installed a node red node the other day and noticed some buggy behavior. I've never worked on a node before, let alone a project in javascript, yet I was able to successfully make changes to the server.js script …

---

## [Image to use for windows in node red docs?](https://discourse.nodered.org/t/image-to-use-for-windows-in-node-red-docs/35660)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 8\
**Last updated:** [10 November 2020 17:54 UTC](https://discourse.nodered.org/t/image-to-use-for-windows-in-node-red-docs/35660 "2020-11-10T17:54:35Z")

</div>

I am attempting to contribute to the node red docs by adding a link to Getting Started pointing to the Windows install. Can anyone suggest an image to use for Windows that will not cause legal issues?

---

## [Integrate with JSON API output](https://discourse.nodered.org/t/integrate-with-json-api-output/35683)

<div class="topic-metadata">

**Author:** [@dclear](https://discourse.nodered.org/u/dclear)\
**Replies:** 1\
**Last updated:** [10 November 2020 16:55 UTC](https://discourse.nodered.org/t/integrate-with-json-api-output/35683 "2020-11-10T16:55:07Z")

</div>

I'm trying to integrate with Camlytics. It's a tool that will happily send webhooks, but I thought it would be potentially even more efficient if I could connect to its API instead? This is available to me at http://loca…

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

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