# General

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

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

**Page:** 455

---

## [Comparision of two numeric values and make conditional accordingly](https://discourse.nodered.org/t/comparision-of-two-numeric-values-and-make-conditional-accordingly/54974)

<div class="topic-metadata">

**Author:** [@aminulhaq](https://discourse.nodered.org/u/aminulhaq)\
**Replies:** 2\
**Last updated:** [10 December 2021 09:07 UTC](https://discourse.nodered.org/t/comparision-of-two-numeric-values-and-make-conditional-accordingly/54974 "2021-12-10T09:07:59Z")

</div>

Hi, I am new in node red and dont k now programing language of node red, i have taken two temperature values from my PLC and now i want to compare these two values and put conditional on it like if differencer of two v…

---

## [Brooke Jessica Kaio](https://discourse.nodered.org/t/brooke-jessica-kaio/54976)

<div class="topic-metadata">

**Author:** [@brookejessicakaio](https://discourse.nodered.org/u/brookejessicakaio)\
**Replies:** 3\
**Last updated:** [10 December 2021 07:16 UTC](https://discourse.nodered.org/t/brooke-jessica-kaio/54976 "2021-12-10T07:16:22Z")

</div>

Hi all, Brooke Jessica Kaio new here and hope everyone will be fine here. I found this forum really affective for discussion. I'm looking forward to learn some useful ideas related to node-red.

---

## [OPC-UA BadTypeMismatch (0x80740000) - S7\_1500](https://discourse.nodered.org/t/opc-ua-badtypemismatch-0x80740000-s7-1500/54935)

<div class="topic-metadata">

**Author:** [@nico25](https://discourse.nodered.org/u/nico25)\
**Replies:** 0\
**Last updated:** [9 December 2021 14:17 UTC](https://discourse.nodered.org/t/opc-ua-badtypemismatch-0x80740000-s7-1500/54935 "2021-12-09T14:17:06Z")

</div>

Hello, i am using node-red-contrib-opcua in my current project. I am able to read/write boolean values with the opc-client to my S7-1500. Now i am trying so send a numerical value e.g 70009, to my S7. For some reason…

---

## [Did i miss something here? Help](https://discourse.nodered.org/t/did-i-miss-something-here-help/54968)

<div class="topic-metadata">

**Author:** [@jhunnx](https://discourse.nodered.org/u/jhunnx)\
**Replies:** 2\
**Last updated:** [10 December 2021 05:37 UTC](https://discourse.nodered.org/t/did-i-miss-something-here-help/54968 "2021-12-10T05:37:45Z")

</div>

I have this project and when i try to use node-red the values changes without node-red this is the my code and the serial plotter output. const int sampleWindow = 50; unsigned int sample…

---

## [Err Msg from Non existent node](https://discourse.nodered.org/t/err-msg-from-non-existent-node/54970)

<div class="topic-metadata">

**Author:** [@Mick](https://discourse.nodered.org/u/Mick)\
**Replies:** 15\
**Last updated:** [10 December 2021 01:04 UTC](https://discourse.nodered.org/t/err-msg-from-non-existent-node/54970 "2021-12-10T01:04:52Z")

</div>

I am getting an err msg in debug pane and I have not been able to find the node. I have grepped the flows.json file for the id '4ec33857e45da101' and nothing shows up. I suspect it is do to a broken link but was hopi…

---

## [Beginner problem: MQTT](https://discourse.nodered.org/t/beginner-problem-mqtt/54961)

<div class="topic-metadata">

**Author:** [@jhunnx](https://discourse.nodered.org/u/jhunnx)\
**Replies:** 3\
**Last updated:** [9 December 2021 22:09 UTC](https://discourse.nodered.org/t/beginner-problem-mqtt/54961 "2021-12-09T22:09:12Z")

</div>

I have a iot project uses Arduino uno wifi rev2 along with mqtt protocol. The connection is working fine but when i tried to use the old modem(no internet connection) i have its just keep connecting but when i checked th…

---

## [Appending an attribute to an incoming message from a flow context](https://discourse.nodered.org/t/appending-an-attribute-to-an-incoming-message-from-a-flow-context/54954)

<div class="topic-metadata">

**Author:** [@ChankyTheConqueror](https://discourse.nodered.org/u/ChankyTheConqueror)\
**Replies:** 9\
**Last updated:** [9 December 2021 21:19 UTC](https://discourse.nodered.org/t/appending-an-attribute-to-an-incoming-message-from-a-flow-context/54954 "2021-12-09T21:19:53Z")

</div>

Hi, i'm new here, thank you for the great forum, well i'm playing with interactive ui-tables, and i have this specific table containing my temperature sensors on the same table i have a column which is editable. The co…

---

## [Compare the result of two functions and get just one](https://discourse.nodered.org/t/compare-the-result-of-two-functions-and-get-just-one/54939)

<div class="topic-metadata">

**Author:** [@virginiasacudato1](https://discourse.nodered.org/u/virginiasacudato1)\
**Replies:** 3\
**Last updated:** [9 December 2021 21:18 UTC](https://discourse.nodered.org/t/compare-the-result-of-two-functions-and-get-just-one/54939 "2021-12-09T21:18:28Z")

</div>

I have the result of two functions and I want to compare their result in a single function. But I can't, I don't know if it's a synchronization error or times, I tried the join node but nothing works. Here I leave some s…

---

## [Can I use the worldmap plugin in node-red to view a building in 3D?](https://discourse.nodered.org/t/can-i-use-the-worldmap-plugin-in-node-red-to-view-a-building-in-3d/54951)

<div class="topic-metadata">

**Author:** [@bchernis](https://discourse.nodered.org/u/bchernis)\
**Replies:** 2\
**Last updated:** [9 December 2021 21:09 UTC](https://discourse.nodered.org/t/can-i-use-the-worldmap-plugin-in-node-red-to-view-a-building-in-3d/54951 "2021-12-09T21:09:28Z")

</div>

Hello. I am trying to use the "worldmap" plugin in node-red to display a 3D building in Barcelona, Spain that I've constructed from polygons using coordinates from the following source (which also shows what the buildin…

---

## [STT using websocket in streaming mode](https://discourse.nodered.org/t/stt-using-websocket-in-streaming-mode/54947)

<div class="topic-metadata">

**Author:** [@muhammadaasem](https://discourse.nodered.org/u/muhammadaasem)\
**Replies:** 2\
**Last updated:** [9 December 2021 20:47 UTC](https://discourse.nodered.org/t/stt-using-websocket-in-streaming-mode/54947 "2021-12-09T20:47:40Z")

</div>

Would someone please share a flow with following requirements Open socket Open microphone (by click) Speak something Watson STT transcribes display interm results display final result with confidence score Close microp…

---

## [Can I make these fields retentive?](https://discourse.nodered.org/t/can-i-make-these-fields-retentive/54899)

<div class="topic-metadata">

**Author:** [@traderjoe](https://discourse.nodered.org/u/traderjoe)\
**Replies:** 9\
**Last updated:** [9 December 2021 19:32 UTC](https://discourse.nodered.org/t/can-i-make-these-fields-retentive/54899 "2021-12-09T19:32:47Z")

</div>

I have a form node: This form helps the user configure the Pi to look for different devices on Modbus TCP. I'm using a form so the IP address is flexible. These fields are enterable, but they are not retained. Mean…

---

## [Convert hex to bin preserving long format](https://discourse.nodered.org/t/convert-hex-to-bin-preserving-long-format/54928)

<div class="topic-metadata">

**Author:** [@TheMiloNet](https://discourse.nodered.org/u/TheMiloNet)\
**Replies:** 1\
**Last updated:** [9 December 2021 13:19 UTC](https://discourse.nodered.org/t/convert-hex-to-bin-preserving-long-format/54928 "2021-12-09T13:19:47Z")

</div>

Hi all, i need to convert hex value eg "24" to bin. "00100100". Using the msg.payload = parseInt(msg.payload,16).toString(2) the result is "100100". How can obtain a long format value with all 8 bit "00100100"? B…

---

## [TTS.google\_translate\_say](https://discourse.nodered.org/t/tts-google-translate-say/54955)

<div class="topic-metadata">

**Author:** [@pito66](https://discourse.nodered.org/u/pito66)\
**Replies:** 0\
**Last updated:** [9 December 2021 19:06 UTC](https://discourse.nodered.org/t/tts-google-translate-say/54955 "2021-12-09T19:06:59Z")

</div>

I have TTS.google\_translate\_say working fine with my google home speaker when message is in english, but if I try to use it with a different language it doesn't produce any sound in my speaker. I have the following synt…

---

## [Returnvalue of MSSQL Query Select Count](https://discourse.nodered.org/t/returnvalue-of-mssql-query-select-count/54933)

<div class="topic-metadata">

**Author:** [@Riggi](https://discourse.nodered.org/u/Riggi)\
**Replies:** 6\
**Last updated:** [9 December 2021 19:05 UTC](https://discourse.nodered.org/t/returnvalue-of-mssql-query-select-count/54933 "2021-12-09T19:05:12Z")

</div>

Hello, I'm using the node-red-contrib-mssql-plus Everthing works well! One thing is strange and Im struggeling ;( The Returnvalue of the command Select Count returns the right Value but I can't use the returnvalue. Th…

---

## [Outputting text to a Windows shared folder](https://discourse.nodered.org/t/outputting-text-to-a-windows-shared-folder/54876)

<div class="topic-metadata">

**Author:** [@thekitehunter](https://discourse.nodered.org/u/thekitehunter)\
**Replies:** 12\
**Last updated:** [9 December 2021 17:20 UTC](https://discourse.nodered.org/t/outputting-text-to-a-windows-shared-folder/54876 "2021-12-09T17:20:15Z")

</div>

I'm running Node-Red in Home Assistant on a Raspberry Pi. I'm collecting data from MQTT and can save it into a file, on the Pi, but how do I send it to a shared folder on my Windows file server. I've been trying with nod…

---

## [OpenKiosk as an HMI client](https://discourse.nodered.org/t/openkiosk-as-an-hmi-client/54938)

<div class="topic-metadata">

**Author:** [@mdkrieg](https://discourse.nodered.org/u/mdkrieg)\
**Replies:** 1\
**Last updated:** [9 December 2021 16:10 UTC](https://discourse.nodered.org/t/openkiosk-as-an-hmi-client/54938 "2021-12-09T16:10:20Z")

</div>

Just sharing this as I see this software has not been mentioned yet on the forums. https://openkiosk.mozdevgroup.com/ Description OpenKiosk is a cross platform kiosk web browser based on Mozilla Firefox that can be e…

---

## [Issue with rounding. \[SOLVED\]](https://discourse.nodered.org/t/issue-with-rounding-solved/54920)

<div class="topic-metadata">

**Author:** [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Replies:** 9\
**Last updated:** [9 December 2021 16:06 UTC](https://discourse.nodered.org/t/issue-with-rounding-solved/54920 "2021-12-09T16:06:07Z")

</div>

I have a modbus read node which communicates a PLC at 20 ms polling rate, and returns the status of a memory address (true or false). I have set up a flow which calculates the status change between false and true (throug…

---

## [Handling \<settings.userDir\>/package.json when using the Storage APIs](https://discourse.nodered.org/t/handling-settings-userdir-package-json-when-using-the-storage-apis/54626)

<div class="topic-metadata">

**Author:** [@hammoaj](https://discourse.nodered.org/u/hammoaj)\
**Replies:** 2\
**Last updated:** [9 December 2021 15:33 UTC](https://discourse.nodered.org/t/handling-settings-userdir-package-json-when-using-the-storage-apis/54626 "2021-12-09T15:33:05Z")

</div>

Hi @knolleary , @dceejay As I re-implement the Cloudant file storage on the latest Docker image, I am wondering how it should handle the package.json file used internally to manage modules installed. In the standard Doc…

---

## [HTTP POST jsonprc request problems](https://discourse.nodered.org/t/http-post-jsonprc-request-problems/54580)

<div class="topic-metadata">

**Author:** [@HughB](https://discourse.nodered.org/u/HughB)\
**Replies:** 2\
**Last updated:** [9 December 2021 15:29 UTC](https://discourse.nodered.org/t/http-post-jsonprc-request-problems/54580 "2021-12-09T15:29:23Z")

</div>

Hi all im fairly new to Node Red and up until now things have been going swimmingly. I am trying to get an HTTP request (post) to work and non matter what i try i always get a 400 bad response. The request is being us…

---

## [Getting information from a CGI web service](https://discourse.nodered.org/t/getting-information-from-a-cgi-web-service/54921)

<div class="topic-metadata">

**Author:** [@jabss](https://discourse.nodered.org/u/jabss)\
**Replies:** 2\
**Last updated:** [9 December 2021 14:30 UTC](https://discourse.nodered.org/t/getting-information-from-a-cgi-web-service/54921 "2021-12-09T14:30:39Z")

</div>

Hi, I have a system that provides me the temperature in a room via a simple CGI webservice: user1@mojito:~# time wget -q -O - http://192.168.2.6/cgi-bin/ws3.cgi?item=garagem\\&value=1\\&action=get \<html\> \<head\> \<title\>W…

---

## [Node-red-contrib-powershell (tobiassoltermann)](https://discourse.nodered.org/t/node-red-contrib-powershell-tobiassoltermann/54934)

<div class="topic-metadata">

**Author:** [@Mattia.88](https://discourse.nodered.org/u/Mattia.88)\
**Replies:** 0\
**Last updated:** [9 December 2021 14:14 UTC](https://discourse.nodered.org/t/node-red-contrib-powershell-tobiassoltermann/54934 "2021-12-09T14:14:10Z")

</div>

Good morning, how can to pass parameters to a file powershell with "node-red-contrib-powershell "? Now, into payload, i can only write the name of file powershell for execute! Thanks a lot!

---

## [Increasing value font size](https://discourse.nodered.org/t/increasing-value-font-size/54870)

<div class="topic-metadata">

**Author:** [@MR76](https://discourse.nodered.org/u/MR76)\
**Replies:** 7\
**Last updated:** [9 December 2021 13:47 UTC](https://discourse.nodered.org/t/increasing-value-font-size/54870 "2021-12-09T13:47:13Z")

</div>

Hi, I'm trying to increase the size of the number in the current value field. I tried it with \<font size =25\> {{msg.payload}} in the value format. But that doesnt't work after a certain font size. Is there any other wa…

---

## [NR complains about incorrect javascript code - but its not](https://discourse.nodered.org/t/nr-complains-about-incorrect-javascript-code-but-its-not/54916)

<div class="topic-metadata">

**Author:** [@haegar33](https://discourse.nodered.org/u/haegar33)\
**Replies:** 6\
**Last updated:** [9 December 2021 13:54 UTC](https://discourse.nodered.org/t/nr-complains-about-incorrect-javascript-code-but-its-not/54916 "2021-12-09T13:54:13Z")

</div>

I got these lines in a function to check for the presence of a sensor: var t = new Date(msg.payload.attr.lastseen); var t0 = new Date(); nmsg.payload.diff = (t0 - t) / 1000; So .diff is the time difference in seconds. …

---

## [Node-red-node-pi-gpio out stopped working](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875)

<div class="topic-metadata">

**Author:** [@Magnus-rosenborg](https://discourse.nodered.org/u/Magnus-rosenborg)\
**Replies:** 17\
**Last updated:** [9 December 2021 13:50 UTC](https://discourse.nodered.org/t/node-red-node-pi-gpio-out-stopped-working/54875 "2021-12-09T13:50:41Z")

</div>

Suddenly 2 of my rasberry stopped working the same problem. The node rpi-gpio out is grey and disappered from the node collection. In the flow is says "Unknown: rpi-gpio out". I've upgraded Raspian to latest. Removed fr…

---

## [Read Files from any directory](https://discourse.nodered.org/t/read-files-from-any-directory/54919)

<div class="topic-metadata">

**Author:** [@hanine](https://discourse.nodered.org/u/hanine)\
**Replies:** 9\
**Last updated:** [9 December 2021 13:31 UTC](https://discourse.nodered.org/t/read-files-from-any-directory/54919 "2021-12-09T13:31:56Z")

</div>

How do I make node red read files from any directory not just files under the directory which it is installed in. Thank you in advance.

---

## [Tachometer EC Fan](https://discourse.nodered.org/t/tachometer-ec-fan/6475)

<div class="topic-metadata">

**Author:** [@dakure](https://discourse.nodered.org/u/dakure)\
**Replies:** 1\
**Last updated:** [9 December 2021 13:11 UTC](https://discourse.nodered.org/t/tachometer-ec-fan/6475 "2021-12-09T13:11:42Z")

</div>

Hi, I want to read the rpm s from a EC (Electronically Commutated) fan. I did it with a python script but I was wondering the best way to do it in NodeRed. I don t realise how to get the pulses for minute using the r…

---

## ["Error: Cannot find module 'extend'](https://discourse.nodered.org/t/error-cannot-find-module-extend/54913)

<div class="topic-metadata">

**Author:** [@Omer](https://discourse.nodered.org/u/Omer)\
**Replies:** 7\
**Last updated:** [9 December 2021 10:37 UTC](https://discourse.nodered.org/t/error-cannot-find-module-extend/54913 "2021-12-09T10:37:33Z")

</div>

Hi everyone, I'm pretty new to Node-RED and I am working on a project with Augmented Operator Advisor by Schneider Electric to send MySQL data to the AOA app on a Tablet device. I followed up the installation of the AOA…

---

## [Is there a way to get node properties Name and use it later in the flow?](https://discourse.nodered.org/t/is-there-a-way-to-get-node-properties-name-and-use-it-later-in-the-flow/54887)

<div class="topic-metadata">

**Author:** [@peterda](https://discourse.nodered.org/u/peterda)\
**Replies:** 6\
**Last updated:** [8 December 2021 21:07 UTC](https://discourse.nodered.org/t/is-there-a-way-to-get-node-properties-name-and-use-it-later-in-the-flow/54887 "2021-12-08T21:07:35Z")

</div>

I want to use the name of a node later in a flow, is this possible? When yes, how can i do this? I am using a zigbee2mqtt node and give it an understandable name. This name will be used to commit a record in a datab…

---

## [Function Node with RBE functionality, issue with JSON Objects](https://discourse.nodered.org/t/function-node-with-rbe-functionality-issue-with-json-objects/54854)

<div class="topic-metadata">

**Author:** [@GeorgeCastanza](https://discourse.nodered.org/u/GeorgeCastanza)\
**Replies:** 8\
**Last updated:** [9 December 2021 09:18 UTC](https://discourse.nodered.org/t/function-node-with-rbe-functionality-issue-with-json-objects/54854 "2021-12-09T09:18:59Z")

</div>

Hey, I know I could do this with the RBE/filter node, but it's in some code, and I'd like to keep it in the function node. Is there a way for this code to check for JSON objects. It does check for numbers/strings etc. …

---

## [Only switch if state if OFF](https://discourse.nodered.org/t/only-switch-if-state-if-off/54881)

<div class="topic-metadata">

**Author:** [@HaVi](https://discourse.nodered.org/u/HaVi)\
**Replies:** 5\
**Last updated:** [9 December 2021 07:37 UTC](https://discourse.nodered.org/t/only-switch-if-state-if-off/54881 "2021-12-09T07:37:55Z")

</div>

In the flow below I can manually switch a Philips Hue lamp on and off with two switches. I now also want to use a motion sensor to switch on the lamp when there is movement. But this should only work when the lamp is of…

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

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