# Latest

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

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

**Page:** 583

---

## [Print out dashboard on network printer](https://discourse.nodered.org/t/print-out-dashboard-on-network-printer/61645)

<div class="topic-metadata">

**Author:** [@RuneStone](https://discourse.nodered.org/u/RuneStone)\
**Replies:** 3\
**Last updated:** [25 April 2022 11:18 UTC](https://discourse.nodered.org/t/print-out-dashboard-on-network-printer/61645 "2022-04-25T11:18:07Z")

</div>

Hi. I have a table on a dashboard which i need to print on a network printer when i get a digital input. Have looked for nodes but i have not found any suitable node.. node red is running on a windows server so i could…

---

## [Any idea ? raspberry4 with node-red-contrib-i2c gets different values on some registers](https://discourse.nodered.org/t/any-idea-raspberry4-with-node-red-contrib-i2c-gets-different-values-on-some-registers/61650)

<div class="topic-metadata">

**Author:** [@luck0r](https://discourse.nodered.org/u/luck0r)\
**Replies:** 17\
**Last updated:** [25 April 2022 10:12 UTC](https://discourse.nodered.org/t/any-idea-raspberry4-with-node-red-contrib-i2c-gets-different-values-on-some-registers/61650 "2022-04-25T10:12:37Z")

</div>

Hey Guys, maybe some one has an idea. I have some commands i send send out (2 of 20) and get the correct value from. If i use i2cget i get the correct value for all commands. Example :slight\_smile: The buffer is 0, …

---

## [Double switch with mqtt -\> endless loop](https://discourse.nodered.org/t/double-switch-with-mqtt-endless-loop/61741)

<div class="topic-metadata">

**Author:** [@Becker](https://discourse.nodered.org/u/Becker)\
**Replies:** 4\
**Last updated:** [25 April 2022 09:42 UTC](https://discourse.nodered.org/t/double-switch-with-mqtt-endless-loop/61741 "2022-04-25T09:42:41Z")

</div>

Hi, I want to build a very simple switch for both RPi. So I have to send the status (false/true) by mqtt. But I always get a endless loop :woozy\_face: Any idea how to get this work ? (tried switch and slider) I w…

---

## [Node-red-contrib-iiot-opcua method caller node issue](https://discourse.nodered.org/t/node-red-contrib-iiot-opcua-method-caller-node-issue/7133)

<div class="topic-metadata">

**Author:** [@somnath](https://discourse.nodered.org/u/somnath)\
**Replies:** 3\
**Last updated:** [25 April 2022 09:10 UTC](https://discourse.nodered.org/t/node-red-contrib-iiot-opcua-method-caller-node-issue/7133 "2022-04-25T09:10:03Z")

</div>

Hi, I am trying to setup a node-red flow where i am using "IIOT method caller" node for connection. My configuration seems OK but when i am passing Boolean input parameter which is acceptable parameter for my method the…

---

## [Error, Json string ends unexpectedly](https://discourse.nodered.org/t/error-json-string-ends-unexpectedly/61726)

<div class="topic-metadata">

**Author:** [@king877](https://discourse.nodered.org/u/king877)\
**Replies:** 4\
**Last updated:** [25 April 2022 08:43 UTC](https://discourse.nodered.org/t/error-json-string-ends-unexpectedly/61726 "2022-04-25T08:43:07Z")

</div>

So I am trying to publish some values to a topic using jsondoc, but unfortunately only some of the values get published. It sends 6 out of the 10. My memory is 256 for the doc here is the code. The output I get in node …

---

## [Help for what term to use to indicate the mode of something](https://discourse.nodered.org/t/help-for-what-term-to-use-to-indicate-the-mode-of-something/61737)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 1\
**Last updated:** [25 April 2022 07:10 UTC](https://discourse.nodered.org/t/help-for-what-term-to-use-to-indicate-the-mode-of-something/61737 "2022-04-25T07:10:34Z")

</div>

What word/something can I use in a subflow ENV setting to control a setting. Alas mode is taken. (Isn't it always the way) :wink: My effort on my version of the filter node (aka RBE) has run into a wall kind of. I …

---

## [Sudo command not found](https://discourse.nodered.org/t/sudo-command-not-found/61572)

<div class="topic-metadata">

**Author:** [@LDP](https://discourse.nodered.org/u/LDP)\
**Replies:** 7\
**Last updated:** [25 April 2022 06:52 UTC](https://discourse.nodered.org/t/sudo-command-not-found/61572 "2022-04-25T06:52:15Z")

</div>

Hi all, I am running windows 11 with Docker Desktop. After start the Node-red container, I accessed to Node-red through command: "docker exec -it mynodered bash". From here, I tried to run command: "npm install -g n" an…

---

## [Can not get files via sftp](https://discourse.nodered.org/t/can-not-get-files-via-sftp/61633)

<div class="topic-metadata">

**Author:** [@smitterer](https://discourse.nodered.org/u/smitterer)\
**Replies:** 7\
**Last updated:** [25 April 2022 06:29 UTC](https://discourse.nodered.org/t/can-not-get-files-via-sftp/61633 "2022-04-25T06:29:14Z")

</div>

Hi, I'm trying to get all files from a folder on a server via sftp and download them into a specific local folder. If possible, I'd only like to download those files that start with XYC. I tried the following flow, bu…

---

## [Load value into function](https://discourse.nodered.org/t/load-value-into-function/60489)

<div class="topic-metadata">

**Author:** [@Pikny](https://discourse.nodered.org/u/Pikny)\
**Replies:** 6\
**Last updated:** [25 April 2022 05:26 UTC](https://discourse.nodered.org/t/load-value-into-function/60489 "2022-04-25T05:26:36Z")

</div>

Hi! I would like to write a function, when initiated by "PLC start mission", will take the value from "robot\_id" and enter it in the appropriate place in the function. Unfortunately, he keeps throwing me an error. Anyon…

---

## [File that looks fine but may be encoded wrong](https://discourse.nodered.org/t/file-that-looks-fine-but-may-be-encoded-wrong/61732)

<div class="topic-metadata">

**Author:** [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Replies:** 2\
**Last updated:** [25 April 2022 00:25 UTC](https://discourse.nodered.org/t/file-that-looks-fine-but-may-be-encoded-wrong/61732 "2022-04-25T00:25:31Z")

</div>

OS: macOS 12.2.1 Node-RED version: v2.2.2 Node.js version: v14.16.0 Darwin 21.3.0 x64 LE Dashboard version 3.1.3 started at /ui So I have a program creating a CSV file. I need to change the order of the items and re…

---

## [Rasberry Pi GPIO pins not switching](https://discourse.nodered.org/t/rasberry-pi-gpio-pins-not-switching/61658)

<div class="topic-metadata">

**Author:** [@Jsimon003](https://discourse.nodered.org/u/Jsimon003)\
**Replies:** 24\
**Last updated:** [24 April 2022 22:54 UTC](https://discourse.nodered.org/t/rasberry-pi-gpio-pins-not-switching/61658 "2022-04-24T22:54:01Z")

</div>

I have a simple GPIO set up where I inject a 1 and a 0 into the standard GPIO node to turn a relay on and off. my GPIO pins will not change state

---

## [Alarm system for portable item](https://discourse.nodered.org/t/alarm-system-for-portable-item/61731)

<div class="topic-metadata">

**Author:** [@smitterer](https://discourse.nodered.org/u/smitterer)\
**Replies:** 0\
**Last updated:** [24 April 2022 20:14 UTC](https://discourse.nodered.org/t/alarm-system-for-portable-item/61731 "2022-04-24T20:14:10Z")

</div>

Hi, I'm planning on creating an alarm system for a portable device. Externally, in Home Assistant, I set an alarm to be on or off. When its state changes to armed, I want Node-Red to take the current location of the de…

---

## [Dashboard Nodes Changing Position (nodes size locked)](https://discourse.nodered.org/t/dashboard-nodes-changing-position-nodes-size-locked/61652)

<div class="topic-metadata">

**Author:** [@aa0z](https://discourse.nodered.org/u/aa0z)\
**Replies:** 1\
**Last updated:** [24 April 2022 19:28 UTC](https://discourse.nodered.org/t/dashboard-nodes-changing-position-nodes-size-locked/61652 "2022-04-24T19:28:37Z")

</div>

I have the following dashboard group that keeps reverting back to looking like this. Here is what it's set to before it changes on it's own. All the nodes are locked and set to the correct width x height. Not sure…

---

## [Buffer parser node "LSW / MSW"](https://discourse.nodered.org/t/buffer-parser-node-lsw-msw/61695)

<div class="topic-metadata">

**Author:** [@pararnold](https://discourse.nodered.org/u/pararnold)\
**Replies:** 6\
**Last updated:** [24 April 2022 19:05 UTC](https://discourse.nodered.org/t/buffer-parser-node-lsw-msw/61695 "2022-04-24T19:05:24Z")

</div>

Hi, I found this closed, unsolved topic: https://discourse.nodered.org/t/going-crazy-trying-to-read-signed-int32-from-buffer as I want to parse data from the same device. The problem is that it is providing int32 data …

---

## [Simple (should be) buffer parser question](https://discourse.nodered.org/t/simple-should-be-buffer-parser-question/61727)

<div class="topic-metadata">

**Author:** [@SkyMo](https://discourse.nodered.org/u/SkyMo)\
**Replies:** 2\
**Last updated:** [24 April 2022 17:39 UTC](https://discourse.nodered.org/t/simple-should-be-buffer-parser-question/61727 "2022-04-24T17:39:07Z")

</div>

Hi. I'm reading serial data and its a bunch of hex encoded numbers. For example I might get 30,44,30,33 which is 0x0D03 or 3,331. Seems like a simple matter for buffer parser but I cannot get it to work. My simple…

---

## [Can't set a dashbord time value in form](https://discourse.nodered.org/t/cant-set-a-dashbord-time-value-in-form/61185)

<div class="topic-metadata">

**Author:** [@Vrrrum](https://discourse.nodered.org/u/Vrrrum)\
**Replies:** 8\
**Last updated:** [24 April 2022 16:59 UTC](https://discourse.nodered.org/t/cant-set-a-dashbord-time-value-in-form/61185 "2022-04-24T16:59:35Z")

</div>

Hello, I'm trying to set the value of date input, in the form element. So I tried to inject the time in by json object, just like you do with other input types in form. But for some reason it doesn't work. Input value s…

---

## [Notification Class Name](https://discourse.nodered.org/t/notification-class-name/61648)

<div class="topic-metadata">

**Author:** [@mightyMinkus](https://discourse.nodered.org/u/mightyMinkus)\
**Replies:** 3\
**Last updated:** [24 April 2022 16:12 UTC](https://discourse.nodered.org/t/notification-class-name/61648 "2022-04-24T16:12:51Z")

</div>

Hi guys, I am trying to customize the dashboard notification a bit with css. I'm trying to pass a custom class with msg.className. This works great when using the notifications that don't have OK/Cancel options, I can se…

---

## [Sending simple text to Nextion Display](https://discourse.nodered.org/t/sending-simple-text-to-nextion-display/61713)

<div class="topic-metadata">

**Author:** [@robertebroomfield](https://discourse.nodered.org/u/robertebroomfield)\
**Replies:** 3\
**Last updated:** [24 April 2022 14:31 UTC](https://discourse.nodered.org/t/sending-simple-text-to-nextion-display/61713 "2022-04-24T14:31:30Z")

</div>

Hi All Im deeply frustrated with this. I'm trying to send text to a nextion display using serial. Inject node fires a function with this code msg.payload = 't0.txt="' + msg.payload + '"'; return msg; But alas thi…

---

## [Node-RED install on Ubuntu 22.04 (Jammy Jellyfish) - doesn't](https://discourse.nodered.org/t/node-red-install-on-ubuntu-22-04-jammy-jellyfish-doesnt/61716)

<div class="topic-metadata">

**Author:** [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Replies:** 3\
**Last updated:** [24 April 2022 13:15 UTC](https://discourse.nodered.org/t/node-red-install-on-ubuntu-22-04-jammy-jellyfish-doesnt/61716 "2022-04-24T13:15:14Z")

</div>

Hi at this time of writing (24th April 22) - the nodesource node.js install script does not yet support the latest Ubuntu LTS 22.04 Jammy distribution... This mean that our Node-RED install script will also (sort of) fa…

---

## [Global variable call in postgrestor node - where condition](https://discourse.nodered.org/t/global-variable-call-in-postgrestor-node-where-condition/61709)

<div class="topic-metadata">

**Author:** [@learnobyte](https://discourse.nodered.org/u/learnobyte)\
**Replies:** 2\
**Last updated:** [24 April 2022 10:34 UTC](https://discourse.nodered.org/t/global-variable-call-in-postgrestor-node-where-condition/61709 "2022-04-24T10:34:34Z")

</div>

Hi, how to use/declare global variable in select query where condition? i tried below this flow, select query returns rowcount value as zero, would like to know how to declare global variable in sql query.

---

## [One Button Press, cycle through 3 Yeelight Colours](https://discourse.nodered.org/t/one-button-press-cycle-through-3-yeelight-colours/11607)

<div class="topic-metadata">

**Author:** [@brunoap](https://discourse.nodered.org/u/brunoap)\
**Replies:** 11\
**Last updated:** [24 April 2022 10:26 UTC](https://discourse.nodered.org/t/one-button-press-cycle-through-3-yeelight-colours/11607 "2022-04-24T10:26:17Z")

</div>

Hi. I have one RF Button that publishes the same payload on MQTT. How to make every button press, cycle an Yeelight through: White, Green, Purple, OFF and repeat... Input MQTT, example: home/OpenMQTTGateway/RFtoMQTT wi…

---

## [Library and node in one package](https://discourse.nodered.org/t/library-and-node-in-one-package/61548)

<div class="topic-metadata">

**Author:** [@NetHans](https://discourse.nodered.org/u/NetHans)\
**Replies:** 41\
**Last updated:** [24 April 2022 07:46 UTC](https://discourse.nodered.org/t/library-and-node-in-one-package/61548 "2022-04-24T07:46:21Z")

</div>

Hello, I am currently trying to create a Node. To make it easier to work with the resulting data, I wanted to add a NodeJs library to the node. This library should be able to be included in the function node via setup, …

---

## [Code adds key:property to global varible](https://discourse.nodered.org/t/code-adds-key-property-to-global-varible/61707)

<div class="topic-metadata">

**Author:** [@homeplayer](https://discourse.nodered.org/u/homeplayer)\
**Replies:** 1\
**Last updated:** [24 April 2022 07:24 UTC](https://discourse.nodered.org/t/code-adds-key-property-to-global-varible/61707 "2022-04-24T07:24:19Z")

</div>

Please help me here why does obj.keys. --- item --- get created ? const obj = global.get("glue." + msg.name + "." + msg.action); // msg.action toggle has run for (var keys in obj) { msg = obj\[keys\]; msg.item = …

---

## [Using Prometheus out node for multiple values](https://discourse.nodered.org/t/using-prometheus-out-node-for-multiple-values/60214)

<div class="topic-metadata">

**Author:** [@astrojav](https://discourse.nodered.org/u/astrojav)\
**Replies:** 10\
**Last updated:** [24 April 2022 07:09 UTC](https://discourse.nodered.org/t/using-prometheus-out-node-for-multiple-values/60214 "2022-04-24T07:09:15Z")

</div>

Hi folks, I have sensor data from an ESP32 being sent to node-red through an MQTT broker. Out of the 38 values been sent from the ESP32, 6 of them will require to be sent to the Prometheus interface and then eventually…

---

## [How to change payload from , to . before sending it to a SQL db](https://discourse.nodered.org/t/how-to-change-payload-from-to-before-sending-it-to-a-sql-db/61698)

<div class="topic-metadata">

**Author:** [@JzzO](https://discourse.nodered.org/u/JzzO)\
**Replies:** 5\
**Last updated:** [23 April 2022 22:16 UTC](https://discourse.nodered.org/t/how-to-change-payload-from-to-before-sending-it-to-a-sql-db/61698 "2022-04-23T22:16:51Z")

</div>

Hi. maybe this has been answered before. I am using different nodes (ds18b20 and rpi-dht22) to get data from sensors. these come with eg. 21,22xxxx values - and when pasting the payload to a MSSQL-Plus node to save the…

---

## [SMA EV Charger get data using curl - how to do this in Node-RED #2?](https://discourse.nodered.org/t/sma-ev-charger-get-data-using-curl-how-to-do-this-in-node-red-2/61641)

<div class="topic-metadata">

**Author:** [@nosered1966](https://discourse.nodered.org/u/nosered1966)\
**Replies:** 10\
**Last updated:** [23 April 2022 21:18 UTC](https://discourse.nodered.org/t/sma-ev-charger-get-data-using-curl-how-to-do-this-in-node-red-2/61641 "2022-04-23T21:18:25Z")

</div>

@Steve-Mcl Hi Stephen, you helped me already a lot to solve this topic: SMA EV Charger get data using curl - how to this in Node-RED? But as I have already announced, I need some more help to read out more data/param…

---

## [Problem while depending of object length](https://discourse.nodered.org/t/problem-while-depending-of-object-length/61678)

<div class="topic-metadata">

**Author:** [@Licky](https://discourse.nodered.org/u/Licky)\
**Replies:** 5\
**Last updated:** [23 April 2022 16:28 UTC](https://discourse.nodered.org/t/problem-while-depending-of-object-length/61678 "2022-04-23T16:28:43Z")

</div>

Hello, i'm receiving data which change in every objects, i'd like to make a loop and send 60 differents msg if there's 60 objects for example. this is the code i've done, i managed to get the amount of objects by usin…

---

## [Send 1st msg, delay from value in context, send second msg](https://discourse.nodered.org/t/send-1st-msg-delay-from-value-in-context-send-second-msg/61688)

<div class="topic-metadata">

**Author:** [@JernejM1](https://discourse.nodered.org/u/JernejM1)\
**Replies:** 0\
**Last updated:** [23 April 2022 16:52 UTC](https://discourse.nodered.org/t/send-1st-msg-delay-from-value-in-context-send-second-msg/61688 "2022-04-23T16:52:30Z")

</div>

Hi all, I am new in visual or real programming, so while I learning java script, I would appreciate some help from your side. I need function node, which will say: send 1st message immediately when arrive to input t…

---

## [Calculate the seconds between two timestamps](https://discourse.nodered.org/t/calculate-the-seconds-between-two-timestamps/61677)

<div class="topic-metadata">

**Author:** [@node2](https://discourse.nodered.org/u/node2)\
**Replies:** 2\
**Last updated:** [23 April 2022 09:46 UTC](https://discourse.nodered.org/t/calculate-the-seconds-between-two-timestamps/61677 "2022-04-23T09:46:05Z")

</div>

i need a function to calculate the difference time in seconds between two clicks, On click and Off click :slight\_smile:

---

## [Calling a REST API from a Function Node](https://discourse.nodered.org/t/calling-a-rest-api-from-a-function-node/61537)

<div class="topic-metadata">

**Author:** [@csmale](https://discourse.nodered.org/u/csmale)\
**Replies:** 9\
**Last updated:** [23 April 2022 20:25 UTC](https://discourse.nodered.org/t/calling-a-rest-api-from-a-function-node/61537 "2022-04-23T20:25:47Z")

</div>

I want to make simple HTTP calls from within a function node. Ideally so I can do: a = get\_value(b); from my code. The function needs to call an external REST API to get the value. The function node needs to make mult…

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

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