# General

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

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

**Page:** 326

---

## [Npm update error "Cannot convert undefined or null to object"](https://discourse.nodered.org/t/npm-update-error-cannot-convert-undefined-or-null-to-object/67429)

<div class="topic-metadata">

**Author:** [@nrbrt](https://discourse.nodered.org/u/nrbrt)\
**Replies:** 1\
**Last updated:** [7 September 2022 11:20 UTC](https://discourse.nodered.org/t/npm-update-error-cannot-convert-undefined-or-null-to-object/67429 "2022-09-07T11:20:41Z")

</div>

When running "npm update" in my ./.node-red directory I get the error "Cannot convert undefined or null to object". The Idealtree seems to run to completion. The error log looks like this: 0 verbose cli /usr/bin/node /u…

---

## [Hooks removal from node](https://discourse.nodered.org/t/hooks-removal-from-node/67422)

<div class="topic-metadata">

**Author:** [@Techie](https://discourse.nodered.org/u/Techie)\
**Replies:** 4\
**Last updated:** [7 September 2022 10:24 UTC](https://discourse.nodered.org/t/hooks-removal-from-node/67422 "2022-09-07T10:24:02Z")

</div>

How can i disable any hook from a node or remove the hook?

---

## [Node Red Mobile Using Termux USB port issue](https://discourse.nodered.org/t/node-red-mobile-using-termux-usb-port-issue/67428)

<div class="topic-metadata">

**Author:** [@Asad.Khan](https://discourse.nodered.org/u/Asad.Khan)\
**Replies:** 0\
**Last updated:** [7 September 2022 09:51 UTC](https://discourse.nodered.org/t/node-red-mobile-using-termux-usb-port-issue/67428 "2022-09-07T09:51:32Z")

</div>

Hy! I am using node-red mobile via a termux, I am trying to connect a RFD 868 module to mobile and receive serial data through it via a USBA port. I have connected a USB type C docking station with mobile which have thr…

---

## [Right click menu and junction not available on 3.0.2](https://discourse.nodered.org/t/right-click-menu-and-junction-not-available-on-3-0-2/67421)

<div class="topic-metadata">

**Author:** [@hoegge](https://discourse.nodered.org/u/hoegge)\
**Replies:** 1\
**Last updated:** [7 September 2022 07:20 UTC](https://discourse.nodered.org/t/right-click-menu-and-junction-not-available-on-3-0-2/67421 "2022-09-07T07:20:24Z")

</div>

Maybe I'm doing something stupid or not getting it. But I have no right-click menu functionality nor can I insert a junction and use the shortcuts for creating a junction. I'm running 3.0.2 in docker and using it from a …

---

## [Modbus chart with large variable values instead of negative ones](https://discourse.nodered.org/t/modbus-chart-with-large-variable-values-instead-of-negative-ones/67379)

<div class="topic-metadata">

**Author:** [@uka](https://discourse.nodered.org/u/uka)\
**Replies:** 2\
**Last updated:** [7 September 2022 06:26 UTC](https://discourse.nodered.org/t/modbus-chart-with-large-variable-values-instead-of-negative-ones/67379 "2022-09-07T06:26:26Z")

</div>

Hello everyone. I am using modbus flex sequencer to read variable values from carel cpco driver. Everything works well as long as the temperature on the sensors does not drop below zero. Then the modbus instead of negat…

---

## [Dashboard dropdown selection showing on multiple browsers](https://discourse.nodered.org/t/dashboard-dropdown-selection-showing-on-multiple-browsers/67399)

<div class="topic-metadata">

**Author:** [@rbmgf7](https://discourse.nodered.org/u/rbmgf7)\
**Replies:** 1\
**Last updated:** [7 September 2022 06:01 UTC](https://discourse.nodered.org/t/dashboard-dropdown-selection-showing-on-multiple-browsers/67399 "2022-09-07T06:01:18Z")

</div>

I'm trying to build a dashboard where operators need to fill in work order information. A department can have multiple cells so I was trying to keep the dashboard groups down to a minimum by having the operator select th…

---

## [IS there a way to change a ui element of the group with another](https://discourse.nodered.org/t/is-there-a-way-to-change-a-ui-element-of-the-group-with-another/67352)

<div class="topic-metadata">

**Author:** [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Replies:** 2\
**Last updated:** [6 September 2022 22:19 UTC](https://discourse.nodered.org/t/is-there-a-way-to-change-a-ui-element-of-the-group-with-another/67352 "2022-09-06T22:19:12Z")

</div>

Is there a way to let the player coming from the the ui\_mp4frag node ? background: I don´t want to replace my old view method which graps a more detailed picture of the cams than the video stream. So ein want implement …

---

## [Node-RED projects vs. "normal committing + pushing with git"](https://discourse.nodered.org/t/node-red-projects-vs-normal-committing-pushing-with-git/67374)

<div class="topic-metadata">

**Author:** [@kitkat159](https://discourse.nodered.org/u/kitkat159)\
**Replies:** 9\
**Last updated:** [6 September 2022 20:23 UTC](https://discourse.nodered.org/t/node-red-projects-vs-normal-committing-pushing-with-git/67374 "2022-09-06T20:23:33Z")

</div>

I run NR under Docker and use a bind mount to map a local folder. I use an NR project with a remote repository and since I also wanted to have a NR runtime defined, I have another repository to store the "settings.js", …

---

## [Multiple users on HTML page served from Template Node](https://discourse.nodered.org/t/multiple-users-on-html-page-served-from-template-node/67400)

<div class="topic-metadata">

**Author:** [@DanielEcheverri](https://discourse.nodered.org/u/DanielEcheverri)\
**Replies:** 1\
**Last updated:** [6 September 2022 20:22 UTC](https://discourse.nodered.org/t/multiple-users-on-html-page-served-from-template-node/67400 "2022-09-06T20:22:02Z")

</div>

I am aware that NodeRed's Dashboard does NOT support multiple individual users. However, in my flow I use a template node which serves a hypertext game in html. The flow sends and receives various payloads from/to the ga…

---

## [Accepting more HTTP requests simultaneously?](https://discourse.nodered.org/t/accepting-more-http-requests-simultaneously/67405)

<div class="topic-metadata">

**Author:** [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Replies:** 1\
**Last updated:** [6 September 2022 20:13 UTC](https://discourse.nodered.org/t/accepting-more-http-requests-simultaneously/67405 "2022-09-06T20:13:54Z")

</div>

So i am using HTTP nodes to create an endpoint for a webhook for a particular service, which sends me data , that i format for influxdb, make a response to the original webhook (200 or error) and then i try to push the d…

---

## [Non standard NMEA string to Influx](https://discourse.nodered.org/t/non-standard-nmea-string-to-influx/67393)

<div class="topic-metadata">

**Author:** [@questrov](https://discourse.nodered.org/u/questrov)\
**Replies:** 3\
**Last updated:** [6 September 2022 17:42 UTC](https://discourse.nodered.org/t/non-standard-nmea-string-to-influx/67393 "2022-09-06T17:42:10Z")

</div>

Can drop a standard NMEA string into NMEA node and Influx node takes it no problem. NMEA input $HEHDT,248.03,T\*12 Output from NMEA node to Influx node {"sentence":"HDT","type":"heading-info","heading":248.11,"talker\_…

---

## [JSON array to CSV](https://discourse.nodered.org/t/json-array-to-csv/67362)

<div class="topic-metadata">

**Author:** [@Sphere](https://discourse.nodered.org/u/Sphere)\
**Replies:** 3\
**Last updated:** [6 September 2022 15:40 UTC](https://discourse.nodered.org/t/json-array-to-csv/67362 "2022-09-06T15:40:48Z")

</div>

Hellou, i am newbie and i am strugling how to convert json data array into csv format to be able to work in google spread sheet. my data are in JSON format like bellow { "\_msgid":"ed76c5391f37b3d7", "payload":{ …

---

## [Node-red-contrib-switchbot](https://discourse.nodered.org/t/node-red-contrib-switchbot/67396)

<div class="topic-metadata">

**Author:** [@oberlero](https://discourse.nodered.org/u/oberlero)\
**Replies:** 0\
**Last updated:** [6 September 2022 15:54 UTC](https://discourse.nodered.org/t/node-red-contrib-switchbot/67396 "2022-09-06T15:54:16Z")

</div>

Hello, Is there anyone out there that has experience with switchbot? specialy the use of "node-red-contrib-switchbot-api"? How should the flwo look like? I wasnt able to get this running, but to be hines im also relativ…

---

## [TypeError: The "options" argument must be of type object. Received an instance of Array](https://discourse.nodered.org/t/typeerror-the-options-argument-must-be-of-type-object-received-an-instance-of-array/67365)

<div class="topic-metadata">

**Author:** [@yimin](https://discourse.nodered.org/u/yimin)\
**Replies:** 2\
**Last updated:** [6 September 2022 15:11 UTC](https://discourse.nodered.org/t/typeerror-the-options-argument-must-be-of-type-object-received-an-instance-of-array/67365 "2022-09-06T15:11:53Z")

</div>

Hi, When I run the examples of machine-learning-v2 https://github.com/hbouvier/node-red-contrib-machine-learning after deploying, the debug window showed error: TypeError: The "options" argument must be of type objec…

---

## [Smart Approach to Email Alerts](https://discourse.nodered.org/t/smart-approach-to-email-alerts/67339)

<div class="topic-metadata">

**Author:** [@gregoinc](https://discourse.nodered.org/u/gregoinc)\
**Replies:** 18\
**Last updated:** [6 September 2022 14:16 UTC](https://discourse.nodered.org/t/smart-approach-to-email-alerts/67339 "2022-09-06T14:16:37Z")

</div>

Greetings, I have been using a door reed switch to notify via mqtt when a door is open or closed. My node-red code has worked really well with one reed switch. Now that I want to add more reed switches I need to modify …

---

## [Saving a msg.payload and than comparing the new msg with same topic later on](https://discourse.nodered.org/t/saving-a-msg-payload-and-than-comparing-the-new-msg-with-same-topic-later-on/67391)

<div class="topic-metadata">

**Author:** [@Samokomo](https://discourse.nodered.org/u/Samokomo)\
**Replies:** 2\
**Last updated:** [6 September 2022 12:38 UTC](https://discourse.nodered.org/t/saving-a-msg-payload-and-than-comparing-the-new-msg-with-same-topic-later-on/67391 "2022-09-06T12:38:20Z")

</div>

Hello NodeRed community! I am still kinda NodeRed newbie and I would appriciate some help here. My situation is: My messages from devices are identified via msg.topic which equals to mac address of particular device. …

---

## [How to set the ui button that will on click it should send value 1 and after release it should send 0](https://discourse.nodered.org/t/how-to-set-the-ui-button-that-will-on-click-it-should-send-value-1-and-after-release-it-should-send-0/67382)

<div class="topic-metadata">

**Author:** [@Ganesh](https://discourse.nodered.org/u/Ganesh)\
**Replies:** 2\
**Last updated:** [6 September 2022 11:43 UTC](https://discourse.nodered.org/t/how-to-set-the-ui-button-that-will-on-click-it-should-send-value-1-and-after-release-it-should-send-0/67382 "2022-09-06T11:43:33Z")

</div>

I want to create a ui button for dashboard that will perform the following function On Click it should send value one and after release it should send value 0 like a push button

---

## [Extract Data from Many Array With Object of Same name](https://discourse.nodered.org/t/extract-data-from-many-array-with-object-of-same-name/67355)

<div class="topic-metadata">

**Author:** [@Asad.Khan](https://discourse.nodered.org/u/Asad.Khan)\
**Replies:** 3\
**Last updated:** [6 September 2022 08:44 UTC](https://discourse.nodered.org/t/extract-data-from-many-array-with-object-of-same-name/67355 "2022-09-06T08:44:29Z")

</div>

Hy! I am new to Node-red and java script, I need some help. I am using a WIFI node to know the WIFI strength of all the available networks. Some times I get one to two objects (networks), some times I get 10-15 (objects)…

---

## [403 error while installing NPM](https://discourse.nodered.org/t/403-error-while-installing-npm/67372)

<div class="topic-metadata">

**Author:** [@joey\_ind](https://discourse.nodered.org/u/joey_ind)\
**Replies:** 7\
**Last updated:** [6 September 2022 08:50 UTC](https://discourse.nodered.org/t/403-error-while-installing-npm/67372 "2022-09-06T08:50:26Z")

</div>

I am getting an error when installing NPM .I am a novice and hence need a little hand holding. Please find the list of commands and the error as given below. C:\\Windows\\system32\>node --version v16.17.0 C:\\Windows\\sys…

---

## [Automatic doc generation](https://discourse.nodered.org/t/automatic-doc-generation/67378)

<div class="topic-metadata">

**Author:** [@173](https://discourse.nodered.org/u/173)\
**Replies:** 2\
**Last updated:** [6 September 2022 08:50 UTC](https://discourse.nodered.org/t/automatic-doc-generation/67378 "2022-09-06T08:50:05Z")

</div>

hi to everybody, is there a way to automatically generate documentation of a flow from its structure and the descriptions inside the modules and/or comments? (sorry if the question is so basic, I am quite new with node…

---

## [Node-red-contrib-smb issue](https://discourse.nodered.org/t/node-red-contrib-smb-issue/67358)

<div class="topic-metadata">

**Author:** [@BaconPancake](https://discourse.nodered.org/u/BaconPancake)\
**Replies:** 4\
**Last updated:** [6 September 2022 07:28 UTC](https://discourse.nodered.org/t/node-red-contrib-smb-issue/67358 "2022-09-06T07:28:13Z")

</div>

Hello! i am using node red v1.0.3 ( i cannot update it) and the node-red-contrib-smb is 1.2.0 I have developed a dashboard in which i an able to create (at designated times) some csv and json files containing some info…

---

## [How to GET ALL context data & value in array object?](https://discourse.nodered.org/t/how-to-get-all-context-data-value-in-array-object/67366)

<div class="topic-metadata">

**Author:** [@yusuv](https://discourse.nodered.org/u/yusuv)\
**Replies:** 1\
**Last updated:** [6 September 2022 02:35 UTC](https://discourse.nodered.org/t/how-to-get-all-context-data-value-in-array-object/67366 "2022-09-06T02:35:46Z")

</div>

Hello everyone, how to get all context key and data value. in one variable array object? since \> context.keys() only returns all context keys, I want the data value too.

---

## [ADC Value in NodeRed](https://discourse.nodered.org/t/adc-value-in-nodered/67363)

<div class="topic-metadata">

**Author:** [@LinkView\_Maze](https://discourse.nodered.org/u/LinkView_Maze)\
**Replies:** 3\
**Last updated:** [5 September 2022 22:46 UTC](https://discourse.nodered.org/t/adc-value-in-nodered/67363 "2022-09-05T22:46:20Z")

</div>

Hello I have a python program in my raspberry. from periphery import I2C def get\_adc\_value(): # Open i2c-1 controller i2c = I2C("/dev/i2c-1") msgs = \[I2C.Message(\[0x61\]), I2C.Message(\[0x00,0x00\], read=True)\] i2c.t…

---

## [TCP connection between Node RED and Python Code for sending and receiveing messages](https://discourse.nodered.org/t/tcp-connection-between-node-red-and-python-code-for-sending-and-receiveing-messages/67308)

<div class="topic-metadata">

**Author:** [@KerimFry](https://discourse.nodered.org/u/KerimFry)\
**Replies:** 7\
**Last updated:** [5 September 2022 15:45 UTC](https://discourse.nodered.org/t/tcp-connection-between-node-red-and-python-code-for-sending-and-receiveing-messages/67308 "2022-09-05T15:45:27Z")

</div>

Hi there. I was trying to build a flow that would communicate with my python script through Node RED by using TCP sockets. I tried many of the nodes such as TCP in, TCP out or TCP request node to communicate with the py…

---

## [Update from NodeJS 14 to 18 - any innovations?](https://discourse.nodered.org/t/update-from-nodejs-14-to-18-any-innovations/67335)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 1\
**Last updated:** [5 September 2022 14:05 UTC](https://discourse.nodered.org/t/update-from-nodejs-14-to-18-any-innovations/67335 "2022-09-05T14:05:39Z")

</div>

Hi, I´ve updated to Node Red 3 + Node JS 18. Are any innovations in Node JS 18 which I should know / are useful in my flows ? :grimacing: for those who don't know my flows yet: flows.json (702.1 KB) :crazy\_face:

---

## [Sending Simple Text Email with Node-Red](https://discourse.nodered.org/t/sending-simple-text-email-with-node-red/67179)

<div class="topic-metadata">

**Author:** [@HansZnarf](https://discourse.nodered.org/u/HansZnarf)\
**Replies:** 5\
**Last updated:** [5 September 2022 12:32 UTC](https://discourse.nodered.org/t/sending-simple-text-email-with-node-red/67179 "2022-09-05T12:32:13Z")

</div>

Tried to follow directions with simple instructions and view a few YouTube email. Set up simple Inject Node with a text payload. When activated the email node shows send failed. Have outgoing email in place and using …

---

## [How to view delay node random time as a countdown?](https://discourse.nodered.org/t/how-to-view-delay-node-random-time-as-a-countdown/67306)

<div class="topic-metadata">

**Author:** [@EaB11](https://discourse.nodered.org/u/EaB11)\
**Replies:** 6\
**Last updated:** [5 September 2022 11:53 UTC](https://discourse.nodered.org/t/how-to-view-delay-node-random-time-as-a-countdown/67306 "2022-09-05T11:53:42Z")

</div>

hi all... i have a number of delay nodes in a flow which are set to delay for random intervals and i would like to see the countdown in dashboard.... for example a delay node is set to random time between 10-30 sec.. as…

---

## [Sum of 3 different values](https://discourse.nodered.org/t/sum-of-3-different-values/67100)

<div class="topic-metadata">

**Author:** [@lessi](https://discourse.nodered.org/u/lessi)\
**Replies:** 23\
**Last updated:** [5 September 2022 11:48 UTC](https://discourse.nodered.org/t/sum-of-3-different-values/67100 "2022-09-05T11:48:02Z")

</div>

I am trying to process the data of a Shelly 3EM. Es liefert je (!) Phase u.a. die aktuelle Leistung und die akkumulierte genutzte Energie. Natürlich möchte ich die Summe der Leistung über die drei Phase sowie die Summe d…

---

## [Block empty input in Dashboard](https://discourse.nodered.org/t/block-empty-input-in-dashboard/67332)

<div class="topic-metadata">

**Author:** [@Trafalgar](https://discourse.nodered.org/u/Trafalgar)\
**Replies:** 5\
**Last updated:** [5 September 2022 11:20 UTC](https://discourse.nodered.org/t/block-empty-input-in-dashboard/67332 "2022-09-05T11:20:17Z")

</div>

Hey guys, i'm trying to block an empty input (debug says: NaN) of a text input node, so that u only can get a payload on debug if there was a number input of at least one number at the input node, confirmed through butt…

---

## [Extract Data from Many Array](https://discourse.nodered.org/t/extract-data-from-many-array/5525)

<div class="topic-metadata">

**Author:** [@sandonet13](https://discourse.nodered.org/u/sandonet13)\
**Replies:** 3\
**Last updated:** [5 September 2022 10:44 UTC](https://discourse.nodered.org/t/extract-data-from-many-array/5525 "2022-09-05T10:44:05Z")

</div>

Hello, i'm still fresh with node-red, i had trouble of extracting array data to csv, i did extract some of it but not all of them, this my array data What i've done var arrData = msg.payload.results\[0\].series\[0\].valu…

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

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