# General

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

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

**Page:** 826

---

## [Problems with A / D converter 3008 and Node-Red](https://discourse.nodered.org/t/problems-with-a-d-converter-3008-and-node-red/18112)

<div class="topic-metadata">

**Author:** [@seppel1078](https://discourse.nodered.org/u/seppel1078)\
**Replies:** 1\
**Last updated:** [18 November 2019 22:31 UTC](https://discourse.nodered.org/t/problems-with-a-d-converter-3008-and-node-red/18112 "2019-11-18T22:31:44Z")

</div>

Hi, I would like to read the values of my MCP3008 via Node-Red. By Python script I get to the values so everything is already connected and configured correctly. I installed Node-Red as an instance of IOBroker This no…

---

## [Loop Function for JSON table](https://discourse.nodered.org/t/loop-function-for-json-table/18116)

<div class="topic-metadata">

**Author:** [@forrest.gates](https://discourse.nodered.org/u/forrest.gates)\
**Replies:** 1\
**Last updated:** [18 November 2019 22:05 UTC](https://discourse.nodered.org/t/loop-function-for-json-table/18116 "2019-11-18T22:05:55Z")

</div>

Hi there, I am a newer user of node-red, and I'm attempting to use a function that will read directly from a JSON table and spit out all the values in order so that it can be read in a line chart. However when i try to …

---

## [Amazon S3 in node watch frequency](https://discourse.nodered.org/t/amazon-s3-in-node-watch-frequency/18120)

<div class="topic-metadata">

**Author:** [@toka](https://discourse.nodered.org/u/toka)\
**Replies:** 0\
**Last updated:** [18 November 2019 21:09 UTC](https://discourse.nodered.org/t/amazon-s3-in-node-watch-frequency/18120 "2019-11-18T21:09:36Z")

</div>

Hi I'm using the "amazon S3 in" node (from node-red-node-aws module) to watch file events in my S3 bucket. As a start, I passed the output of the "amazon S3 in" node into a debug node. In general this works. At first …

---

## [How to decipher Snips MQTT information](https://discourse.nodered.org/t/how-to-decipher-snips-mqtt-information/18052)

<div class="topic-metadata">

**Author:** [@rlongfield](https://discourse.nodered.org/u/rlongfield)\
**Replies:** 11\
**Last updated:** [18 November 2019 19:21 UTC](https://discourse.nodered.org/t/how-to-decipher-snips-mqtt-information/18052 "2019-11-18T19:21:45Z")

</div>

I am trying to use some MQTT data from Snips but I'm new to Node-Red and I'm stumbling a bit while I begin to understand the bits of Node-Red. I have this data from Snips on MQTT that I'd like to use. Message 10 receiv…

---

## [Castv2-sender node](https://discourse.nodered.org/t/castv2-sender-node/18085)

<div class="topic-metadata">

**Author:** [@rlongfield](https://discourse.nodered.org/u/rlongfield)\
**Replies:** 5\
**Last updated:** [18 November 2019 16:36 UTC](https://discourse.nodered.org/t/castv2-sender-node/18085 "2019-11-18T16:36:41Z")

</div>

I am using castv2-sender node and it's working well to play a web stream, and controlling the volume. Unfortunately I can't get the Stop and Pause to work. After reading the doc I thought the payload would look somethi…

---

## [MQTT subscription help](https://discourse.nodered.org/t/mqtt-subscription-help/18001)

<div class="topic-metadata">

**Author:** [@maru](https://discourse.nodered.org/u/maru)\
**Replies:** 7\
**Last updated:** [18 November 2019 16:12 UTC](https://discourse.nodered.org/t/mqtt-subscription-help/18001 "2019-11-18T16:12:33Z")

</div>

Hi, Can someone help me with this code? I'd like to trigger a Led when the value of the payload is \> 1000. #include \<ESP8266WiFi.h\> #include \<PubSubClient.h\> // Update these with values suitable for your network. con…

---

## [Need math or change](https://discourse.nodered.org/t/need-math-or-change/18096)

<div class="topic-metadata">

**Author:** [@ibottobi](https://discourse.nodered.org/u/ibottobi)\
**Replies:** 10\
**Last updated:** [18 November 2019 16:08 UTC](https://discourse.nodered.org/t/need-math-or-change/18096 "2019-11-18T16:08:50Z")

</div>

Hello, I have a msg.payload with something like 130.33 e-42 and I want to have the decimal result 312.27, or rounded 312 back. Do I have to use math for this? Thanks in advance. Tobias

---

## [Exploring NR Editor source code - wrt new ideas](https://discourse.nodered.org/t/exploring-nr-editor-source-code-wrt-new-ideas/18100)

<div class="topic-metadata">

**Author:** [@tony-shannon](https://discourse.nodered.org/u/tony-shannon)\
**Replies:** 4\
**Last updated:** [18 November 2019 15:00 UTC](https://discourse.nodered.org/t/exploring-nr-editor-source-code-wrt-new-ideas/18100 "2019-11-18T15:00:55Z")

</div>

Hi I'm exploring some of the key aspects of NodeRed editor and wondering how they can be edited/customised +/- /improved.. For instance this panel here in the Change Node -- for JSONata expressions I would like to b…

---

## [Reset counter - help](https://discourse.nodered.org/t/reset-counter-help/17893)

<div class="topic-metadata">

**Author:** [@Ki-va](https://discourse.nodered.org/u/Ki-va)\
**Replies:** 4\
**Last updated:** [18 November 2019 13:18 UTC](https://discourse.nodered.org/t/reset-counter-help/17893 "2019-11-18T13:18:03Z")

</div>

I wrote a simple counter, \[{"id":"ee88e75c.aa2b98","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"152e6284.dd693d","type":"inject","z":"ee88e75c.aa2b98","name":"","topic":"","payload":"","payloadType":…

---

## [Change node only returning first object](https://discourse.nodered.org/t/change-node-only-returning-first-object/18057)

<div class="topic-metadata">

**Author:** [@martentornquist](https://discourse.nodered.org/u/martentornquist)\
**Replies:** 5\
**Last updated:** [18 November 2019 09:31 UTC](https://discourse.nodered.org/t/change-node-only-returning-first-object/18057 "2019-11-18T09:31:41Z")

</div>

I am having big problem with the change node and JSONata this morning (first time I use it). I get the JSONata expression to work just fine if I run it in the debug node or using the test in the change node. But whatever…

---

## [Multiple output Function nodes with multiple messages](https://discourse.nodered.org/t/multiple-output-function-nodes-with-multiple-messages/11536)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 18\
**Last updated:** [18 November 2019 06:51 UTC](https://discourse.nodered.org/t/multiple-output-function-nodes-with-multiple-messages/11536 "2019-11-18T06:51:54Z")

</div>

(And the fool continues to bash his head against the wall) I've read this link (from search) Writing functions and it is interesting. I can sort of make it work, but when I try to apply it to the real flow, it doesn'…

---

## [I2C nodes with arduino](https://discourse.nodered.org/t/i2c-nodes-with-arduino/18064)

<div class="topic-metadata">

**Author:** [@caspera](https://discourse.nodered.org/u/caspera)\
**Replies:** 1\
**Last updated:** [18 November 2019 04:02 UTC](https://discourse.nodered.org/t/i2c-nodes-with-arduino/18064 "2019-11-18T04:02:40Z")

</div>

Hello everyone, I am a last year student in ICT and i need to make a big project together with a friend of me so we wanted to try to make a smarthome without a premade OS system(It's scaled and only with 5V electronics)…

---

## [Connect the mqtt subscriber node with an android application](https://discourse.nodered.org/t/connect-the-mqtt-subscriber-node-with-an-android-application/17866)

<div class="topic-metadata">

**Author:** [@khalil](https://discourse.nodered.org/u/khalil)\
**Replies:** 3\
**Last updated:** [18 November 2019 03:32 UTC](https://discourse.nodered.org/t/connect-the-mqtt-subscriber-node-with-an-android-application/17866 "2019-11-18T03:32:18Z")

</div>

Hi guys. i am trying to make an android application that can publish messages to node red trough the mqtt subscriber node but i dont know what is the code of the application that can help me do that. can anybody help me …

---

## [Stjohnjohnson smartthings mqtt bridge](https://discourse.nodered.org/t/stjohnjohnson-smartthings-mqtt-bridge/17609)

<div class="topic-metadata">

**Author:** [@M-a-r-k](https://discourse.nodered.org/u/M-a-r-k)\
**Replies:** 5\
**Last updated:** [18 November 2019 00:03 UTC](https://discourse.nodered.org/t/stjohnjohnson-smartthings-mqtt-bridge/17609 "2019-11-18T00:03:58Z")

</div>

Has anyone used the stjohnjohnson/smartthings-mqtt-bridge, as i would like to use it on my RP4 using docker and install node red, mqtt bridge and eclipse-mosquitto broker to it, and connect to my smarthings hub through t…

---

## [Batch node use case example](https://discourse.nodered.org/t/batch-node-use-case-example/18079)

<div class="topic-metadata">

**Author:** [@ab73863](https://discourse.nodered.org/u/ab73863)\
**Replies:** 2\
**Last updated:** [17 November 2019 22:48 UTC](https://discourse.nodered.org/t/batch-node-use-case-example/18079 "2019-11-17T22:48:01Z")

</div>

Hi , I am a newbie to node-red and I am trying to understand the usages of each node . I couldn't find any examples around batch node to understand the use case where the node fits in . I read through the brief definit…

---

## [Subflow vs mqtt](https://discourse.nodered.org/t/subflow-vs-mqtt/18074)

<div class="topic-metadata">

**Author:** [@kris](https://discourse.nodered.org/u/kris)\
**Replies:** 1\
**Last updated:** [17 November 2019 21:41 UTC](https://discourse.nodered.org/t/subflow-vs-mqtt/18074 "2019-11-17T21:41:45Z")

</div>

Hi, I started using Node-Red one year ago. It's really a pleasure to use it. I would like to optimize my project for one aspect and I don't find how to do it by myself, so I expect someone could give me a good idea. O…

---

## [Ifttt node with google services](https://discourse.nodered.org/t/ifttt-node-with-google-services/18078)

<div class="topic-metadata">

**Author:** [@kenkoknz](https://discourse.nodered.org/u/kenkoknz)\
**Replies:** 0\
**Last updated:** [17 November 2019 22:09 UTC](https://discourse.nodered.org/t/ifttt-node-with-google-services/18078 "2019-11-17T22:09:22Z")

</div>

Hi, Just be aware, (in case you have some mission critical flows using ifttt and google) that google services may not work with ifttt since Sept19, apparently they are working on a fix. I tried the ifttt node with goo…

---

## [FritzBox call an internal phone](https://discourse.nodered.org/t/fritzbox-call-an-internal-phone/18065)

<div class="topic-metadata">

**Author:** [@GreyDiamond](https://discourse.nodered.org/u/GreyDiamond)\
**Replies:** 1\
**Last updated:** [17 November 2019 19:52 UTC](https://discourse.nodered.org/t/fritzbox-call-an-internal-phone/18065 "2019-11-17T19:52:07Z")

</div>

Hello everyone! I was playing around with Node-RED the last few hours and asked myself: Is it possible to call a phone connected to my fritzbox? For example use the TR-064 protocol or some other way.... But I wasn't able…

---

## [Build language support](https://discourse.nodered.org/t/build-language-support/18059)

<div class="topic-metadata">

**Author:** [@baihongru](https://discourse.nodered.org/u/baihongru)\
**Replies:** 0\
**Last updated:** [17 November 2019 15:58 UTC](https://discourse.nodered.org/t/build-language-support/18059 "2019-11-17T15:58:15Z")

</div>

After modifying the language file (packages/node\_modules/@node-red/editor-client/locales/zh-CN), how do you compile it so that the change takes effect in the target? Or how do I compile a release?

---

## [Add milliseconds to timestamp on console logging](https://discourse.nodered.org/t/add-milliseconds-to-timestamp-on-console-logging/17921)

<div class="topic-metadata">

**Author:** [@T0T4R4](https://discourse.nodered.org/u/T0T4R4)\
**Replies:** 16\
**Last updated:** [17 November 2019 15:40 UTC](https://discourse.nodered.org/t/add-milliseconds-to-timestamp-on-console-logging/17921 "2019-11-17T15:40:40Z")

</div>

The timestamp provided as part of the Debug node console logging does not include milliseconds, and is not following the ISO format, is there a way to change this ?

---

## [Mqtt node not connecting to broker](https://discourse.nodered.org/t/mqtt-node-not-connecting-to-broker/18048)

<div class="topic-metadata">

**Author:** [@kenkoknz](https://discourse.nodered.org/u/kenkoknz)\
**Replies:** 7\
**Last updated:** [17 November 2019 09:04 UTC](https://discourse.nodered.org/t/mqtt-node-not-connecting-to-broker/18048 "2019-11-17T09:04:38Z")

</div>

NR: version V0.20.5 HW:PI3b+ Issue: MQTT node not connecting Error: "Error: listen EACCES: permission denied 0.0.0.0:80" I do not know what I did, but the mqtt node is not connecting in one of my NR instance any more…

---

## [Stopping Sequence an hour before sunset](https://discourse.nodered.org/t/stopping-sequence-an-hour-before-sunset/17911)

<div class="topic-metadata">

**Author:** [@rlongfield](https://discourse.nodered.org/u/rlongfield)\
**Replies:** 4\
**Last updated:** [17 November 2019 03:13 UTC](https://discourse.nodered.org/t/stopping-sequence-an-hour-before-sunset/17911 "2019-11-17T03:13:33Z")

</div>

I am new to Node-Red, like hours new. I was able to setup a sequence to turn on my lights if the weather is bad, someone is home, and it was after 14:00 and before sunset. My lights turn on at sunset with 1 light comin…

---

## [Start action when a usb stick is connected](https://discourse.nodered.org/t/start-action-when-a-usb-stick-is-connected/18046)

<div class="topic-metadata">

**Author:** [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Replies:** 6\
**Last updated:** [16 November 2019 23:16 UTC](https://discourse.nodered.org/t/start-action-when-a-usb-stick-is-connected/18046 "2019-11-16T23:16:08Z")

</div>

I am creating some puzzles with node-red. One puzzle is with some data on a usb stick. The player needs to plug the usb stick in and then a flow should start I am trying to do this with lsusb but then the whole time i…

---

## [Multiple node red instances](https://discourse.nodered.org/t/multiple-node-red-instances/18002)

<div class="topic-metadata">

**Author:** [@Meng](https://discourse.nodered.org/u/Meng)\
**Replies:** 6\
**Last updated:** [16 November 2019 17:08 UTC](https://discourse.nodered.org/t/multiple-node-red-instances/18002 "2019-11-16T17:08:57Z")

</div>

What is the best way to run multiple node-red instances? As far as i can find a different port is needed for every instance. Is sharing the setting.js file and or node\_modules a good option? Or is it advised to make mult…

---

## [Last Will testament / Check if node is online / trigger and buffer](https://discourse.nodered.org/t/last-will-testament-check-if-node-is-online-trigger-and-buffer/18029)

<div class="topic-metadata">

**Author:** [@nodster](https://discourse.nodered.org/u/nodster)\
**Replies:** 4\
**Last updated:** [16 November 2019 16:38 UTC](https://discourse.nodered.org/t/last-will-testament-check-if-node-is-online-trigger-and-buffer/18029 "2019-11-16T16:38:53Z")

</div>

Dear Community, 1 have about 30 nodes within my network, and i used ping to check if they are "online" and send email alarm. This triggers a lot of notifications.... i found out abot LWT functionality, and i want to us…

---

## [Cannot connect to Postgres database](https://discourse.nodered.org/t/cannot-connect-to-postgres-database/17914)

<div class="topic-metadata">

**Author:** [@abesis](https://discourse.nodered.org/u/abesis)\
**Replies:** 8\
**Last updated:** [16 November 2019 15:16 UTC](https://discourse.nodered.org/t/cannot-connect-to-postgres-database/17914 "2019-11-16T15:16:55Z")

</div>

Hi, I've been trying to communicate with Postgres database that runs locally on a Raspberry pi. So far I think that I have tried every node available through the Palette, such as node-red-contrib-postgres-variable n…

---

## [Conveyor Belt - people counter - counting](https://discourse.nodered.org/t/conveyor-belt-people-counter-counting/17996)

<div class="topic-metadata">

**Author:** [@bmeester](https://discourse.nodered.org/u/bmeester)\
**Replies:** 8\
**Last updated:** [15 November 2019 14:26 UTC](https://discourse.nodered.org/t/conveyor-belt-people-counter-counting/17996 "2019-11-15T14:26:48Z")

</div>

I have setup a pi with a grovepi board. I want to use the ultrasonic sensor to count products. The standard value that comes off it is around 500. When a product passes it drops to around 20. I want to make a counter …

---

## [Using object keys: alternatives to this code?](https://discourse.nodered.org/t/using-object-keys-alternatives-to-this-code/18031)

<div class="topic-metadata">

**Author:** [@danleighton](https://discourse.nodered.org/u/danleighton)\
**Replies:** 8\
**Last updated:** [16 November 2019 10:13 UTC](https://discourse.nodered.org/t/using-object-keys-alternatives-to-this-code/18031 "2019-11-16T10:13:46Z")

</div>

Hi all, I'd like to do this with nodes, rather than using a JS function node. Why? Because it's much easier for non-programmers to understand the flow than the JS :slight\_smile: Essentially, I am using a known key, sto…

---

## [Arrays of value into postgre](https://discourse.nodered.org/t/arrays-of-value-into-postgre/17998)

<div class="topic-metadata">

**Author:** [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Replies:** 0\
**Last updated:** [15 November 2019 13:18 UTC](https://discourse.nodered.org/t/arrays-of-value-into-postgre/17998 "2019-11-15T13:18:47Z")

</div>

Hi there ! I have problem with my scripting is that my data is coming as an Arrays of value and I want this values dump in postgresql as individual columns. i,e Like If my array of values are 10 I want this values sto…

---

## ["Function tried to send a message of type number"](https://discourse.nodered.org/t/function-tried-to-send-a-message-of-type-number/18021)

<div class="topic-metadata">

**Author:** [@JaredG](https://discourse.nodered.org/u/JaredG)\
**Replies:** 2\
**Last updated:** [15 November 2019 23:03 UTC](https://discourse.nodered.org/t/function-tried-to-send-a-message-of-type-number/18021 "2019-11-15T23:03:23Z")

</div>

I'm sure this is some type of newb thing. I'm trying to return a value from my array with: return msg.payload\[0\].V (Yes, I want the first value in the array. ) But I keep getting this error: "Function tried to send …

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

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