# General

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

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

**Page:** 543

---

## [Node Red iiot OPCua No Injector Node](https://discourse.nodered.org/t/node-red-iiot-opcua-no-injector-node/16228)

<div class="topic-metadata">

**Author:** [@M5\_Turing](https://discourse.nodered.org/u/M5_Turing)\
**Replies:** 8\
**Last updated:** [7 June 2021 02:12 UTC](https://discourse.nodered.org/t/node-red-iiot-opcua-no-injector-node/16228 "2021-06-07T02:12:35Z")

</div>

Hi folks, I am a little new to Node Red but have been getting up to speed. I have an application I have test on my Windows 10 Laptop using a KepWare Server and the iiot OPCua Pallet. I loaded the newest version of Node …

---

## [Google Calendar In node - redirect uri?](https://discourse.nodered.org/t/google-calendar-in-node-redirect-uri/46674)

<div class="topic-metadata">

**Author:** [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Replies:** 2\
**Last updated:** [6 June 2021 14:03 UTC](https://discourse.nodered.org/t/google-calendar-in-node-redirect-uri/46674 "2021-06-06T14:03:23Z")

</div>

The redirect uri in the Google credentials node is documented as "http://node-red.example.com:1880/google-credentials/auth/callback". Does this need to be changed to https? I got an email from Google saying that the proj…

---

## [MQTT devices being reset fairly frequently](https://discourse.nodered.org/t/mqtt-devices-being-reset-fairly-frequently/46756)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 3\
**Last updated:** [6 June 2021 21:18 UTC](https://discourse.nodered.org/t/mqtt-devices-being-reset-fairly-frequently/46756 "2021-06-06T21:18:28Z")

</div>

I have some TUYA devices connected / controlled by NR. One of which is a 3 outlet main power board. I use one of the outputs to control something else. Daily (or when scheduled) the outlet it turned on for about 10 mi…

---

## [Reset counter values](https://discourse.nodered.org/t/reset-counter-values/46782)

<div class="topic-metadata">

**Author:** [@ChrisTs99](https://discourse.nodered.org/u/ChrisTs99)\
**Replies:** 15\
**Last updated:** [6 June 2021 20:20 UTC](https://discourse.nodered.org/t/reset-counter-values/46782 "2021-06-06T20:20:47Z")

</div>

Hello, In this flow, there are randomly generated numbers between 20 and 60 in function "Data Generation". Functions' output is connected to a trigger node which configuration is shown bellow. Trigger's output is connec…

---

## [Input prompt for MFA in adminAuth - Node-RED user authentication](https://discourse.nodered.org/t/input-prompt-for-mfa-in-adminauth-node-red-user-authentication/46669)

<div class="topic-metadata">

**Author:** [@mahmoudp](https://discourse.nodered.org/u/mahmoudp)\
**Replies:** 6\
**Last updated:** [6 June 2021 19:35 UTC](https://discourse.nodered.org/t/input-prompt-for-mfa-in-adminauth-node-red-user-authentication/46669 "2021-06-06T19:35:41Z")

</div>

Hello, I'm setting up a user authenticator for Node-RED that uses the authAdmin and a user-authentication.js module. When authenticating, I'm passing username and password to an external identity provider to verify the …

---

## [Moving whole object one level up](https://discourse.nodered.org/t/moving-whole-object-one-level-up/46783)

<div class="topic-metadata">

**Author:** [@maraguma](https://discourse.nodered.org/u/maraguma)\
**Replies:** 2\
**Last updated:** [6 June 2021 18:56 UTC](https://discourse.nodered.org/t/moving-whole-object-one-level-up/46783 "2021-06-06T18:56:17Z")

</div>

Hi, for a simulation I would like to move a JSON output one level up. I found a similar topic in this forum, but I would like to have it the other way around (here). I would like everything in msg.payload to be moved dir…

---

## [Decrease Dashboard Value](https://discourse.nodered.org/t/decrease-dashboard-value/46771)

<div class="topic-metadata">

**Author:** [@ChrisTs99](https://discourse.nodered.org/u/ChrisTs99)\
**Replies:** 5\
**Last updated:** [6 June 2021 15:08 UTC](https://discourse.nodered.org/t/decrease-dashboard-value/46771 "2021-06-06T15:08:58Z")

</div>

Hello, I am new to node-red and I am trying to find a way to decrease a gauge value by 1 every 4 seconds. The problem is that have set timestamp as number 10 and when I deploy it becomes 9 and then it keeps generating 9…

---

## [UDP in/out broadcast issue](https://discourse.nodered.org/t/udp-in-out-broadcast-issue/18044)

<div class="topic-metadata">

**Author:** [@binks](https://discourse.nodered.org/u/binks)\
**Replies:** 7\
**Last updated:** [6 June 2021 14:23 UTC](https://discourse.nodered.org/t/udp-in-out-broadcast-issue/18044 "2021-06-06T14:23:16Z")

</div>

Hello, I've found an issue while using UDP in/out with broadcasting. The scenario: udp in listening on port 57066 udp out sending a broadcast packet and binding to local port 57066 (the goal is to discover another…

---

## [PLS Help me. Modbus Read error](https://discourse.nodered.org/t/pls-help-me-modbus-read-error/46775)

<div class="topic-metadata">

**Author:** [@coedale](https://discourse.nodered.org/u/coedale)\
**Replies:** 1\
**Last updated:** [6 June 2021 14:02 UTC](https://discourse.nodered.org/t/pls-help-me-modbus-read-error/46775 "2021-06-06T14:02:28Z")

</div>

This flow can worked before. But last week it's can't be work. I try to fix but show the same error. Use with: InfluxDB and Grafana P.S. I'm so sorry for my English :frowning:

---

## [Seperating an array into individual messages](https://discourse.nodered.org/t/seperating-an-array-into-individual-messages/46710)

<div class="topic-metadata">

**Author:** [@sudomac](https://discourse.nodered.org/u/sudomac)\
**Replies:** 3\
**Last updated:** [6 June 2021 13:41 UTC](https://discourse.nodered.org/t/seperating-an-array-into-individual-messages/46710 "2021-06-06T13:41:25Z")

</div>

I am using a flex Getter from "node-red-contrib-modbus". The message it returns is an 8 bit array that looks like this, \[true,false,false,false,false,false,false,false\]. I am only interested in the first value. How can I…

---

## [NodeRed with Hikvision](https://discourse.nodered.org/t/nodered-with-hikvision/46514)

<div class="topic-metadata">

**Author:** [@automati](https://discourse.nodered.org/u/automati)\
**Replies:** 26\
**Last updated:** [6 June 2021 13:34 UTC](https://discourse.nodered.org/t/nodered-with-hikvision/46514 "2021-06-06T13:34:25Z")

</div>

Hello everybody I have a Hikvision recorder at home, now I would like to download a momentary picture via Nodered and send it to my mobile phone .. preferably on Whatsapp .. Does anyone know how to do this? I have alre…

---

## [Extracting data from web page](https://discourse.nodered.org/t/extracting-data-from-web-page/46769)

<div class="topic-metadata">

**Author:** [@Duncan](https://discourse.nodered.org/u/Duncan)\
**Replies:** 4\
**Last updated:** [6 June 2021 13:08 UTC](https://discourse.nodered.org/t/extracting-data-from-web-page/46769 "2021-06-06T13:08:01Z")

</div>

Hallo all, I have been trying to get a value from an extranal webpage with the http request node. I just dont seem to get it working. I dont understand how to get the correct url from the web page. can you please he…

---

## [What does this code?](https://discourse.nodered.org/t/what-does-this-code/46772)

<div class="topic-metadata">

**Author:** [@alexander77](https://discourse.nodered.org/u/alexander77)\
**Replies:** 5\
**Last updated:** [6 June 2021 13:00 UTC](https://discourse.nodered.org/t/what-does-this-code/46772 "2021-06-06T13:00:07Z")

</div>

var ssids = msg.payload.split('\\n').filter(s =\> !!s) This is one line from the wifi setup flow provided here from flows. I have no idea how to interpret this. Is it just for confusing the aliens?

---

## [Send message only when there is a change](https://discourse.nodered.org/t/send-message-only-when-there-is-a-change/46523)

<div class="topic-metadata">

**Author:** [@arzur](https://discourse.nodered.org/u/arzur)\
**Replies:** 33\
**Last updated:** [6 June 2021 12:45 UTC](https://discourse.nodered.org/t/send-message-only-when-there-is-a-change/46523 "2021-06-06T12:45:04Z")

</div>

Hi all, I'm trying to send a telegram messsage only once when there is a change in the scale(peso) This is the switch node: I try to use a trigger node as trigger&block but only works once, I have no idea how to…

---

## [RPI Keyboard input convert to numbers](https://discourse.nodered.org/t/rpi-keyboard-input-convert-to-numbers/46023)

<div class="topic-metadata">

**Author:** [@bceyresy](https://discourse.nodered.org/u/bceyresy)\
**Replies:** 13\
**Last updated:** [6 June 2021 10:16 UTC](https://discourse.nodered.org/t/rpi-keyboard-input-convert-to-numbers/46023 "2021-06-06T10:16:30Z")

</div>

Hi, I am trying to take data from a USB barcode scanner to a MYSql database. The issue I have is the data from the RPI Keyboard node needs converting back to the numbers/letter & also omitting the Key Down or Key Up. i …

---

## [Node-RED interface with Webpage](https://discourse.nodered.org/t/node-red-interface-with-webpage/46728)

<div class="topic-metadata">

**Author:** [@leonski](https://discourse.nodered.org/u/leonski)\
**Replies:** 5\
**Last updated:** [6 June 2021 11:58 UTC](https://discourse.nodered.org/t/node-red-interface-with-webpage/46728 "2021-06-06T11:58:25Z")

</div>

Hello, i have an Apache-Webserver installed and running on my raspberry pi 3b+. I would like to send data to my http-webpage (maybe via a json file). The data only consists of a number, which triggers a change on my web…

---

## [Calendar Message Separation](https://discourse.nodered.org/t/calendar-message-separation/46766)

<div class="topic-metadata">

**Author:** [@TurboKanne](https://discourse.nodered.org/u/TurboKanne)\
**Replies:** 3\
**Last updated:** [6 June 2021 11:42 UTC](https://discourse.nodered.org/t/calendar-message-separation/46766 "2021-06-06T11:42:38Z")

</div>

Hi, i managed to let my Office Speaker say when the Birthday Calendar contains an entry. Nest Mini then announces the Name of the entry. Very often this is only the name of the person having birthday. In some cases i hav…

---

## [Med tech hackathon](https://discourse.nodered.org/t/med-tech-hackathon/46767)

<div class="topic-metadata">

**Author:** [@ninjamoba](https://discourse.nodered.org/u/ninjamoba)\
**Replies:** 0\
**Last updated:** [6 June 2021 10:18 UTC](https://discourse.nodered.org/t/med-tech-hackathon/46767 "2021-06-06T10:18:41Z")

</div>

Hi we had a team mate get cold feet - We are looking for a team member for a MED TECH hackathon - DUE TODAY June 6 2021. Latest tomarrow morning June 7 10am CET Are you really good with javascript IOT and Node-red and …

---

## [Flow.nodered.org down](https://discourse.nodered.org/t/flow-nodered-org-down/46744)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 15\
**Last updated:** [6 June 2021 09:49 UTC](https://discourse.nodered.org/t/flow-nodered-org-down/46744 "2021-06-06T09:49:44Z")

</div>

@knolleary , Could you please have a look at flows.nodered.org, which seems to be down. From time to time I got a also warning that the hostname of the certificate was invalid ... Thanks!!!! Bart

---

## [Help, Google home return to play music after announcement?](https://discourse.nodered.org/t/help-google-home-return-to-play-music-after-announcement/46763)

<div class="topic-metadata">

**Author:** [@JackDynamite](https://discourse.nodered.org/u/JackDynamite)\
**Replies:** 0\
**Last updated:** [6 June 2021 07:22 UTC](https://discourse.nodered.org/t/help-google-home-return-to-play-music-after-announcement/46763 "2021-06-06T07:22:48Z")

</div>

I have my door bell and house alarm to cast messages to my google home speakers around the house. The annoying part is more so the doorbell, is that I listen to music alot and when when someone rings the doorbell the do…

---

## [Can NR determine what is playing on my Google Home?](https://discourse.nodered.org/t/can-nr-determine-what-is-playing-on-my-google-home/16971)

<div class="topic-metadata">

**Author:** [@Steverino](https://discourse.nodered.org/u/Steverino)\
**Replies:** 3\
**Last updated:** [6 June 2021 06:54 UTC](https://discourse.nodered.org/t/can-nr-determine-what-is-playing-on-my-google-home/16971 "2021-06-06T06:54:19Z")

</div>

When my garage door opens NR casts a 'door opening' message to my Google Home Mini's. This works fine, however if one of my GHM is playing music (started independently from NR) the music stops and won't restart on compl…

---

## [Invalid input: NaN](https://discourse.nodered.org/t/invalid-input-nan/9078)

<div class="topic-metadata">

**Author:** [@Eervi](https://discourse.nodered.org/u/Eervi)\
**Replies:** 7\
**Last updated:** [6 June 2021 06:52 UTC](https://discourse.nodered.org/t/invalid-input-nan/9078 "2021-06-06T06:52:09Z")

</div>

Hej! I´m trying my first program on node-RED Raspberry Pi Homeki -\> Relay Debug: msg: msg : string\[18\] "Invalid input: NaN" Did yet find out the problem what I have -lm-

---

## [Node-red doesnt deploy after connecting gpio pins](https://discourse.nodered.org/t/node-red-doesnt-deploy-after-connecting-gpio-pins/46694)

<div class="topic-metadata">

**Author:** [@raj2911](https://discourse.nodered.org/u/raj2911)\
**Replies:** 14\
**Last updated:** [6 June 2021 06:46 UTC](https://discourse.nodered.org/t/node-red-doesnt-deploy-after-connecting-gpio-pins/46694 "2021-06-06T06:46:02Z")

</div>

I have been using an dht sensor in my flow and i cannot start node-red. I tried updating node-red and nodejs along with using different pi to check if there is any issues. Sometimes node-red flows get started but i can…

---

## [MCP3008 Node not working](https://discourse.nodered.org/t/mcp3008-node-not-working/46712)

<div class="topic-metadata">

**Author:** [@dmac101](https://discourse.nodered.org/u/dmac101)\
**Replies:** 6\
**Last updated:** [6 June 2021 06:35 UTC](https://discourse.nodered.org/t/mcp3008-node-not-working/46712 "2021-06-06T06:35:12Z")

</div>

Hi All, I was hoping that someone out there in the community may be able to help out on this one. I have setup a basic flow to test the MCP3008 ADC. This consists of an inject node, MCP3008 node and debug node. The MCP …

---

## [Help with Tuya-Local commands](https://discourse.nodered.org/t/help-with-tuya-local-commands/46762)

<div class="topic-metadata">

**Author:** [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)\
**Replies:** 0\
**Last updated:** [6 June 2021 05:29 UTC](https://discourse.nodered.org/t/help-with-tuya-local-commands/46762 "2021-06-06T05:29:04Z")

</div>

Guys, Trying to parse some text to send out to the Tuya-Local nodes but keep getting errors One of the DPS keys (2) accepts the commands silence, booster, smart - but each time i try to send these to the tuya-local nod…

---

## [MQTT problems. (nodes, messages and python)](https://discourse.nodered.org/t/mqtt-problems-nodes-messages-and-python/46715)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [6 June 2021 00:32 UTC](https://discourse.nodered.org/t/mqtt-problems-nodes-messages-and-python/46715 "2021-06-06T00:32:35Z")

</div>

(How has to become this complicated?) I have a python script running and I added this line: client.publish("alarm\_clock/oops",text) I then have an MQTT IN node and set it so: \[{"id":"20f5e9bf.b0c9f6","type":"mqtt in"…

---

## [Using global in a node (that's not a function node)](https://discourse.nodered.org/t/using-global-in-a-node-thats-not-a-function-node/46746)

<div class="topic-metadata">

**Author:** [@wiiNinja](https://discourse.nodered.org/u/wiiNinja)\
**Replies:** 4\
**Last updated:** [5 June 2021 17:31 UTC](https://discourse.nodered.org/t/using-global-in-a-node-thats-not-a-function-node/46746 "2021-06-05T17:31:39Z")

</div>

I have some globals declared in functionGlobalContext (example): functionGlobalContext: { led\_light: 'light.my\_led\_light' }, In a "function" node, I can do a global.get('led\_light'), and this works fine. I wanted to …

---

## [Cannot create property '\_id' on string](https://discourse.nodered.org/t/cannot-create-property-id-on-string/46739)

<div class="topic-metadata">

**Author:** [@ChrisTs99](https://discourse.nodered.org/u/ChrisTs99)\
**Replies:** 6\
**Last updated:** [5 June 2021 16:19 UTC](https://discourse.nodered.org/t/cannot-create-property-id-on-string/46739 "2021-06-05T16:19:22Z")

</div>

Hello, I want to fill a database with random numbers using MongoDB. There are 3 nodes, 1 timestamp, 1 function where the random numbers are created and returned as a msg, 1 collection node of MongoDB. I have adjusted my…

---

## [Hashing credentials for POST /auth/token](https://discourse.nodered.org/t/hashing-credentials-for-post-auth-token/46583)

<div class="topic-metadata">

**Author:** [@browseitall](https://discourse.nodered.org/u/browseitall)\
**Replies:** 2\
**Last updated:** [5 June 2021 13:10 UTC](https://discourse.nodered.org/t/hashing-credentials-for-post-auth-token/46583 "2021-06-05T13:10:25Z")

</div>

Not sure if this belongs into the Dashboard or General category, excuse me. My purposes require me to make a request to /flows (just reloading, so I'm not passing any node information); incidentally I'll need bearer tok…

---

## [Mysql ER\_PARSE\_ERROR until flow is redeployed or restarted](https://discourse.nodered.org/t/mysql-er-parse-error-until-flow-is-redeployed-or-restarted/46631)

<div class="topic-metadata">

**Author:** [@crabman](https://discourse.nodered.org/u/crabman)\
**Replies:** 18\
**Last updated:** [5 June 2021 13:00 UTC](https://discourse.nodered.org/t/mysql-er-parse-error-until-flow-is-redeployed-or-restarted/46631 "2021-06-05T13:00:55Z")

</div>

var dataIn = msg.payload; var price = dataIn.bpi.USD.rate\_float; if (price != null){ flow.set('price',price); var dataForInsertQuery = \[\]; var ts = dataIn.time.updatedISO.slice(0, 19).replace('T', ' '); …

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

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