# Latest

**URL:** https://discourse.nodered.org/latest.md?page=1026

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

**Page:** 1027

---

## [Energy consumption of raspberry pi connected led](https://discourse.nodered.org/t/energy-consumption-of-raspberry-pi-connected-led/31139)

<div class="topic-metadata">

**Author:** [@usmanEmder](https://discourse.nodered.org/u/usmanEmder)\
**Replies:** 3\
**Last updated:** [4 August 2020 19:49 UTC](https://discourse.nodered.org/t/energy-consumption-of-raspberry-pi-connected-led/31139 "2020-08-04T19:49:58Z")

</div>

Hi everyone. I want to calculate the energy consumption of led which is connected with raspberry. Can anyone suggest to me, how can it be done?

---

## [Example of boolean input type in node html file?](https://discourse.nodered.org/t/example-of-boolean-input-type-in-node-html-file/31135)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 14\
**Last updated:** [4 August 2020 19:16 UTC](https://discourse.nodered.org/t/example-of-boolean-input-type-in-node-html-file/31135 "2020-08-04T19:16:46Z")

</div>

Developing a node, where I need to have boolean value selected. I have seen this in a few nodes, and in various places in NR editor and such. But not sure where a 'good' example of implementing this is? I figure it is…

---

## [Using canvas-gauges package with Node-Red](https://discourse.nodered.org/t/using-canvas-gauges-package-with-node-red/31026)

<div class="topic-metadata">

**Author:** [@ghstudio](https://discourse.nodered.org/u/ghstudio)\
**Replies:** 7\
**Last updated:** [4 August 2020 18:49 UTC](https://discourse.nodered.org/t/using-canvas-gauges-package-with-node-red/31026 "2020-08-04T18:49:13Z")

</div>

I've found "canvas-gauges" which is a fully flexible way to create gauges and display data on the dashboard. I have installed the full package using NPM, but I can not figure out how to use them through node-red. Has a…

---

## [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…

---

## ["Error: Cannot find module 'node-red-dashboard"](https://discourse.nodered.org/t/error-cannot-find-module-node-red-dashboard/29782)

<div class="topic-metadata">

**Author:** [@IvyMike](https://discourse.nodered.org/u/IvyMike)\
**Replies:** 7\
**Last updated:** [4 August 2020 18:31 UTC](https://discourse.nodered.org/t/error-cannot-find-module-node-red-dashboard/29782 "2020-08-04T18:31:24Z")

</div>

Hello im trying to upload an image, and it tells me this "Error: Cannot find module 'node-red-dashboard'" i have created a Category and upload the image that i want, can somebody help me out

---

## [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…

---

## [Forum issue - not loading on PC?](https://discourse.nodered.org/t/forum-issue-not-loading-on-pc/31090)

<div class="topic-metadata">

**Author:** [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Replies:** 8\
**Last updated:** [3 August 2020 21:08 UTC](https://discourse.nodered.org/t/forum-issue-not-loading-on-pc/31090 "2020-08-03T21:08:38Z")

</div>

Hi all, I can't load node-red forum in chrome on my PC but it's ok on my phone using the PWA app (which I guess caches a lot of the resources) I've restarted the PC browser etc - no good. Some clues... I have cache …

---

## [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…

---

## [Dashboard text input node - avoid global state](https://discourse.nodered.org/t/dashboard-text-input-node-avoid-global-state/30744)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 19\
**Last updated:** [2 August 2020 21:44 UTC](https://discourse.nodered.org/t/dashboard-text-input-node-avoid-global-state/30744 "2020-08-02T21:44:16Z")

</div>

Hi folks, I have used a text input node on my dashboard, where I can enter a message: When I open now an extra dashboard, the same message appears there again automatically. I can understand that this shared state w…

---

## [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…

---

## [Converting buffer array to BigInt integer](https://discourse.nodered.org/t/converting-buffer-array-to-bigint-integer/18283)

<div class="topic-metadata">

**Author:** [@tohox](https://discourse.nodered.org/u/tohox)\
**Replies:** 14\
**Last updated:** [3 August 2020 14:13 UTC](https://discourse.nodered.org/t/converting-buffer-array-to-bigint-integer/18283 "2020-08-03T14:13:52Z")

</div>

Hi, I'm struggling to convert a Counter64 value issued from an SNMP node into an appropriately sized integer. My understanding is that BigInt is now officially part of node.js. So I assumed it would also be available to…

---

## [SE Augmented operator advisor variable stuck](https://discourse.nodered.org/t/se-augmented-operator-advisor-variable-stuck/30988)

<div class="topic-metadata">

**Author:** [@Tomahawk89](https://discourse.nodered.org/u/Tomahawk89)\
**Replies:** 2\
**Last updated:** [3 August 2020 11:53 UTC](https://discourse.nodered.org/t/se-augmented-operator-advisor-variable-stuck/30988 "2020-08-03T11:53:42Z")

</div>

Hey everyone, looking for some help here. I'm setting up Schneider electrics AOA for my company and if run into an issue with my variable being displayed. So i connected to a VFD and I'm reading the Hz address, i then …

---

## [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 …

[Previous page](https://discourse.nodered.org/latest.md?page=1025)

[Next page](https://discourse.nodered.org/latest.md?page=1027)
