# General

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

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

**Page:** 725

---

## [If condition with a function](https://discourse.nodered.org/t/if-condition-with-a-function/25389)

<div class="topic-metadata">

**Author:** [@Marty1982](https://discourse.nodered.org/u/Marty1982)\
**Replies:** 26\
**Last updated:** [30 June 2020 11:18 UTC](https://discourse.nodered.org/t/if-condition-with-a-function/25389 "2020-06-30T11:18:45Z")

</div>

Hi all node red maniacs!! I'm working on a simple function condition. I'm a javascript beginner so please patience jejeje. I have to make several if conditions so far i have. let night = msg.payload let day = msg.payl…

---

## [Problems with node-red-node-ui-microphone / Rly need HTTPS?](https://discourse.nodered.org/t/problems-with-node-red-node-ui-microphone-rly-need-https/29084)

<div class="topic-metadata">

**Author:** [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)\
**Replies:** 12\
**Last updated:** [30 June 2020 11:14 UTC](https://discourse.nodered.org/t/problems-with-node-red-node-ui-microphone-rly-need-https/29084 "2020-06-30T11:14:28Z")

</div>

Well, I tried to get my voice recorded from dashboard and found this nice node: node-red-node-ui-microphone After reading the closed thread a bit I found out that the node == microphone is only accessible with "https" e…

---

## [Block the message if a new value is found](https://discourse.nodered.org/t/block-the-message-if-a-new-value-is-found/29214)

<div class="topic-metadata">

**Author:** [@luismendes](https://discourse.nodered.org/u/luismendes)\
**Replies:** 6\
**Last updated:** [30 June 2020 11:09 UTC](https://discourse.nodered.org/t/block-the-message-if-a-new-value-is-found/29214 "2020-06-30T11:09:44Z")

</div>

Im new in node-red and I'm having a problem Using a rotary button to be able to indicate the positions manually, whenever an input receives signal from the button, turns on the led that represents the input and after 3 …

---

## [MQTT node not working after NR update](https://discourse.nodered.org/t/mqtt-node-not-working-after-nr-update/22138)

<div class="topic-metadata">

**Author:** [@lenny1972](https://discourse.nodered.org/u/lenny1972)\
**Replies:** 12\
**Last updated:** [30 June 2020 10:22 UTC](https://discourse.nodered.org/t/mqtt-node-not-working-after-nr-update/22138 "2020-06-30T10:22:04Z")

</div>

After updating my NR local installation (on RPI) from v 0.20.07 to the last one (v. 1.0.3) my MQTT nodes didn't connect to the MQTT broker anymore. Before updating NR I make a backup of my entire RPi MicroSD so I'm able…

---

## [Mqtt like link node based on topics](https://discourse.nodered.org/t/mqtt-like-link-node-based-on-topics/27616)

<div class="topic-metadata">

**Author:** [@cinhcet](https://discourse.nodered.org/u/cinhcet)\
**Replies:** 58\
**Last updated:** [30 June 2020 09:18 UTC](https://discourse.nodered.org/t/mqtt-like-link-node-based-on-topics/27616 "2020-06-30T09:18:46Z")

</div>

Hi, In the beginning of my Node-RED time, I have used MQTT extensively. If I now look at old flows, I am using MQTT mainly to connect flows within the same Node-RED instance. I have the feeling that many other people …

---

## [Why does the dashboard layout complete rearrange when adding an additional element?](https://discourse.nodered.org/t/why-does-the-dashboard-layout-complete-rearrange-when-adding-an-additional-element/29135)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 5\
**Last updated:** [30 June 2020 06:36 UTC](https://discourse.nodered.org/t/why-does-the-dashboard-layout-complete-rearrange-when-adding-an-additional-element/29135 "2020-06-30T06:36:39Z")

</div>

Why does the dashboard layout, within a given tab, completely rearrange when adding an additional element to said tab? This is quite frustrating actually. I spent considerable time getting items placed as desired, and …

---

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

<div class="topic-metadata">

**Author:** [@fpsozio](https://discourse.nodered.org/u/fpsozio)\
**Replies:** 5\
**Last updated:** [30 June 2020 06:30 UTC](https://discourse.nodered.org/t/problem-with-node-red-contrib-i2c/29123 "2020-06-30T06:30:37Z")

</div>

Hello! I'm trying to read a Lux Sensor in my RPi4 with the i2c node, but the "i2c in" node is showing the error "Error: Invalid I2C bus number 1", but if I use the node "i2c scan", I can see the adress of all my devices …

---

## [Audio Sound Level Logger](https://discourse.nodered.org/t/audio-sound-level-logger/29190)

<div class="topic-metadata">

**Author:** [@Brew](https://discourse.nodered.org/u/Brew)\
**Replies:** 0\
**Last updated:** [29 June 2020 21:05 UTC](https://discourse.nodered.org/t/audio-sound-level-logger/29190 "2020-06-29T21:05:02Z")

</div>

Evening all has anyone had any success with a audio level meter / logger? I've got a Adafruit I2S MEMS Microphone and an Adafruit Electret Microphone Amplifier –MAX9814 along with a MCP3008 and I'm just wondering if any…

---

## [Convert modbus float \[array\] register to value](https://discourse.nodered.org/t/convert-modbus-float-array-register-to-value/26303)

<div class="topic-metadata">

**Author:** [@luishurtado87](https://discourse.nodered.org/u/luishurtado87)\
**Replies:** 8\
**Last updated:** [29 June 2020 20:52 UTC](https://discourse.nodered.org/t/convert-modbus-float-array-register-to-value/26303 "2020-06-29T20:52:28Z")

</div>

Hello, I am very new at Node-red but I am trying to create a dashboard for some of the modbus data of a syste. However, I am having problems reading 32-bit floating point values (16-bit integers are ok). And I was hopin…

---

## [Ttn app missing after upgrade Node.js](https://discourse.nodered.org/t/ttn-app-missing-after-upgrade-node-js/29125)

<div class="topic-metadata">

**Author:** [@Hunter](https://discourse.nodered.org/u/Hunter)\
**Replies:** 4\
**Last updated:** [29 June 2020 19:14 UTC](https://discourse.nodered.org/t/ttn-app-missing-after-upgrade-node-js/29125 "2020-06-29T19:14:20Z")

</div>

Hello, We just upgraded our Node.js from v12 to v14. NodeRED version is 1.0.4 After the upgrade we get: The node node-red-contrib-ttn shows : Doesn't seem to be able to be either removed or upgraded. Any sugges…

---

## [Ui\_table not refreshing. Wanted to know if someone else is able to reproduce the issue](https://discourse.nodered.org/t/ui-table-not-refreshing-wanted-to-know-if-someone-else-is-able-to-reproduce-the-issue/29170)

<div class="topic-metadata">

**Author:** [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Replies:** 13\
**Last updated:** [29 June 2020 19:02 UTC](https://discourse.nodered.org/t/ui-table-not-refreshing-wanted-to-know-if-someone-else-is-able-to-reproduce-the-issue/29170 "2020-06-29T19:02:07Z")

</div>

I found a strange behaviour when using the ui\_table node. I can fix the code in two different ways. The first workaround will fix it in definitive but I don´t know why it works. The second way will fix it in a surprising…

---

## [Prevent auto reinstall of removed nodes](https://discourse.nodered.org/t/prevent-auto-reinstall-of-removed-nodes/29171)

<div class="topic-metadata">

**Author:** [@grisson2](https://discourse.nodered.org/u/grisson2)\
**Replies:** 6\
**Last updated:** [29 June 2020 16:43 UTC](https://discourse.nodered.org/t/prevent-auto-reinstall-of-removed-nodes/29171 "2020-06-29T16:43:48Z")

</div>

Some time ago i installed the telegram bot package (using palette manager) just to play with it in spare time, then removed it since it wasn't needed anymore (using npm uninstall) I'm unable to definitely take rid of i…

---

## [OPC-UA Item node](https://discourse.nodered.org/t/opc-ua-item-node/29169)

<div class="topic-metadata">

**Author:** [@AIR](https://discourse.nodered.org/u/AIR)\
**Replies:** 0\
**Last updated:** [29 June 2020 13:43 UTC](https://discourse.nodered.org/t/opc-ua-item-node/29169 "2020-06-29T13:43:21Z")

</div>

Hi all, I am currently using the OPC-UA Node-Red package and am finding it very useful. I am now encountering a problem, because I need to write to a node on the server that isn't of a standard datatype and therefore not…

---

## [Error on Remote connection to Raspberry PI](https://discourse.nodered.org/t/error-on-remote-connection-to-raspberry-pi/29148)

<div class="topic-metadata">

**Author:** [@swanside](https://discourse.nodered.org/u/swanside)\
**Replies:** 5\
**Last updated:** [29 June 2020 12:19 UTC](https://discourse.nodered.org/t/error-on-remote-connection-to-raspberry-pi/29148 "2020-06-29T12:19:14Z")

</div>

Hello everybody I am trying to get my Solar PV to chat with my PI On the Modbus node I in error put 502 as the port and now when I look in Putty the Node Red will not run, AFter some googling I think I have discovered …

---

## [\[error\] \[ThingspeakSendSimple:1090896\] Got 400](https://discourse.nodered.org/t/error-thingspeaksendsimple-1090896-got-400/29163)

<div class="topic-metadata">

**Author:** [@Rog\_Red](https://discourse.nodered.org/u/Rog_Red)\
**Replies:** 2\
**Last updated:** [29 June 2020 12:03 UTC](https://discourse.nodered.org/t/error-thingspeaksendsimple-1090896-got-400/29163 "2020-06-29T12:03:58Z")

</div>

I get this every time I start Node-RED. I cant delete this node because it says it's in use but it's not in any active flow. How do I stop this? Thanks :slight\_smile: Your flow credentials file is encrypted using a sys…

---

## [How to store variables (best practices)](https://discourse.nodered.org/t/how-to-store-variables-best-practices/11999)

<div class="topic-metadata">

**Author:** [@olab](https://discourse.nodered.org/u/olab)\
**Replies:** 15\
**Last updated:** [29 June 2020 10:20 UTC](https://discourse.nodered.org/t/how-to-store-variables-best-practices/11999 "2020-06-29T10:20:45Z")

</div>

I guess I need a little guidance here for storing variables for use in Node red. I’m working on a system to present statuses for a industrial plant. This could include maybe 100-200 variables to be used in other calculat…

---

## [MQTT topic: CBOR conversion](https://discourse.nodered.org/t/mqtt-topic-cbor-conversion/29151)

<div class="topic-metadata">

**Author:** [@kalpino](https://discourse.nodered.org/u/kalpino)\
**Replies:** 5\
**Last updated:** [29 June 2020 10:06 UTC](https://discourse.nodered.org/t/mqtt-topic-cbor-conversion/29151 "2020-06-29T10:06:07Z")

</div>

Hello, I have a topic that publishes data in CBOR format. I installed the CBOR block so that I can convert data from CBOR to JSON. When I try to show the converted message in the debug panel, I always get an empty mess…

---

## [Msg.payload buffer](https://discourse.nodered.org/t/msg-payload-buffer/29064)

<div class="topic-metadata">

**Author:** [@Henjoe](https://discourse.nodered.org/u/Henjoe)\
**Replies:** 12\
**Last updated:** [29 June 2020 08:27 UTC](https://discourse.nodered.org/t/msg-payload-buffer/29064 "2020-06-29T08:27:24Z")

</div>

Dear node-red Experts, I have a node that sends multiple output @ 5 ms speed. After that node is the influxDB output node where it write data into influxDB. But here's the issue, I am having a trouble because it seems…

---

## [How to use H2 database in node-red](https://discourse.nodered.org/t/how-to-use-h2-database-in-node-red/29145)

<div class="topic-metadata">

**Author:** [@akhtar321h](https://discourse.nodered.org/u/akhtar321h)\
**Replies:** 2\
**Last updated:** [29 June 2020 08:13 UTC](https://discourse.nodered.org/t/how-to-use-h2-database-in-node-red/29145 "2020-06-29T08:13:05Z")

</div>

Hello Everyone, I want to use H2 database with node red for storing files and data. But I an not getting any thing related to that. Can anybody help me out on this topic. Thank you

---

## [Sub-flows - giving them variables](https://discourse.nodered.org/t/sub-flows-giving-them-variables/29141)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 3\
**Last updated:** [29 June 2020 07:52 UTC](https://discourse.nodered.org/t/sub-flows-giving-them-variables/29141 "2020-06-29T07:52:16Z")

</div>

Yes, I am not keeping up with the latest developments, but I am messing around with someone else's flow that uses a sub-flow and am seeing something I have not seem before. I don't know I have ever clicked on a sub-flow'…

---

## [Flows stopped due to missing node types. BLE Beacon Scanner](https://discourse.nodered.org/t/flows-stopped-due-to-missing-node-types-ble-beacon-scanner/29134)

<div class="topic-metadata">

**Author:** [@risaldeb](https://discourse.nodered.org/u/risaldeb)\
**Replies:** 21\
**Last updated:** [29 June 2020 07:46 UTC](https://discourse.nodered.org/t/flows-stopped-due-to-missing-node-types-ble-beacon-scanner/29134 "2020-06-29T07:46:13Z")

</div>

Greetings! I need help as I am new to this. When I try to use the BLE Beacon Scanner It did not work and have the message " Flows stopped due to missing node types. BLE Beacon Scanner" Here's the log when I open the Nod…

---

## [Need help analyzing flow](https://discourse.nodered.org/t/need-help-analyzing-flow/28923)

<div class="topic-metadata">

**Author:** [@mikeh](https://discourse.nodered.org/u/mikeh)\
**Replies:** 20\
**Last updated:** [29 June 2020 06:09 UTC](https://discourse.nodered.org/t/need-help-analyzing-flow/28923 "2020-06-29T06:09:50Z")

</div>

I have 3 Inject nodes will run every hour and 1 Inject node every 30 minutes. And all of them will flow into a switch node where I will check if there's an existing inject node running or not using a flow variable. I wi…

---

## [Internet Speedtest Flow - Function Error](https://discourse.nodered.org/t/internet-speedtest-flow-function-error/29115)

<div class="topic-metadata">

**Author:** [@fetsters](https://discourse.nodered.org/u/fetsters)\
**Replies:** 5\
**Last updated:** [28 June 2020 20:35 UTC](https://discourse.nodered.org/t/internet-speedtest-flow-function-error/29115 "2020-06-28T20:35:11Z")

</div>

Hi all, I am trying to get the above flow working (https://flows.nodered.org/flow/e3e8c7f4807f383ab85d61ff2dfda208) I have changed the wget request to the correct url as one stated was outdated: wget -O speedtest-cli h…

---

## [Open/Close Serial Port](https://discourse.nodered.org/t/open-close-serial-port/29052)

<div class="topic-metadata">

**Author:** [@j\_gord](https://discourse.nodered.org/u/j_gord)\
**Replies:** 4\
**Last updated:** [28 June 2020 17:51 UTC](https://discourse.nodered.org/t/open-close-serial-port/29052 "2020-06-28T17:51:08Z")

</div>

Hi all- I'm wanting to use both node-red and another program to access a serial port, though not simultaneously. I was hoping to set up a dashboard button that I can use to open/close the port, but I'm not seeing a supe…

---

## [How to set API KEY and Service Endpoint through environment variables for IBM Watson "Language Translator" node?](https://discourse.nodered.org/t/how-to-set-api-key-and-service-endpoint-through-environment-variables-for-ibm-watson-language-translator-node/29116)

<div class="topic-metadata">

**Author:** [@janvda](https://discourse.nodered.org/u/janvda)\
**Replies:** 2\
**Last updated:** [28 June 2020 16:29 UTC](https://discourse.nodered.org/t/how-to-set-api-key-and-service-endpoint-through-environment-variables-for-ibm-watson-language-translator-node/29116 "2020-06-28T16:29:31Z")

</div>

I would like to keep my IBM Watson credentials outside the node-red flow by setting them in environment variables. The problem is that the watson translator node is not substituting ${XXX} by the contents of the environ…

---

## [Problem importing a bit of code. (Bug report?)](https://discourse.nodered.org/t/problem-importing-a-bit-of-code-bug-report/28776)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [28 June 2020 15:54 UTC](https://discourse.nodered.org/t/problem-importing-a-bit-of-code-bug-report/28776 "2020-06-28T15:54:50Z")

</div>

Continuing the discussion from LED Brightness, for(), dash board slider, dimming: Out of curiosity I imported this flow. I can't use is / it doesn't work. Clicking on the inject node - which injects 200 nothing happens…

---

## [Which model of Pi need the following tweak to nod-red install?](https://discourse.nodered.org/t/which-model-of-pi-need-the-following-tweak-to-nod-red-install/29080)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 13\
**Last updated:** [28 June 2020 15:53 UTC](https://discourse.nodered.org/t/which-model-of-pi-need-the-following-tweak-to-nod-red-install/29080 "2020-06-28T15:53:50Z")

</div>

I just found the following comment in the documentation (https://nodered.org/docs/getting-started/raspberrypi)... "Due to the limited memory of the Raspberry Pi, you will need to start Node-RED with an additional argume…

---

## [How to unzip .gz file](https://discourse.nodered.org/t/how-to-unzip-gz-file/29085)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 10\
**Last updated:** [28 June 2020 15:39 UTC](https://discourse.nodered.org/t/how-to-unzip-gz-file/29085 "2020-06-28T15:39:40Z")

</div>

Does anybody know how I can unzip a .gz file other than by using an exec node calling gunzip? That does work but I want it to work on Windows as well as Linux and I presume that solution won't work on Windows. I have f…

---

## [\[Solved\] Ok, loaded node-red-dashboard, but no ui\_table object?](https://discourse.nodered.org/t/solved-ok-loaded-node-red-dashboard-but-no-ui-table-object/29093)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 7\
**Last updated:** [28 June 2020 15:11 UTC](https://discourse.nodered.org/t/solved-ok-loaded-node-red-dashboard-but-no-ui-table-object/29093 "2020-06-28T15:11:24Z")

</div>

Ok, loaded node-red-dashboard, but no ui\_table object? Log file just says node-red is waiting for ui\_table node. Pop up dialog states that ui\_table node is missing as well. Tried uninstall and reinstall of package, sa…

---

## [I need a sanity check](https://discourse.nodered.org/t/i-need-a-sanity-check/29113)

<div class="topic-metadata">

**Author:** [@injector22](https://discourse.nodered.org/u/injector22)\
**Replies:** 2\
**Last updated:** [28 June 2020 14:27 UTC](https://discourse.nodered.org/t/i-need-a-sanity-check/29113 "2020-06-28T14:27:05Z")

</div>

I think I'm either going nuts or I'm missing something obvious. I have a relay board that returns a string 0 or 1 based on the relay state. I'm trying to convert the "int" to on/off and pass it as the payload to a switch…

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

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