# General

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

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

**Page:** 704

---

## [Telegram-WatsonAssistan msg.payload.chatId is empty](https://discourse.nodered.org/t/telegram-watsonassistan-msg-payload-chatid-is-empty/31128)

<div class="topic-metadata">

**Author:** [@Carbar](https://discourse.nodered.org/u/Carbar)\
**Replies:** 11\
**Last updated:** [4 August 2020 18:38 UTC](https://discourse.nodered.org/t/telegram-watsonassistan-msg-payload-chatid-is-empty/31128 "2020-08-04T18:38:46Z")

</div>

Following Steve-Mcl advice in another post, I attach screen dumps and the message sent and received. So that you can see the whole process and the final error. Vode-RED is installed in my computer. {"payload":{"chat…

---

## [Options to resend command once](https://discourse.nodered.org/t/options-to-resend-command-once/31095)

<div class="topic-metadata">

**Author:** [@cmartens](https://discourse.nodered.org/u/cmartens)\
**Replies:** 2\
**Last updated:** [4 August 2020 17:58 UTC](https://discourse.nodered.org/t/options-to-resend-command-once/31095 "2020-08-04T17:58:06Z")

</div>

I use different flows in Home Assistant to send commands to several devices via a RFXCOM module (433 MHz). In some cases these commands are not received by the device. Therefore I want to resend the command once again af…

---

## [Convert Boolean to Integer](https://discourse.nodered.org/t/convert-boolean-to-integer/31124)

<div class="topic-metadata">

**Author:** [@ikoth](https://discourse.nodered.org/u/ikoth)\
**Replies:** 3\
**Last updated:** [4 August 2020 17:57 UTC](https://discourse.nodered.org/t/convert-boolean-to-integer/31124 "2020-08-04T17:57:10Z")

</div>

Sorry to trouble you with such a basic JavaScript problem, but this is driving me CRAZY. I need to convert a Boolean true/false into a numeric value for further processing. The flow I'm creating takes the Boolean from a…

---

## [Help calculating JSON data lookup](https://discourse.nodered.org/t/help-calculating-json-data-lookup/31092)

<div class="topic-metadata">

**Author:** [@mikewoodld](https://discourse.nodered.org/u/mikewoodld)\
**Replies:** 6\
**Last updated:** [4 August 2020 14:44 UTC](https://discourse.nodered.org/t/help-calculating-json-data-lookup/31092 "2020-08-04T14:44:55Z")

</div>

I'm working on a flow using the NHL API. I am able to get an id number for a player on ice, for example 8474151. I then want to use that number to lookup the name, which is contained in the same JSON response. The Pla…

---

## [Is it possible to have a Projects folder outside of ~/.node-red](https://discourse.nodered.org/t/is-it-possible-to-have-a-projects-folder-outside-of-node-red/31130)

<div class="topic-metadata">

**Author:** [@gromain](https://discourse.nodered.org/u/gromain)\
**Replies:** 8\
**Last updated:** [4 August 2020 13:49 UTC](https://discourse.nodered.org/t/is-it-possible-to-have-a-projects-folder-outside-of-node-red/31130 "2020-08-04T13:49:39Z")

</div>

Hello, I'm using Node-Red for a plankton microscope, and we just discovered the projects feature! I was wondering if it was possible to have the project folder is not hidden down in the .node-red folder? It would make …

---

## [Using modules with nodejs separate from NR?](https://discourse.nodered.org/t/using-modules-with-nodejs-separate-from-nr/31019)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 15\
**Last updated:** [4 August 2020 13:48 UTC](https://discourse.nodered.org/t/using-modules-with-nodejs-separate-from-nr/31019 "2020-08-04T13:48:52Z")

</div>

In a different directory than NR, I tried installing a node module, separate from NR, # npm install . I got module not found using a require(''). So I did an uninstall, then global install of the module, # npm install …

---

## [Smartthings Switch On and Off issue](https://discourse.nodered.org/t/smartthings-switch-on-and-off-issue/31098)

<div class="topic-metadata">

**Author:** [@Doug](https://discourse.nodered.org/u/Doug)\
**Replies:** 3\
**Last updated:** [4 August 2020 13:08 UTC](https://discourse.nodered.org/t/smartthings-switch-on-and-off-issue/31098 "2020-08-04T13:08:27Z")

</div>

The Query inject works just fine and is configured: However I am unable to turn on or turn off the switch. On inject: Front Window On/Off node is configured: The Smartthings On/Off node info and help: The S…

---

## [Openssl certification](https://discourse.nodered.org/t/openssl-certification/31083)

<div class="topic-metadata">

**Author:** [@Thewaver](https://discourse.nodered.org/u/Thewaver)\
**Replies:** 3\
**Last updated:** [4 August 2020 12:38 UTC](https://discourse.nodered.org/t/openssl-certification/31083 "2020-08-04T12:38:05Z")

</div>

Hi, I have set up an openSSL certificate on my node red server by following the very excellent 'Securing Node-Red with SSL and Username Authentication instructions' from Steve (don't know his surname). I tried to move th…

---

## [Failed install of serial node ...please help](https://discourse.nodered.org/t/failed-install-of-serial-node-please-help/31108)

<div class="topic-metadata">

**Author:** [@sroberts](https://discourse.nodered.org/u/sroberts)\
**Replies:** 5\
**Last updated:** [4 August 2020 09:57 UTC](https://discourse.nodered.org/t/failed-install-of-serial-node-please-help/31108 "2020-08-04T09:57:43Z")

</div>

can not successfully install serial node in newest node-red v 1.1.2 4 Aug 00:25:32 - \[info\] Installing module: node-red-node-serialport, version: 0.10.3 4 Aug 00:25:37 - \[warn\] Installation of module node-red-node-seri…

---

## [MQTT client with local TLS configuration not works correctly](https://discourse.nodered.org/t/mqtt-client-with-local-tls-configuration-not-works-correctly/31115)

<div class="topic-metadata">

**Author:** [@masalinas](https://discourse.nodered.org/u/masalinas)\
**Replies:** 0\
**Last updated:** [4 August 2020 08:26 UTC](https://discourse.nodered.org/t/mqtt-client-with-local-tls-configuration-not-works-correctly/31115 "2020-08-04T08:26:26Z")

</div>

We deploy our MQTT mosquitto with TLS connetion correctly. We add a MQTT client on node-red and configure with TLS and made this tests: we unchecked the option: 'use key and certicates from local file'. We upload …

---

## [Exec node - trying to pass command to virtual environment](https://discourse.nodered.org/t/exec-node-trying-to-pass-command-to-virtual-environment/31008)

<div class="topic-metadata">

**Author:** [@AlanW77](https://discourse.nodered.org/u/AlanW77)\
**Replies:** 24\
**Last updated:** [4 August 2020 07:57 UTC](https://discourse.nodered.org/t/exec-node-trying-to-pass-command-to-virtual-environment/31008 "2020-08-04T07:57:38Z")

</div>

In my RPi environment I have a LIFX asyncio API within a virtual environment (menv) on RPi OS. I can issue a terminal command as follows to activate the environment and then turn on lights: source ~/menv/bin/activate &&…

---

## [Run through a sequence of commands in order](https://discourse.nodered.org/t/run-through-a-sequence-of-commands-in-order/30976)

<div class="topic-metadata">

**Author:** [@Charry2014](https://discourse.nodered.org/u/Charry2014)\
**Replies:** 5\
**Last updated:** [4 August 2020 06:50 UTC](https://discourse.nodered.org/t/run-through-a-sequence-of-commands-in-order/30976 "2020-08-04T06:50:28Z")

</div>

This should be simple I think, but I am just not getting it. I have a sequence of operations to perform with a delay between each operation. \[ { "index": 1,"channel": 31, "level": 1, "delay": 2 }, { "index": 2…

---

## [JSON expression instead of many change nodes?](https://discourse.nodered.org/t/json-expression-instead-of-many-change-nodes/31088)

<div class="topic-metadata">

**Author:** [@JohnnyPicnic](https://discourse.nodered.org/u/JohnnyPicnic)\
**Replies:** 5\
**Last updated:** [3 August 2020 20:01 UTC](https://discourse.nodered.org/t/json-expression-instead-of-many-change-nodes/31088 "2020-08-03T20:01:09Z")

</div>

Is it possible to use an expression instead of the plethora of change nodes i've created? I'm running into the problem where I want to filter out the output of the change nodes and it's quite cumbersome with that many n…

---

## [Aquarium Atlasscientific I2C fail](https://discourse.nodered.org/t/aquarium-atlasscientific-i2c-fail/31085)

<div class="topic-metadata">

**Author:** [@Sebchauvour](https://discourse.nodered.org/u/Sebchauvour)\
**Replies:** 2\
**Last updated:** [3 August 2020 15:31 UTC](https://discourse.nodered.org/t/aquarium-atlasscientific-i2c-fail/31085 "2020-08-03T15:31:26Z")

</div>

Google translate Hello I am unable to read I2C PH Probe and EC Probe data. Thanks for your help Configuration Raspberry PI4 AtlasScientific: Raspberry PI4 AtlasScientific : Whitebox Labs Tentacle T3 Circuit p…

---

## [New to Node Red, some help needed](https://discourse.nodered.org/t/new-to-node-red-some-help-needed/31058)

<div class="topic-metadata">

**Author:** [@dforster](https://discourse.nodered.org/u/dforster)\
**Replies:** 2\
**Last updated:** [3 August 2020 14:22 UTC](https://discourse.nodered.org/t/new-to-node-red-some-help-needed/31058 "2020-08-03T14:22:17Z")

</div>

Hello, I am fairly new to Node Red, have some experience with RPI and Linux though, so I used Peter Scargills script to install Node Red and lots of other utils and all is working fine. I am now in the process of adding…

---

## [Unavailable Cannot lock port](https://discourse.nodered.org/t/unavailable-cannot-lock-port/17287)

<div class="topic-metadata">

**Author:** [@kalamar194](https://discourse.nodered.org/u/kalamar194)\
**Replies:** 9\
**Last updated:** [3 August 2020 10:43 UTC](https://discourse.nodered.org/t/unavailable-cannot-lock-port/17287 "2020-08-03T10:43:33Z")

</div>

hello , i have a problem with the serial port , the error is serial port /dev/ttyUSB0 error: Error: Error Resource temporarily unavailable Cannot lock port, please help 29 Oct 10:56:29 - \[info\] Node-RED version: v1.0.2 …

---

## [This.context is not a function](https://discourse.nodered.org/t/this-context-is-not-a-function/30967)

<div class="topic-metadata">

**Author:** [@Pavithra\_nayak](https://discourse.nodered.org/u/Pavithra_nayak)\
**Replies:** 5\
**Last updated:** [3 August 2020 10:27 UTC](https://discourse.nodered.org/t/this-context-is-not-a-function/30967 "2020-08-03T10:27:12Z")

</div>

Hi, I have a requirement where in I need to set flow level variable, when a user edits a parameter of a custom node. I am trying to do it, in "Validate" function of the parameter. But I am unable to access the flow obj…

---

## [How to change object "msg.payload" to an array?](https://discourse.nodered.org/t/how-to-change-object-msg-payload-to-an-array/31073)

<div class="topic-metadata">

**Author:** [@Cyber](https://discourse.nodered.org/u/Cyber)\
**Replies:** 4\
**Last updated:** [3 August 2020 09:45 UTC](https://discourse.nodered.org/t/how-to-change-object-msg-payload-to-an-array/31073 "2020-08-03T09:45:36Z")

</div>

hi, I am trying to work with a HTTP json response to iterate trough all items of the response and I am failing in getting an iterateable array out of the response. After the HTTP request node I have the json node with …

---

## [Node Red won't start issue with home-assistant websocket](https://discourse.nodered.org/t/node-red-wont-start-issue-with-home-assistant-websocket/31049)

<div class="topic-metadata">

**Author:** [@GChapo](https://discourse.nodered.org/u/GChapo)\
**Replies:** 3\
**Last updated:** [3 August 2020 08:26 UTC](https://discourse.nodered.org/t/node-red-wont-start-issue-with-home-assistant-websocket/31049 "2020-08-03T08:26:11Z")

</div>

Running (or trying to) Node Red version v1.1.2, node JS v 12.18.3, RPI 3+ home-assistant (Hassio) 0.113.3 on Tinkerboard Log is; (node:12484) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'isConnect…

---

## [Newbie needs help! How to test if two states are ON, then trigger event?](https://discourse.nodered.org/t/newbie-needs-help-how-to-test-if-two-states-are-on-then-trigger-event/31065)

<div class="topic-metadata">

**Author:** [@jschwalbe](https://discourse.nodered.org/u/jschwalbe)\
**Replies:** 3\
**Last updated:** [3 August 2020 08:21 UTC](https://discourse.nodered.org/t/newbie-needs-help-how-to-test-if-two-states-are-on-then-trigger-event/31065 "2020-08-03T08:21:48Z")

</div>

Hello! I have, I think, a fairly simple task. I'm a newbie at NR though, and I'm finding it incredibly difficult to wrap my head around. Essentially I have a lawn mower and sprinklers, and they should never be on at the…

---

## [Apache v2 licensing help wanted](https://discourse.nodered.org/t/apache-v2-licensing-help-wanted/7267)

<div class="topic-metadata">

**Author:** [@citkane](https://discourse.nodered.org/u/citkane)\
**Replies:** 1\
**Last updated:** [3 August 2020 07:48 UTC](https://discourse.nodered.org/t/apache-v2-licensing-help-wanted/7267 "2020-08-03T07:48:51Z")

</div>

I am evaluating the use of node-red as a component within a proprietary application. The application will provide subscription based services for my companies clients, and may in the future also be licensed to 3rd party …

---

## [Python function returns import module error](https://discourse.nodered.org/t/python-function-returns-import-module-error/9683)

<div class="topic-metadata">

**Author:** [@elisascheer](https://discourse.nodered.org/u/elisascheer)\
**Replies:** 10\
**Last updated:** [3 August 2020 05:49 UTC](https://discourse.nodered.org/t/python-function-returns-import-module-error/9683 "2020-08-03T05:49:39Z")

</div>

Hi, I'm testing the python function node with an inject node that returns JSON data. The python function is simple : return msg but when I deploy my flow, on the debug panel "No module named json" error occurred. I …

---

## [Walkthrough for SQL queries to basic guages and multi series/line charting? Does it exist?](https://discourse.nodered.org/t/walkthrough-for-sql-queries-to-basic-guages-and-multi-series-line-charting-does-it-exist/31037)

<div class="topic-metadata">

**Author:** [@harmo](https://discourse.nodered.org/u/harmo)\
**Replies:** 6\
**Last updated:** [3 August 2020 05:43 UTC](https://discourse.nodered.org/t/walkthrough-for-sql-queries-to-basic-guages-and-multi-series-line-charting-does-it-exist/31037 "2020-08-03T05:43:27Z")

</div>

Hi there, I hope you're all well in these crazy times. However, after a great deal of tinkering, I have failed to find an answer for myself and humbly ask for some help. I'm a complete newbie when it comes to Node Red.…

---

## [Splitting an API string then splitting the value of one of the object values](https://discourse.nodered.org/t/splitting-an-api-string-then-splitting-the-value-of-one-of-the-object-values/31066)

<div class="topic-metadata">

**Author:** [@BarryB](https://discourse.nodered.org/u/BarryB)\
**Replies:** 0\
**Last updated:** [2 August 2020 19:54 UTC](https://discourse.nodered.org/t/splitting-an-api-string-then-splitting-the-value-of-one-of-the-object-values/31066 "2020-08-02T19:54:51Z")

</div>

Noob struggling... I have an API call that I'm breaking into 4 value array's. One of the value arrays has to be split in to 16 values and formatted. I then need to put it back in to one array to inject in to Influxdb. I …

---

## [Http redirect to https](https://discourse.nodered.org/t/http-redirect-to-https/18761)

<div class="topic-metadata">

**Author:** [@onire77](https://discourse.nodered.org/u/onire77)\
**Replies:** 3\
**Last updated:** [2 August 2020 18:50 UTC](https://discourse.nodered.org/t/http-redirect-to-https/18761 "2020-08-02T18:50:55Z")

</div>

Hi, I have enabled https, but when I try to access http://mysite.com:1880 I would like it to be redirect to https://mysite.com:1880 , how can I do that?

---

## [\[solved\] Contrib-pdfmake node - help please getting node to work](https://discourse.nodered.org/t/solved-contrib-pdfmake-node-help-please-getting-node-to-work/30867)

<div class="topic-metadata">

**Author:** [@pazele](https://discourse.nodered.org/u/pazele)\
**Replies:** 8\
**Last updated:** [2 August 2020 15:16 UTC](https://discourse.nodered.org/t/solved-contrib-pdfmake-node-help-please-getting-node-to-work/30867 "2020-08-02T15:16:35Z")

</div>

Using both examples exactly as provided in Node-Red - simple pdf and image svg pdf. Both examples give the debug error "TypeError: URLBrowserResolver is not a constructor". Thinking I must be doing something simple in…

---

## [Help with using objects in lists to display in a \`text\` node](https://discourse.nodered.org/t/help-with-using-objects-in-lists-to-display-in-a-text-node/31045)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 9\
**Last updated:** [2 August 2020 10:11 UTC](https://discourse.nodered.org/t/help-with-using-objects-in-lists-to-display-in-a-text-node/31045 "2020-08-02T10:11:29Z")

</div>

I'm programming up for my new project. (Parts still to arrive) I am making a project with a 20 x 4 LCD display and buttons for input. I'm not sure what type of buttons or how many. Which doesn't help I know. What …

---

## [Docker Swarm Secrets (+Portainer)](https://discourse.nodered.org/t/docker-swarm-secrets-portainer/31043)

<div class="topic-metadata">

**Author:** [@efratha94](https://discourse.nodered.org/u/efratha94)\
**Replies:** 0\
**Last updated:** [2 August 2020 09:01 UTC](https://discourse.nodered.org/t/docker-swarm-secrets-portainer/31043 "2020-08-02T09:01:15Z")

</div>

Hi, I run my Node-Red on Docker Swarm + Portainer. I was wondering how can I define multiple credentials (multiple environment variables)? From what I found, I have to edit the "credentialsSecret" inside settings.js, b…

---

## [Using flow variable in if statement](https://discourse.nodered.org/t/using-flow-variable-in-if-statement/31023)

<div class="topic-metadata">

**Author:** [@ghstudio](https://discourse.nodered.org/u/ghstudio)\
**Replies:** 5\
**Last updated:** [2 August 2020 07:53 UTC](https://discourse.nodered.org/t/using-flow-variable-in-if-statement/31023 "2020-08-02T07:53:18Z")

</div>

I want to save a value in a flow variable once and then compare it to incoming a msg.payload field in an if statement (using a function block) I have saved the value I want to compare then I load it into the colora var…

---

## [Message times and when they are shown](https://discourse.nodered.org/t/message-times-and-when-they-are-shown/31039)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 1\
**Last updated:** [2 August 2020 07:31 UTC](https://discourse.nodered.org/t/message-times-and-when-they-are-shown/31039 "2020-08-02T07:31:31Z")

</div>

I know NR is async' but this is weird. I am starting to build my flow for my new project. I am writing it in blocks so as to help keep things understandable. I am using link nodes to represent inputs from buttons. A…

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

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