# General

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

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

**Page:** 778

---

## [How to get MicroSeconds "μs" on node red flow?](https://discourse.nodered.org/t/how-to-get-microseconds-s-on-node-red-flow/23557)

<div class="topic-metadata">

**Author:** [@smithtek](https://discourse.nodered.org/u/smithtek)\
**Replies:** 3\
**Last updated:** [24 March 2020 12:47 UTC](https://discourse.nodered.org/t/how-to-get-microseconds-s-on-node-red-flow/23557 "2020-03-24T12:47:03Z")

</div>

HI. We are reading 3 precision sensors using a round robbin method each sensor read is 83.333ms apart then loops over and over again. We are doing this as no 2 sensors read at the same time due to cross interference. …

---

## [Change userdir of docker image](https://discourse.nodered.org/t/change-userdir-of-docker-image/23246)

<div class="topic-metadata">

**Author:** [@aderici](https://discourse.nodered.org/u/aderici)\
**Replies:** 5\
**Last updated:** [24 March 2020 11:13 UTC](https://discourse.nodered.org/t/change-userdir-of-docker-image/23246 "2020-03-24T11:13:39Z")

</div>

Hi, the docker images in the node red docker hub has a command built in that starts the node red with the user dir of /data . I would like to change that to make it /home what is the best way to achieve this? Can i some…

---

## [Node-red-contrib-heater-controller](https://discourse.nodered.org/t/node-red-contrib-heater-controller/23530)

<div class="topic-metadata">

**Author:** [@oddmn](https://discourse.nodered.org/u/oddmn)\
**Replies:** 1\
**Last updated:** [24 March 2020 01:23 UTC](https://discourse.nodered.org/t/node-red-contrib-heater-controller/23530 "2020-03-24T01:23:23Z")

</div>

Trying to set this up. But i dont understand how to get it to read temp from my sensor. I have a zwave temperature node. this flow was in heater controller. I think i have to do something with the input node called cur…

---

## [Searching in the array](https://discourse.nodered.org/t/searching-in-the-array/23547)

<div class="topic-metadata">

**Author:** [@micke007](https://discourse.nodered.org/u/micke007)\
**Replies:** 2\
**Last updated:** [24 March 2020 10:09 UTC](https://discourse.nodered.org/t/searching-in-the-array/23547 "2020-03-24T10:09:45Z")

</div>

Hello everyone, I've tried many times, without success to find out France with the corresponding values in this chart. Thank you very much for helping. \[{"id":"4e2a76f3.bed048","type":"tab","label":"Flow 12","disabled…

---

## [Hue Magic, Switch, TSS](https://discourse.nodered.org/t/hue-magic-switch-tss/23549)

<div class="topic-metadata">

**Author:** [@wolfhond](https://discourse.nodered.org/u/wolfhond)\
**Replies:** 1\
**Last updated:** [24 March 2020 09:20 UTC](https://discourse.nodered.org/t/hue-magic-switch-tss/23549 "2020-03-24T09:20:59Z")

</div>

hello I new. And I want that my google home say something when I push a button on my Hue Switch. I have found Hue Magic. And google home can speak. But I don't know how I can connect it to button of my Hue Switch. What …

---

## [Change default indent from 4 to 2 spaces in function nodes](https://discourse.nodered.org/t/change-default-indent-from-4-to-2-spaces-in-function-nodes/23523)

<div class="topic-metadata">

**Author:** [@nospam2k](https://discourse.nodered.org/u/nospam2k)\
**Replies:** 3\
**Last updated:** [24 March 2020 09:17 UTC](https://discourse.nodered.org/t/change-default-indent-from-4-to-2-spaces-in-function-nodes/23523 "2020-03-24T09:17:17Z")

</div>

I have been moving all my coding from 4 to 2 spaces on indents to save room on larger nests. Is it possible to change this in Node Red? Either by hacking or by setting doesn't matter as I can just reset as versions chang…

---

## [Problem with node-red-node-serialport. No debug message](https://discourse.nodered.org/t/problem-with-node-red-node-serialport-no-debug-message/23513)

<div class="topic-metadata">

**Author:** [@markost](https://discourse.nodered.org/u/markost)\
**Replies:** 0\
**Last updated:** [23 March 2020 16:02 UTC](https://discourse.nodered.org/t/problem-with-node-red-node-serialport-no-debug-message/23513 "2020-03-23T16:02:07Z")

</div>

I was working with a serialport node today and have a weird problem. The serial port is recognized in the editor and is connected. I have a serial to TTL converter with short circuit TX to RT pins. When I send a debu…

---

## [Split array in 2 or 3 arrays](https://discourse.nodered.org/t/split-array-in-2-or-3-arrays/23292)

<div class="topic-metadata">

**Author:** [@lalo](https://discourse.nodered.org/u/lalo)\
**Replies:** 9\
**Last updated:** [24 March 2020 05:55 UTC](https://discourse.nodered.org/t/split-array-in-2-or-3-arrays/23292 "2020-03-24T05:55:37Z")

</div>

Hi, i have been working on a dashboard with a table to copy paste values i will put a picture of the result payload when i do the paste of values is an array with 8 or more objects, and inside this objects there is 3 str…

---

## [How To Send Sync Pulse For Light Timer?](https://discourse.nodered.org/t/how-to-send-sync-pulse-for-light-timer/23335)

<div class="topic-metadata">

**Author:** [@Randy](https://discourse.nodered.org/u/Randy)\
**Replies:** 6\
**Last updated:** [23 March 2020 23:27 UTC](https://discourse.nodered.org/t/how-to-send-sync-pulse-for-light-timer/23335 "2020-03-23T23:27:56Z")

</div>

I have a simple flow using a RPi to control lights. It uses the rpi-gpio in and rpi-gpio out nodes with a time out trigger and toggle node in between. The flow works just fine. With each input, the relay will toggle on …

---

## [Enable or disable processing or flows](https://discourse.nodered.org/t/enable-or-disable-processing-or-flows/23379)

<div class="topic-metadata">

**Author:** [@makowski13](https://discourse.nodered.org/u/makowski13)\
**Replies:** 11\
**Last updated:** [23 March 2020 21:42 UTC](https://discourse.nodered.org/t/enable-or-disable-processing-or-flows/23379 "2020-03-23T21:42:57Z")

</div>

I am new to Node-RED and starting to create flows. I'm looking for a way to automatically disable processing or flows every 1st of the month or year. Then I want to manually enable them

---

## [Node for block between time](https://discourse.nodered.org/t/node-for-block-between-time/23531)

<div class="topic-metadata">

**Author:** [@corin.corvus](https://discourse.nodered.org/u/corin.corvus)\
**Replies:** 3\
**Last updated:** [23 March 2020 21:26 UTC](https://discourse.nodered.org/t/node-for-block-between-time/23531 "2020-03-23T21:26:58Z")

</div>

Hi, i motion sensors for my Lightsystem Hue. In the floor and Kitchen are motion sensors. They react and switch on and off the light. I use Switches for my Rooms too. The Flow disable the motion sensors by click "on, di…

---

## [Modbus Flex Write on port 502](https://discourse.nodered.org/t/modbus-flex-write-on-port-502/23533)

<div class="topic-metadata">

**Author:** [@rromele](https://discourse.nodered.org/u/rromele)\
**Replies:** 0\
**Last updated:** [23 March 2020 21:17 UTC](https://discourse.nodered.org/t/modbus-flex-write-on-port-502/23533 "2020-03-23T21:17:31Z")

</div>

Hi, I need to use the Modbus Flex Write node on port 502, with this setting, node-red crashes. Can anyone tell me if this is possible? Thank you

---

## [stateless button to change relay state in node-red](https://discourse.nodered.org/t/stateless-button-to-change-relay-state-in-node-red/23460)

<div class="topic-metadata">

**Author:** [@starikow](https://discourse.nodered.org/u/starikow)\
**Replies:** 3\
**Last updated:** [23 March 2020 20:58 UTC](https://discourse.nodered.org/t/stateless-button-to-change-relay-state-in-node-red/23460 "2020-03-23T20:58:35Z")

</div>

Hello! I just started learning node-red. please tell me a simple way to solve my problem. I have an input, a dry contact, a button is connected to it. by pressing the button I get state 1, I need to work on the relay c…

---

## [Reliable way for triggering flows from phone?](https://discourse.nodered.org/t/reliable-way-for-triggering-flows-from-phone/23159)

<div class="topic-metadata">

**Author:** [@yaplakal](https://discourse.nodered.org/u/yaplakal)\
**Replies:** 16\
**Last updated:** [23 March 2020 20:54 UTC](https://discourse.nodered.org/t/reliable-way-for-triggering-flows-from-phone/23159 "2020-03-23T20:54:34Z")

</div>

Hi everyone, I've been enjoying Node Red for a week or so now, experimenting and adding new functionality to my HA instance on a Pi. My instance is port forwarded and the port is exposed on a static link via DuckDNS. I …

---

## [More than one map on a dashboard](https://discourse.nodered.org/t/more-than-one-map-on-a-dashboard/23517)

<div class="topic-metadata">

**Author:** [@easyE4](https://discourse.nodered.org/u/easyE4)\
**Replies:** 2\
**Last updated:** [23 March 2020 18:48 UTC](https://discourse.nodered.org/t/more-than-one-map-on-a-dashboard/23517 "2020-03-23T18:48:20Z")

</div>

Hi everyone, I'm trying to create a dashbaord where you can see two maps with different regions. I try this with "worldmap" and I read in a post that this should be possible. Unfortunately I have not been able to implem…

---

## [Node-red-contrib-publishflows](https://discourse.nodered.org/t/node-red-contrib-publishflows/23521)

<div class="topic-metadata">

**Author:** [@josekavunkal](https://discourse.nodered.org/u/josekavunkal)\
**Replies:** 0\
**Last updated:** [23 March 2020 18:08 UTC](https://discourse.nodered.org/t/node-red-contrib-publishflows/23521 "2020-03-23T18:08:42Z")

</div>

I was looking for a feature to export a flow and import it in another environment. But if there are modules which are not installed in new environment it breaks. Tried node-red-contrib-publishflows ,but this generate…

---

## [Node-Red Modbus RTU](https://discourse.nodered.org/t/node-red-modbus-rtu/23453)

<div class="topic-metadata">

**Author:** [@kareemwaheed94](https://discourse.nodered.org/u/kareemwaheed94)\
**Replies:** 4\
**Last updated:** [23 March 2020 16:46 UTC](https://discourse.nodered.org/t/node-red-modbus-rtu/23453 "2020-03-23T16:46:24Z")

</div>

Hi, I have gateway with node-red installed and i need to make a flow that should send a HEX data frame to a sensor via RS485 this is the frame i should send to the sensor, and i should receive this is my first n…

---

## [Node-red and z-wave for dummies](https://discourse.nodered.org/t/node-red-and-z-wave-for-dummies/23418)

<div class="topic-metadata">

**Author:** [@Dom](https://discourse.nodered.org/u/Dom)\
**Replies:** 26\
**Last updated:** [23 March 2020 12:22 UTC](https://discourse.nodered.org/t/node-red-and-z-wave-for-dummies/23418 "2020-03-23T12:22:39Z")

</div>

Hi, thanks to Covid-19 (I'm a positive guy ;)), I have time to create my home assistant from scratch. Therefor, I baught some Rapsberrys PI4 4GO. For MQTT node-red Rfxcom z-wave Aeotec Gen5 For Home Assistant old…

---

## [Add ssh key in Git config is not working](https://discourse.nodered.org/t/add-ssh-key-in-git-config-is-not-working/20108)

<div class="topic-metadata">

**Author:** [@klaeger-a](https://discourse.nodered.org/u/klaeger-a)\
**Replies:** 7\
**Last updated:** [23 March 2020 16:22 UTC](https://discourse.nodered.org/t/add-ssh-key-in-git-config-is-not-working/20108 "2020-03-23T16:22:42Z")

</div>

Hello together, I hope somebody can help me? I have a problem with the configuration of a connection to Git. Nothing happens when I press the "Generate key" button. Git and ssh-Keygen is installed. Is there something …

---

## [Measure the Pulse duration of input Signal](https://discourse.nodered.org/t/measure-the-pulse-duration-of-input-signal/8894)

<div class="topic-metadata">

**Author:** [@drikos\_pag](https://discourse.nodered.org/u/drikos_pag)\
**Replies:** 13\
**Last updated:** [13 March 2019 15:27 UTC](https://discourse.nodered.org/t/measure-the-pulse-duration-of-input-signal/8894 "2019-03-13T15:27:20Z")

</div>

Hello to Everybody, I'm new in the Rode red community . My setup is a raspberry pi 3 B+ with the automation hat shield. Im trying to find a way to measure the pulse duration of an input signal. I would like to know h…

---

## [Air purifier 3 -read data](https://discourse.nodered.org/t/air-purifier-3-read-data/23509)

<div class="topic-metadata">

**Author:** [@Miko7](https://discourse.nodered.org/u/Miko7)\
**Replies:** 3\
**Last updated:** [23 March 2020 14:46 UTC](https://discourse.nodered.org/t/air-purifier-3-read-data/23509 "2020-03-23T14:46:28Z")

</div>

I have an air purifier 3. I am now connected to the unit (I found the token). I control the device (ON, OFF ...). I do not know how to set the data reading from the device. (air quality, temperature, humidity)

---

## [Sqlite dynamic number of parameters](https://discourse.nodered.org/t/sqlite-dynamic-number-of-parameters/23506)

<div class="topic-metadata">

**Author:** [@tukru](https://discourse.nodered.org/u/tukru)\
**Replies:** 4\
**Last updated:** [23 March 2020 13:11 UTC](https://discourse.nodered.org/t/sqlite-dynamic-number-of-parameters/23506 "2020-03-23T13:11:58Z")

</div>

Hi all, I need to pass a dynamic number of parameters to a query. For example: SELECT \* FROM test WHERE text\_field = "test" OR number\_field = "500" OR text\_field = "value" I know I can do it using msg.topic but I want…

---

## [Mssql node-red raspberry pi](https://discourse.nodered.org/t/mssql-node-red-raspberry-pi/23503)

<div class="topic-metadata">

**Author:** [@sahebdatta](https://discourse.nodered.org/u/sahebdatta)\
**Replies:** 8\
**Last updated:** [23 March 2020 12:26 UTC](https://discourse.nodered.org/t/mssql-node-red-raspberry-pi/23503 "2020-03-23T12:26:49Z")

</div>

Hello everyone, I am trying to send data from raspberry pi to MSSQL database running on my PC using node-red. The Raspberry Pi and PC are connected to the same network. Whenever I try to connect to the database, it show…

---

## [MQTT - what used to work now doesn't. Or so it seems. Structure of messages](https://discourse.nodered.org/t/mqtt-what-used-to-work-now-doesnt-or-so-it-seems-structure-of-messages/23488)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 9\
**Last updated:** [23 March 2020 11:46 UTC](https://discourse.nodered.org/t/mqtt-what-used-to-work-now-doesnt-or-so-it-seems-structure-of-messages/23488 "2020-03-23T11:46:16Z")

</div>

I have been through a painful journey with MQTT and sending messages. If I want to send a message with multiple parts, they aren't sent over MQTT as is. What I need to do is move them all into msg.payload. At the othe…

---

## [Http response node msg.res and msg.req](https://discourse.nodered.org/t/http-response-node-msg-res-and-msg-req/23498)

<div class="topic-metadata">

**Author:** [@msupra](https://discourse.nodered.org/u/msupra)\
**Replies:** 13\
**Last updated:** [23 March 2020 11:40 UTC](https://discourse.nodered.org/t/http-response-node-msg-res-and-msg-req/23498 "2020-03-23T11:40:44Z")

</div>

Hi all I have a project with multiple flows. I have a http in node on flow one and then I need to do some work on another flow and then only when the work is done, do I respond with the http response node. So, if I res…

---

## [Convert decimal to char](https://discourse.nodered.org/t/convert-decimal-to-char/23496)

<div class="topic-metadata">

**Author:** [@tarahi](https://discourse.nodered.org/u/tarahi)\
**Replies:** 5\
**Last updated:** [23 March 2020 11:18 UTC](https://discourse.nodered.org/t/convert-decimal-to-char/23496 "2020-03-23T11:18:36Z")

</div>

Hi my friends, In part of my flow, I faced an output in decimal format like this : \[{"id":"7c5d1a66.b99a74","type":"tab","label":"Flow 9","disabled":false,"info":""},{"id":"74bc4c7d.bac1e4","type":"debug","z":"7c5d1a…

---

## [Missing ENV var CONFIG\_PATH](https://discourse.nodered.org/t/missing-env-var-config-path/23484)

<div class="topic-metadata">

**Author:** [@Rongshen](https://discourse.nodered.org/u/Rongshen)\
**Replies:** 1\
**Last updated:** [23 March 2020 11:14 UTC](https://discourse.nodered.org/t/missing-env-var-config-path/23484 "2020-03-23T11:14:37Z")

</div>

How to solve this problem?

---

## [Cmd Node-Red auto shutdown](https://discourse.nodered.org/t/cmd-node-red-auto-shutdown/23485)

<div class="topic-metadata">

**Author:** [@Rongshen](https://discourse.nodered.org/u/Rongshen)\
**Replies:** 1\
**Last updated:** [23 March 2020 11:10 UTC](https://discourse.nodered.org/t/cmd-node-red-auto-shutdown/23485 "2020-03-23T11:10:56Z")

</div>

C:\\Windows\\system32\>node-red 23 Mar 20:29:32 - \[info\] Welcome to Node-RED 23 Mar 20:29:32 - \[info\] Node-RED version: v1.0.4 23 Mar 20:29:32 - \[info\] Node.js version: v13.11.0 23 Mar 20:29:32 - \[info\] Windows\_NT 10.0…

---

## [Node-Red on Raspberry pi and Team-viewer-IoT](https://discourse.nodered.org/t/node-red-on-raspberry-pi-and-team-viewer-iot/23400)

<div class="topic-metadata">

**Author:** [@MainulMahin](https://discourse.nodered.org/u/MainulMahin)\
**Replies:** 6\
**Last updated:** [23 March 2020 09:27 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi-and-team-viewer-iot/23400 "2020-03-23T09:27:53Z")

</div>

Hello Everyone, I am trying to push the value from my sensors to Teamviewer-IoT by using MQTT node, as soon as I start the privet key which provided from Teamviewer, then the Raspberry pi goes hang. It does not work any…

---

## [Search in TXT log file for a piece of text](https://discourse.nodered.org/t/search-in-txt-log-file-for-a-piece-of-text/23248)

<div class="topic-metadata">

**Author:** [@rogier](https://discourse.nodered.org/u/rogier)\
**Replies:** 6\
**Last updated:** [23 March 2020 09:23 UTC](https://discourse.nodered.org/t/search-in-txt-log-file-for-a-piece-of-text/23248 "2020-03-23T09:23:20Z")

</div>

I have a .txt logfile and want to search in the file for a piece of text. If the text is in the file i like a true output and not a false output i found and tried this flow but always displays false... does anyone kno…

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

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