# General

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

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

**Page:** 867

---

## [\[solved\] Intermittent behavior of Telegram bot](https://discourse.nodered.org/t/solved-intermittent-behavior-of-telegram-bot/13367)

<div class="topic-metadata">

**Author:** [@GerardWassink](https://discourse.nodered.org/u/GerardWassink)\
**Replies:** 8\
**Last updated:** [17 July 2019 06:35 UTC](https://discourse.nodered.org/t/solved-intermittent-behavior-of-telegram-bot/13367 "2019-07-17T06:35:45Z")

</div>

Good afternoon guys, I'm using node-red-contrib-telegrambot version 4.4.2 and overall it performs well, albeit that It does not reacts reliably. I use it to ask for status information. It has a few 'commands': /Start …

---

## [Flow branching - Execution Sequence](https://discourse.nodered.org/t/flow-branching-execution-sequence/13286)

<div class="topic-metadata">

**Author:** [@Sineos](https://discourse.nodered.org/u/Sineos)\
**Replies:** 4\
**Last updated:** [16 July 2019 20:53 UTC](https://discourse.nodered.org/t/flow-branching-execution-sequence/13286 "2019-07-16T20:53:43Z")

</div>

I have a flow that branches at a certain point. From reading in various sources, I have understood that the sequence of execution is somewhat depending on two factors: Asynchronous event loop of node.js Sequence of ho…

---

## [Function If Node get not triggert | "21:30" =="21:30" | msg.mytime == msg.payload.topic1](https://discourse.nodered.org/t/function-if-node-get-not-triggert-21-30-21-30-msg-mytime-msg-payload-topic1/13379)

<div class="topic-metadata">

**Author:** [@Kiwi\_gamer01](https://discourse.nodered.org/u/Kiwi_gamer01)\
**Replies:** 1\
**Last updated:** [16 July 2019 20:24 UTC](https://discourse.nodered.org/t/function-if-node-get-not-triggert-21-30-21-30-msg-mytime-msg-payload-topic1/13379 "2019-07-16T20:24:02Z")

</div>

Why get the function node not triggerd? Here is the Flow: \[{"id":"d64b87be.5f7ca8","type":"function","z":"a7004483.d00c88","name":"am pm","func":"if (msg.mytime == msg.payload.topic1) {\\n msg.payload = \\"Good morn…

---

## [Node-red@1.0.0-beta.2 can't access](https://discourse.nodered.org/t/node-red-1-0-0-beta-2-cant-access/13370)

<div class="topic-metadata">

**Author:** [@sofiir](https://discourse.nodered.org/u/sofiir)\
**Replies:** 10\
**Last updated:** [16 July 2019 19:50 UTC](https://discourse.nodered.org/t/node-red-1-0-0-beta-2-cant-access/13370 "2019-07-16T19:50:08Z")

</div>

:frowning\_face::frowning\_face: updated 1 package in 9.515s root@nour:~# node-red bash: /usr/local/bin/node-red: No such file or directory root@nour:~#

---

## [\[SOLVED\] Form to mysql error](https://discourse.nodered.org/t/solved-form-to-mysql-error/13329)

<div class="topic-metadata">

**Author:** [@GitHubAndDance](https://discourse.nodered.org/u/GitHubAndDance)\
**Replies:** 6\
**Last updated:** [16 July 2019 18:45 UTC](https://discourse.nodered.org/t/solved-form-to-mysql-error/13329 "2019-07-16T18:45:00Z")

</div>

Hi, New to node-red and have been fighting with this for a while now and I seem to be quite stuck... Using mariaDB with SQL node. Sending data from form to database The fist part is working fine This is my whole func…

---

## [Sensors to function. function to switch](https://discourse.nodered.org/t/sensors-to-function-function-to-switch/13351)

<div class="topic-metadata">

**Author:** [@alijahangir](https://discourse.nodered.org/u/alijahangir)\
**Replies:** 5\
**Last updated:** [16 July 2019 12:19 UTC](https://discourse.nodered.org/t/sensors-to-function-function-to-switch/13351 "2019-07-16T12:19:56Z")

</div>

i m retrieving temperature value from dht22 to a function node in msg.payload. how to turn something On or Off based on temperature value? help would be much appriciated.

---

## [How to split the payload? temp and pressure values from JSON string (from aws)](https://discourse.nodered.org/t/how-to-split-the-payload-temp-and-pressure-values-from-json-string-from-aws/13324)

<div class="topic-metadata">

**Author:** [@RhinePT](https://discourse.nodered.org/u/RhinePT)\
**Replies:** 7\
**Last updated:** [16 July 2019 16:39 UTC](https://discourse.nodered.org/t/how-to-split-the-payload-temp-and-pressure-values-from-json-string-from-aws/13324 "2019-07-16T16:39:45Z")

</div>

Hey everybody I get that message on the debug: What I really want is to know how to split the values of temp and pressure. Is needed a function? If yes, what's the code? I've read user-guide/messages link but didnt …

---

## [How to send commands at specific times](https://discourse.nodered.org/t/how-to-send-commands-at-specific-times/13360)

<div class="topic-metadata">

**Author:** [@Kiwi\_gamer01](https://discourse.nodered.org/u/Kiwi_gamer01)\
**Replies:** 1\
**Last updated:** [16 July 2019 15:17 UTC](https://discourse.nodered.org/t/how-to-send-commands-at-specific-times/13360 "2019-07-16T15:17:30Z")

</div>

How can I run a command at a specific time, which was previously selected in a dropdown item?

---

## [Global get/set variables not working](https://discourse.nodered.org/t/global-get-set-variables-not-working/13321)

<div class="topic-metadata">

**Author:** [@pautorras](https://discourse.nodered.org/u/pautorras)\
**Replies:** 5\
**Last updated:** [16 July 2019 13:20 UTC](https://discourse.nodered.org/t/global-get-set-variables-not-working/13321 "2019-07-16T13:20:21Z")

</div>

Hi, I'm having troubles to set and get global variables. In the first flow some ModbusRTU variables are read (buffered), all ok. Some of those var I want to set it global to read it (get) in the second flow. There is …

---

## [Change Theme as scheduled](https://discourse.nodered.org/t/change-theme-as-scheduled/13314)

<div class="topic-metadata">

**Author:** [@Leroxy](https://discourse.nodered.org/u/Leroxy)\
**Replies:** 8\
**Last updated:** [16 July 2019 13:01 UTC](https://discourse.nodered.org/t/change-theme-as-scheduled/13314 "2019-07-16T13:01:20Z")

</div>

I created a nice dashboard and showing it 24/7 on a old tablet. However during the evening night when their is less ambient light the dashboard is to bright. I know I can change the Style in side node-red admin dashboa…

---

## [Snowboy on Node-Red on Raspberry Pi](https://discourse.nodered.org/t/snowboy-on-node-red-on-raspberry-pi/13341)

<div class="topic-metadata">

**Author:** [@Cecilia](https://discourse.nodered.org/u/Cecilia)\
**Replies:** 1\
**Last updated:** [16 July 2019 09:41 UTC](https://discourse.nodered.org/t/snowboy-on-node-red-on-raspberry-pi/13341 "2019-07-16T09:41:18Z")

</div>

Hi everyone, I'm French Student who have to work on Node-Red to create an Human-Machine Interface. So I wanted to try Snowboy on Node-red but I can't because I can't install properly node-red-contrib-snowboy. I tried to…

---

## [Confirmation about updated version](https://discourse.nodered.org/t/confirmation-about-updated-version/13331)

<div class="topic-metadata">

**Author:** [@SwastiBrt](https://discourse.nodered.org/u/SwastiBrt)\
**Replies:** 1\
**Last updated:** [16 July 2019 06:27 UTC](https://discourse.nodered.org/t/confirmation-about-updated-version/13331 "2019-07-16T06:27:10Z")

</div>

It is just for confirmation about the newly updated version of Node-red on IBM cloud. Recently the node red is automatically updated to new version globally. It shows newer version as 0.20.7 in Sydney, but it does not o…

---

## [My first 2 disasterous evenings with Node-RED](https://discourse.nodered.org/t/my-first-2-disasterous-evenings-with-node-red/12929)

<div class="topic-metadata">

**Author:** [@Matt](https://discourse.nodered.org/u/Matt)\
**Replies:** 30\
**Last updated:** [16 July 2019 02:19 UTC](https://discourse.nodered.org/t/my-first-2-disasterous-evenings-with-node-red/12929 "2019-07-16T02:19:16Z")

</div>

Hello all, This is my first post and second day using Node-RED. Yesterday, after a few hours I had a dashboard with a couple of guages displaying the data of a couple of Arduino MODBUS servers. The Modbus client is an …

---

## [Programmatically generate flows?](https://discourse.nodered.org/t/programmatically-generate-flows/1564)

<div class="topic-metadata">

**Author:** [@carrollj](https://discourse.nodered.org/u/carrollj)\
**Replies:** 3\
**Last updated:** [15 July 2019 22:28 UTC](https://discourse.nodered.org/t/programmatically-generate-flows/1564 "2019-07-15T22:28:30Z")

</div>

Is there anyway to programmatically generate nodes/flows outside of creating a large JSON blob via the APIs exposed in the node-red npm package? For instance, could I programmatically create a flow then add nodes to it s…

---

## [Inject node triggers automatically when MQTT device connects. Is this normal and expected behavior](https://discourse.nodered.org/t/inject-node-triggers-automatically-when-mqtt-device-connects-is-this-normal-and-expected-behavior/13320)

<div class="topic-metadata">

**Author:** [@MattCohen](https://discourse.nodered.org/u/MattCohen)\
**Replies:** 1\
**Last updated:** [15 July 2019 20:56 UTC](https://discourse.nodered.org/t/inject-node-triggers-automatically-when-mqtt-device-connects-is-this-normal-and-expected-behavior/13320 "2019-07-15T20:56:24Z")

</div>

Hi, I was pulling my hair out with a small ESP32 device that seemed to be occasionally entering a state unexpectedly. After several hours of debugging I found that as the device came online it received several messages …

---

## [Time problem with a group of messages](https://discourse.nodered.org/t/time-problem-with-a-group-of-messages/13065)

<div class="topic-metadata">

**Author:** [@eng56](https://discourse.nodered.org/u/eng56)\
**Replies:** 12\
**Last updated:** [15 July 2019 19:27 UTC](https://discourse.nodered.org/t/time-problem-with-a-group-of-messages/13065 "2019-07-15T19:27:48Z")

</div>

Hello, I'm requesting your help, my sensor send me actually a packet of 3 messages in 1 message with 3 measurements, 1 every X minutes. My payload contains the time beetween 2 measurements. I know that I can split it i…

---

## [If Function ((with two Inputs))?](https://discourse.nodered.org/t/if-function-with-two-inputs/13305)

<div class="topic-metadata">

**Author:** [@Kiwi\_gamer01](https://discourse.nodered.org/u/Kiwi_gamer01)\
**Replies:** 2\
**Last updated:** [15 July 2019 16:15 UTC](https://discourse.nodered.org/t/if-function-with-two-inputs/13305 "2019-07-15T16:15:11Z")

</div>

Is there an if function that takes and compares a value of a slider and a lux sensor. This means that if the lux value is greater than the value of the slider, a value of 1 should be sent

---

## [How do I get two different numbers into a function node?](https://discourse.nodered.org/t/how-do-i-get-two-different-numbers-into-a-function-node/13312)

<div class="topic-metadata">

**Author:** [@Kiwi\_gamer01](https://discourse.nodered.org/u/Kiwi_gamer01)\
**Replies:** 1\
**Last updated:** [15 July 2019 15:59 UTC](https://discourse.nodered.org/t/how-do-i-get-two-different-numbers-into-a-function-node/13312 "2019-07-15T15:59:50Z")

</div>

How do I get two different numbers into a functionnode, which are converted into a variable in the functionnode

---

## [Function to write Netatmo measurement in Influx DB](https://discourse.nodered.org/t/function-to-write-netatmo-measurement-in-influx-db/13265)

<div class="topic-metadata">

**Author:** [@HaVi](https://discourse.nodered.org/u/HaVi)\
**Replies:** 15\
**Last updated:** [15 July 2019 15:44 UTC](https://discourse.nodered.org/t/function-to-write-netatmo-measurement-in-influx-db/13265 "2019-07-15T15:44:31Z")

</div>

Hi, The Netatmo "Get Measurements" node reads the days minimum termperature from my Netatmo outdoor module and when I fill in msg.payload.devices\[0\].modules\[2\].dashboard\_data.min\_temp in the debugger the correct measu…

---

## [Node-Red mit TSL2561 Sensor verknüpfen | German](https://discourse.nodered.org/t/node-red-mit-tsl2561-sensor-verknupfen-german/13261)

<div class="topic-metadata">

**Author:** [@Kiwi\_gamer01](https://discourse.nodered.org/u/Kiwi_gamer01)\
**Replies:** 3\
**Last updated:** [15 July 2019 13:37 UTC](https://discourse.nodered.org/t/node-red-mit-tsl2561-sensor-verknupfen-german/13261 "2019-07-15T13:37:55Z")

</div>

Ich würde gerne wissen wie ich die Daten (SDA/SCL) mit Node-red auslesen kann. Das normale Python Skript sieht so aus. \`import smbus import time Get I2C bus bus = smbus.SMBus(1) bus.write\_byte\_data(0x39, 0x00 | 0x80…

---

## [How to pass certificate path from function to http node](https://discourse.nodered.org/t/how-to-pass-certificate-path-from-function-to-http-node/13303)

<div class="topic-metadata">

**Author:** [@kiran007](https://discourse.nodered.org/u/kiran007)\
**Replies:** 0\
**Last updated:** [15 July 2019 13:37 UTC](https://discourse.nodered.org/t/how-to-pass-certificate-path-from-function-to-http-node/13303 "2019-07-15T13:37:21Z")

</div>

i want to define certificate path from function to http node how to define same ?(my function node output is connected to http node) for example if i want to pass header to http node from javascript function node then i…

---

## [Node-red-contrib-arangodb error](https://discourse.nodered.org/t/node-red-contrib-arangodb-error/13228)

<div class="topic-metadata">

**Author:** [@Monta](https://discourse.nodered.org/u/Monta)\
**Replies:** 7\
**Last updated:** [15 July 2019 12:42 UTC](https://discourse.nodered.org/t/node-red-contrib-arangodb-error/13228 "2019-07-15T12:42:38Z")

</div>

I am using node-red-contrib-arangodb. I have configured my database like this: http://username:password@http://127.0.0.1:8529/\_db/myDB/ when I deploy I get this error Error: getaddrinfo ENOTFOUND http

---

## [Inject to googlechart](https://discourse.nodered.org/t/inject-to-googlechart/13300)

<div class="topic-metadata">

**Author:** [@Misiek](https://discourse.nodered.org/u/Misiek)\
**Replies:** 0\
**Last updated:** [15 July 2019 12:27 UTC](https://discourse.nodered.org/t/inject-to-googlechart/13300 "2019-07-15T12:27:27Z")

</div>

HI How inject data to googlechart (template in javascript) googlechart example https://developers.google.com/chart/interactive/docs/gallery/timeline Regards Misiek

---

## [Is Node red able to control any software under windows?](https://discourse.nodered.org/t/is-node-red-able-to-control-any-software-under-windows/13231)

<div class="topic-metadata">

**Author:** [@Lioneldavid](https://discourse.nodered.org/u/Lioneldavid)\
**Replies:** 9\
**Last updated:** [15 July 2019 09:47 UTC](https://discourse.nodered.org/t/is-node-red-able-to-control-any-software-under-windows/13231 "2019-07-15T09:47:52Z")

</div>

Hi, i'm new to node red, is it possible to control any windows application? I have to write nodes in JS? Would python work? The app is called Unreal Engine from Epic game. The idea would be to define some voice control …

---

## [(Solved) Getting data from a large dynamic xml](https://discourse.nodered.org/t/solved-getting-data-from-a-large-dynamic-xml/13251)

<div class="topic-metadata">

**Author:** [@solano8](https://discourse.nodered.org/u/solano8)\
**Replies:** 15\
**Last updated:** [15 July 2019 08:11 UTC](https://discourse.nodered.org/t/solved-getting-data-from-a-large-dynamic-xml/13251 "2019-07-15T08:11:41Z")

</div>

I have used Node Red for some time now on my RPi and I am very happy with it! Now I have given myself a new challenge: To grab some specific data from a xml-file in Node Red. I have a very large xml-file (60K+ lines) c…

---

## [System Complete Authentication](https://discourse.nodered.org/t/system-complete-authentication/13281)

<div class="topic-metadata">

**Author:** [@rwiest](https://discourse.nodered.org/u/rwiest)\
**Replies:** 0\
**Last updated:** [14 July 2019 22:25 UTC](https://discourse.nodered.org/t/system-complete-authentication/13281 "2019-07-14T22:25:26Z")

</div>

Hi, I'm trying to implement an application. However, I would like to create a login page only with the login form. After authenticating the user would be redirected to another set of pages where they would be available i…

---

## [Contrib-node creation - dynamic form in node config](https://discourse.nodered.org/t/contrib-node-creation-dynamic-form-in-node-config/13276)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 7\
**Last updated:** [14 July 2019 22:17 UTC](https://discourse.nodered.org/t/contrib-node-creation-dynamic-form-in-node-config/13276 "2019-07-14T22:17:08Z")

</div>

I'm trying to develop a contrib node where the node config dropdown values change according to the first dropdown value. A quick example: In dropdown No1, there is Audi BMW & Mercedes. If I select BMW, then dropdown …

---

## [Last month day to write total energy month on DB](https://discourse.nodered.org/t/last-month-day-to-write-total-energy-month-on-db/13264)

<div class="topic-metadata">

**Author:** [@pautorras](https://discourse.nodered.org/u/pautorras)\
**Replies:** 2\
**Last updated:** [14 July 2019 15:26 UTC](https://discourse.nodered.org/t/last-month-day-to-write-total-energy-month-on-db/13264 "2019-07-14T15:26:19Z")

</div>

Hi, I'm doing a node red program to report stats in dashboard on photovoltaic installation. I'm using a RPI and I'm working with SQLite DB. Every last day of month, I want to write in a SQLite table the enery consumpt…

---

## [Async function - getting error: TypeError: is not a constructor](https://discourse.nodered.org/t/async-function-getting-error-typeerror-is-not-a-constructor/13259)

<div class="topic-metadata">

**Author:** [@ernestgwilsonii](https://discourse.nodered.org/u/ernestgwilsonii)\
**Replies:** 13\
**Last updated:** [14 July 2019 15:02 UTC](https://discourse.nodered.org/t/async-function-getting-error-typeerror-is-not-a-constructor/13259 "2019-07-14T15:02:43Z")

</div>

Can we use "async function" in Node-RED? This works at the command line: node myAsyncFunctionTest.js const Slack = require('slack'); // https://www.npmjs.com/package/slack let token = "blahblah-redacted"; let localDeb…

---

## [Have I broken node red?](https://discourse.nodered.org/t/have-i-broken-node-red/13262)

<div class="topic-metadata">

**Author:** [@Matt](https://discourse.nodered.org/u/Matt)\
**Replies:** 4\
**Last updated:** [14 July 2019 13:33 UTC](https://discourse.nodered.org/t/have-i-broken-node-red/13262 "2019-07-14T13:33:17Z")

</div>

i can no longer access my node red after deploying a modbus server node, now i have a problem. how do i go back? All was working fine, in the console i now have: Welcome to Node-RED 14 Jul 13:15:27 - \[info\] Node-RED v…

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

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