# General

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

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

**Page:** 680

---

## [Exporting an STL with Node Red](https://discourse.nodered.org/t/exporting-an-stl-with-node-red/33294)

<div class="topic-metadata">

**Author:** [@FrancescoSortino](https://discourse.nodered.org/u/FrancescoSortino)\
**Replies:** 1\
**Last updated:** [24 September 2020 16:14 UTC](https://discourse.nodered.org/t/exporting-an-stl-with-node-red/33294 "2020-09-24T16:14:56Z")

</div>

Hi, I am a PhD student active in the field of mechanical engineering and am looking at Node Red for creating a quick sw to export an stl from a set of 3D coordinates. I am honestly at my first day of node, so any contr…

---

## [Form Android Widget to Node Red input](https://discourse.nodered.org/t/form-android-widget-to-node-red-input/33291)

<div class="topic-metadata">

**Author:** [@Demitos](https://discourse.nodered.org/u/Demitos)\
**Replies:** 1\
**Last updated:** [24 September 2020 15:01 UTC](https://discourse.nodered.org/t/form-android-widget-to-node-red-input/33291 "2020-09-24T15:01:39Z")

</div>

Hello from Germany. I have a little issue and I dont know hoe to get around this problem. I want a simple input, not even data but just a trigger msg within Node Red, which is triggert when I press a Widget on the home…

---

## [The best way to check exists or not the session, key, value of the ini file](https://discourse.nodered.org/t/the-best-way-to-check-exists-or-not-the-session-key-value-of-the-ini-file/33287)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 0\
**Last updated:** [24 September 2020 13:33 UTC](https://discourse.nodered.org/t/the-best-way-to-check-exists-or-not-the-session-key-value-of-the-ini-file/33287 "2020-09-24T13:33:28Z")

</div>

Hi, I would like to check if the session, key, value of an ini file exists or not using Node-RED \[SESSION1\] KEY1=Value1 KEY2=Value2 KEY3=Value3 \[SESSION2\] KEY1=Dummy1 KEY2=Dummy2 the session, key of the ini file will…

---

## [Node-Red connection to another device, from a server](https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249)

<div class="topic-metadata">

**Author:** [@andrews150](https://discourse.nodered.org/u/andrews150)\
**Replies:** 6\
**Last updated:** [24 September 2020 12:56 UTC](https://discourse.nodered.org/t/node-red-connection-to-another-device-from-a-server/33249 "2020-09-24T12:56:51Z")

</div>

Hello all, I have been working with a server on a desktop and have connected a device that is running Node-Red (Advantech ADAM 6750) and when I go to the Chrome web browser and type in the url "(ADAM ip):1880/hello" it …

---

## [Convert decimal to hex and back after transformation](https://discourse.nodered.org/t/convert-decimal-to-hex-and-back-after-transformation/33280)

<div class="topic-metadata">

**Author:** [@John245](https://discourse.nodered.org/u/John245)\
**Replies:** 4\
**Last updated:** [24 September 2020 12:21 UTC](https://discourse.nodered.org/t/convert-decimal-to-hex-and-back-after-transformation/33280 "2020-09-24T12:21:01Z")

</div>

I want to do the following. msg.payload\[8\]=12 msg.payload\[9\]=39161 I want to convert msg.payload\[8\] and \[9\] to Hex numbers (respectively C and 98F9). I have several issues. how do I convert to Hex numbers how do I …

---

## [How to use the ini node](https://discourse.nodered.org/t/how-to-use-the-ini-node/33272)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 4\
**Last updated:** [24 September 2020 10:01 UTC](https://discourse.nodered.org/t/how-to-use-the-ini-node/33272 "2020-09-24T10:01:32Z")

</div>

I have installed ini node (node-red-contrib-parser-ini) to read INI file, but do not know how to configure in the red frame below to be able to read the ini file with this node. Please tell me! Thanks. \[{"id":"11f5…

---

## [Link node connection disappearing](https://discourse.nodered.org/t/link-node-connection-disappearing/33271)

<div class="topic-metadata">

**Author:** [@r0ller](https://discourse.nodered.org/u/r0ller)\
**Replies:** 0\
**Last updated:** [24 September 2020 08:54 UTC](https://discourse.nodered.org/t/link-node-connection-disappearing/33271 "2020-09-24T08:54:21Z")

</div>

Hi All, This seems to be similar to two other issues reported earlier: This time I noticed that an existing connection via link nodes between two flows broke so I checked what goes wrong. When I clicked on the link…

---

## [functionGlobalContext: require with @](https://discourse.nodered.org/t/functionglobalcontext-require-with/33263)

<div class="topic-metadata">

**Author:** [@christl](https://discourse.nodered.org/u/christl)\
**Replies:** 4\
**Last updated:** [24 September 2020 08:38 UTC](https://discourse.nodered.org/t/functionglobalcontext-require-with/33263 "2020-09-24T08:38:35Z")

</div>

I am trying to access a standalone library in a function node and the approach shown in generic nodejs examples for the require command looks like this: const sgMail = require('@sendgrid/mail'); I have added the follow…

---

## [Moving node into Group at the same position doesn't offer to Save Flow](https://discourse.nodered.org/t/moving-node-into-group-at-the-same-position-doesnt-offer-to-save-flow/33257)

<div class="topic-metadata">

**Author:** [@pitus](https://discourse.nodered.org/u/pitus)\
**Replies:** 1\
**Last updated:** [24 September 2020 08:27 UTC](https://discourse.nodered.org/t/moving-node-into-group-at-the-same-position-doesnt-offer-to-save-flow/33257 "2020-09-24T08:27:15Z")

</div>

A strange issue I've discovered by accident. Create a Group with some nodes Copy and paste additional nodes from another Group into this one Note how the pasted nodes are not really included in the Group, just layered …

---

## [Nodered and firestore](https://discourse.nodered.org/t/nodered-and-firestore/33261)

<div class="topic-metadata">

**Author:** [@alex1](https://discourse.nodered.org/u/alex1)\
**Replies:** 0\
**Last updated:** [24 September 2020 07:21 UTC](https://discourse.nodered.org/t/nodered-and-firestore/33261 "2020-09-24T07:21:20Z")

</div>

How can i store a string into the firestore instead of only single alphabet?

---

## [MODBUS - Write boolean to Word](https://discourse.nodered.org/t/modbus-write-boolean-to-word/33039)

<div class="topic-metadata">

**Author:** [@AMBFrancesco](https://discourse.nodered.org/u/AMBFrancesco)\
**Replies:** 9\
**Last updated:** [24 September 2020 07:11 UTC](https://discourse.nodered.org/t/modbus-write-boolean-to-word/33039 "2020-09-24T07:11:25Z")

</div>

Hi, I'd like to write throgh a modbus connection a boolean into the corresponding bit contained in a WORD in my PLC, but I can't write the single bit to the FC Holding register. I use node-red-contrib-modbus. When I re…

---

## [Group outline (selection) gets stuck after copy/paste of a node within it](https://discourse.nodered.org/t/group-outline-selection-gets-stuck-after-copy-paste-of-a-node-within-it/33256)

<div class="topic-metadata">

**Author:** [@pitus](https://discourse.nodered.org/u/pitus)\
**Replies:** 1\
**Last updated:** [24 September 2020 05:47 UTC](https://discourse.nodered.org/t/group-outline-selection-gets-stuck-after-copy-paste-of-a-node-within-it/33256 "2020-09-24T05:47:59Z")

</div>

When I copy and paste a node that's within a Group, that Group's dashed outline remains active/stuck even if I select another Group and it never clears (until the page is reloaded). Drop a couple of nodes from Palette…

---

## [Node Red Docker - New File as Root](https://discourse.nodered.org/t/node-red-docker-new-file-as-root/33209)

<div class="topic-metadata">

**Author:** [@Paulf007](https://discourse.nodered.org/u/Paulf007)\
**Replies:** 4\
**Last updated:** [24 September 2020 01:32 UTC](https://discourse.nodered.org/t/node-red-docker-new-file-as-root/33209 "2020-09-24T01:32:14Z")

</div>

I am creating a .txt file within node red that is running in a Docker Container. (Default settings apart from having a external folder linked to the container. ) The file is created with a simple inject and all of that …

---

## [Serial port node delimiter parser](https://discourse.nodered.org/t/serial-port-node-delimiter-parser/33246)

<div class="topic-metadata">

**Author:** [@davidz](https://discourse.nodered.org/u/davidz)\
**Replies:** 1\
**Last updated:** [23 September 2020 22:41 UTC](https://discourse.nodered.org/t/serial-port-node-delimiter-parser/33246 "2020-09-23T22:41:54Z")

</div>

The current serial port node has the option of splitting the input data with a single character such as "0x0A". However, since there could be data with value of "0x0A", the split result could be wrong when there is data …

---

## [Timer in function node](https://discourse.nodered.org/t/timer-in-function-node/33197)

<div class="topic-metadata">

**Author:** [@krzydec](https://discourse.nodered.org/u/krzydec)\
**Replies:** 7\
**Last updated:** [23 September 2020 21:00 UTC](https://discourse.nodered.org/t/timer-in-function-node/33197 "2020-09-23T21:00:32Z")

</div>

Hello. I would like to make a countdown timer using a function node. Counter needs to be reset to its initial value when the function is triggered, so as long the function is triggered before the counter value reaches …

---

## [Loop in function node don´t send all topics into sqlite database](https://discourse.nodered.org/t/loop-in-function-node-don-t-send-all-topics-into-sqlite-database/33230)

<div class="topic-metadata">

**Author:** [@ZsomborPiros](https://discourse.nodered.org/u/ZsomborPiros)\
**Replies:** 2\
**Last updated:** [23 September 2020 20:08 UTC](https://discourse.nodered.org/t/loop-in-function-node-don-t-send-all-topics-into-sqlite-database/33230 "2020-09-23T20:08:53Z")

</div>

Hi, i want to safe key-value pairs in a database. Because i dont found some options i integrated sqlite in my flow. My problem is the function node doesn´t send all topics. When i inject i should have 111 entries but it …

---

## [Worldmap - Local mapserver](https://discourse.nodered.org/t/worldmap-local-mapserver/33244)

<div class="topic-metadata">

**Author:** [@DaveDave](https://discourse.nodered.org/u/DaveDave)\
**Replies:** 1\
**Last updated:** [23 September 2020 20:04 UTC](https://discourse.nodered.org/t/worldmap-local-mapserver/33244 "2020-09-23T20:04:19Z")

</div>

Hello, I'm really enjoying the Worldmap node (node-red-contrib-web-worldmap). Great project and lots of options! I'm hoping someone else has used this node in an "offline" setting, with no access to internet. In its …

---

## [How to create a node that defines a global variable](https://discourse.nodered.org/t/how-to-create-a-node-that-defines-a-global-variable/33240)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 2\
**Last updated:** [23 September 2020 18:15 UTC](https://discourse.nodered.org/t/how-to-create-a-node-that-defines-a-global-variable/33240 "2020-09-23T18:15:40Z")

</div>

Before going into the main function, I want to define the functions and variables common for the node-red application. I created a flow like below, but when start then the main function is executed 4 times \[{"id":"7f…

---

## [Tradfri / ZBbridge (zigbee) / Tasmota commands in Node-Red](https://discourse.nodered.org/t/tradfri-zbbridge-zigbee-tasmota-commands-in-node-red/32969)

<div class="topic-metadata">

**Author:** [@yogy](https://discourse.nodered.org/u/yogy)\
**Replies:** 6\
**Last updated:** [23 September 2020 17:42 UTC](https://discourse.nodered.org/t/tradfri-zbbridge-zigbee-tasmota-commands-in-node-red/32969 "2020-09-23T17:42:10Z")

</div>

Struggling to find the correct syntax for power on / off a tradfri lightbulb with a SonOff ZBbridge with Tasmota on it from Node-Red. I have lots of other switches witch I control from Node-red, but the ZBbridge in betw…

---

## [How do i - Three position slide switch in title bar?](https://discourse.nodered.org/t/how-do-i-three-position-slide-switch-in-title-bar/33237)

<div class="topic-metadata">

**Author:** [@Zodiac-69](https://discourse.nodered.org/u/Zodiac-69)\
**Replies:** 0\
**Last updated:** [23 September 2020 14:46 UTC](https://discourse.nodered.org/t/how-do-i-three-position-slide-switch-in-title-bar/33237 "2020-09-23T14:46:18Z")

</div>

Hi All This is a two part question. How do i do a three way slide switch - That can simulate a 3 postilion switch - Left-Middle-Right How do i place it on the title bar. I would like the "Selector" switch to be avail…

---

## [Define IP of a configuration node with a context variable](https://discourse.nodered.org/t/define-ip-of-a-configuration-node-with-a-context-variable/33225)

<div class="topic-metadata">

**Author:** [@densalzmann](https://discourse.nodered.org/u/densalzmann)\
**Replies:** 2\
**Last updated:** [23 September 2020 13:10 UTC](https://discourse.nodered.org/t/define-ip-of-a-configuration-node-with-a-context-variable/33225 "2020-09-23T13:10:08Z")

</div>

Hi! Are there some opportunities to define the IP address of a configuration node with a context variable? There are no errors when I'm trying it with flow.set(), flow.get(), but it doesn't work. I use version 5.13.3 o…

---

## [Create many database with a loop](https://discourse.nodered.org/t/create-many-database-with-a-loop/33215)

<div class="topic-metadata">

**Author:** [@kalpino](https://discourse.nodered.org/u/kalpino)\
**Replies:** 4\
**Last updated:** [23 September 2020 12:51 UTC](https://discourse.nodered.org/t/create-many-database-with-a-loop/33215 "2020-09-23T12:51:26Z")

</div>

Hello, I'm using sqlite node to create a database and fill it with data. During development I found out it would be handy to create more than one database with a loop. For example I would like to create 10 databases wi…

---

## [Serial woes.. buffer issue?](https://discourse.nodered.org/t/serial-woes-buffer-issue/33141)

<div class="topic-metadata">

**Author:** [@muggins](https://discourse.nodered.org/u/muggins)\
**Replies:** 26\
**Last updated:** [23 September 2020 12:26 UTC](https://discourse.nodered.org/t/serial-woes-buffer-issue/33141 "2020-09-23T12:26:40Z")

</div>

I use node-red serial to interpret string messages from my "intelligent" burglar alarm system. I have serial RX set to split input on character \\r and this works fine until I reboot the system. It then outputs nothing …

---

## [Calculate No days Remaining to pay the dues?](https://discourse.nodered.org/t/calculate-no-days-remaining-to-pay-the-dues/33208)

<div class="topic-metadata">

**Author:** [@ceaswaran](https://discourse.nodered.org/u/ceaswaran)\
**Replies:** 4\
**Last updated:** [23 September 2020 10:05 UTC](https://discourse.nodered.org/t/calculate-no-days-remaining-to-pay-the-dues/33208 "2020-09-23T10:05:37Z")

</div>

I have a sensor that pools the payment due date in the following format 12/10/20 (DD/MM/YY- 12th October 2020) from my government's Electricity board server. I want to create an output in Node-red which will find/calcu…

---

## [Send me notification if status still "reconnecting after "](https://discourse.nodered.org/t/send-me-notification-if-status-still-reconnecting-after/33180)

<div class="topic-metadata">

**Author:** [@hassengh](https://discourse.nodered.org/u/hassengh)\
**Replies:** 9\
**Last updated:** [23 September 2020 09:28 UTC](https://discourse.nodered.org/t/send-me-notification-if-status-still-reconnecting-after/33180 "2020-09-23T09:28:11Z")

</div>

Hello , how I can read communication status with device and it still more 1 minute the systeme send me notification " problem connect to devise".

---

## [Make a button link to another page HTML !?](https://discourse.nodered.org/t/make-a-button-link-to-another-page-html/880)

<div class="topic-metadata">

**Author:** [@imadouino](https://discourse.nodered.org/u/imadouino)\
**Replies:** 15\
**Last updated:** [2 July 2018 11:21 UTC](https://discourse.nodered.org/t/make-a-button-link-to-another-page-html/880 "2018-07-02T11:21:08Z")

</div>

Hi, i searsh to make a button link to another page HTML. it’s work with a link like (www.google.com) but i can’t do it with my link ( http://IP/ui/#/1), the link change in the case of the adresse of my navigator but it…

---

## [Reset modem through node red](https://discourse.nodered.org/t/reset-modem-through-node-red/32778)

<div class="topic-metadata">

**Author:** [@arcegabriel](https://discourse.nodered.org/u/arcegabriel)\
**Replies:** 31\
**Last updated:** [23 September 2020 04:32 UTC](https://discourse.nodered.org/t/reset-modem-through-node-red/32778 "2020-09-23T04:32:51Z")

</div>

I have a TP link TC7650 (cable internet). I noticed frequently all computers have bad latency and the solution is to restart the modem. What I would like to do with node red Regularly check connection latency. I know h…

---

## [Where to use let and where to use var in a function node?](https://discourse.nodered.org/t/where-to-use-let-and-where-to-use-var-in-a-function-node/33174)

<div class="topic-metadata">

**Author:** [@juntiedt](https://discourse.nodered.org/u/juntiedt)\
**Replies:** 9\
**Last updated:** [22 September 2020 23:17 UTC](https://discourse.nodered.org/t/where-to-use-let-and-where-to-use-var-in-a-function-node/33174 "2020-09-22T23:17:10Z")

</div>

when would you recommend to use the let versa the var statement ? What is the scope of a function node? Have a look at the code. If I replace all var with let I get an "already declared error" var nodes = flow.get("no…

---

## [Fun With Persistence?](https://discourse.nodered.org/t/fun-with-persistence/33189)

<div class="topic-metadata">

**Author:** [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Replies:** 9\
**Last updated:** [22 September 2020 19:51 UTC](https://discourse.nodered.org/t/fun-with-persistence/33189 "2020-09-22T19:51:41Z")

</div>

Two questions... Why is persistence not identified in some way in the context view? I created a flow variable, using default in memory defined in settings.js. I then created a flow variable, using 'persistent' as loc…

---

## [How to get the line number of a CSV file in function node](https://discourse.nodered.org/t/how-to-get-the-line-number-of-a-csv-file-in-function-node/33163)

<div class="topic-metadata">

**Author:** [@minhhn0205](https://discourse.nodered.org/u/minhhn0205)\
**Replies:** 7\
**Last updated:** [22 September 2020 19:00 UTC](https://discourse.nodered.org/t/how-to-get-the-line-number-of-a-csv-file-in-function-node/33163 "2020-09-22T19:00:38Z")

</div>

I would like to get the line number of a CSV file in function node. I tried to execute the code below in function node but couldn't get the count value. Do not know where the cause is? \[{"id":"61e780fd.ae573","type"…

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

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