# General

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

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

**Page:** 921

---

## [Play audio file](https://discourse.nodered.org/t/play-audio-file/7026)

<div class="topic-metadata">

**Author:** [@Ghbisson](https://discourse.nodered.org/u/Ghbisson)\
**Replies:** 4\
**Last updated:** [19 January 2019 22:54 UTC](https://discourse.nodered.org/t/play-audio-file/7026 "2019-01-19T22:54:33Z")

</div>

I ty to use the "Play audio file" node but can't find the way to make it work. I can play mp3 music from my Raspberry pi with VLC software with no problem. I'd like to know if there is a dependency to have it work or any…

---

## [Function node stopping](https://discourse.nodered.org/t/function-node-stopping/7017)

<div class="topic-metadata">

**Author:** [@mason08](https://discourse.nodered.org/u/mason08)\
**Replies:** 8\
**Last updated:** [19 January 2019 21:56 UTC](https://discourse.nodered.org/t/function-node-stopping/7017 "2019-01-19T21:56:58Z")

</div>

Im having issues with having my node to continually run. It seems to run only one time and until i redeploy it wont run again. \[{"id":"8346c397.c91db","type":"function","z":"6c09d71.3976f28","name":"Boiler Relay 1","fu…

---

## [Dynamic List Configuration](https://discourse.nodered.org/t/dynamic-list-configuration/7027)

<div class="topic-metadata">

**Author:** [@bertmartin](https://discourse.nodered.org/u/bertmartin)\
**Replies:** 3\
**Last updated:** [19 January 2019 21:45 UTC](https://discourse.nodered.org/t/dynamic-list-configuration/7027 "2019-01-19T21:45:38Z")

</div>

I am building my first custom module and in my configuration file I need to have a drop down list of files in a directory. I've got the basic dynamic build of the list working (thanks to the serial port module). Everyt…

---

## [Wait for response?](https://discourse.nodered.org/t/wait-for-response/7021)

<div class="topic-metadata">

**Author:** [@ryanrdetzel](https://discourse.nodered.org/u/ryanrdetzel)\
**Replies:** 1\
**Last updated:** [19 January 2019 17:51 UTC](https://discourse.nodered.org/t/wait-for-response/7021 "2019-01-19T17:51:07Z")

</div>

I'm using slack to post messages and I'd love to be able to respond. The slack node has both get and set so I can read messages posted so I just need to figure out how to post, wait n seconds for a response and process t…

---

## [Reading part of csv file](https://discourse.nodered.org/t/reading-part-of-csv-file/6987)

<div class="topic-metadata">

**Author:** [@15green](https://discourse.nodered.org/u/15green)\
**Replies:** 6\
**Last updated:** [19 January 2019 16:24 UTC](https://discourse.nodered.org/t/reading-part-of-csv-file/6987 "2019-01-19T16:24:05Z")

</div>

Another newbie question. How do I read only part of a csv file, say the last 10 lines? File node reads the whole file, and tail only the last. There must be a simple way!

---

## [At the end of my wits.....Ghost flows!](https://discourse.nodered.org/t/at-the-end-of-my-wits-ghost-flows/7008)

<div class="topic-metadata">

**Author:** [@Sander](https://discourse.nodered.org/u/Sander)\
**Replies:** 2\
**Last updated:** [19 January 2019 15:29 UTC](https://discourse.nodered.org/t/at-the-end-of-my-wits-ghost-flows/7008 "2019-01-19T15:29:54Z")

</div>

Hello all, I am a relative novice when it comes to node-red (and MQTT and messaging in general for that matter). After playing around a bit, like creating and then deleting flows, I am experiencing what I've learned to …

---

## [How to alternatively change button's color](https://discourse.nodered.org/t/how-to-alternatively-change-buttons-color/820)

<div class="topic-metadata">

**Author:** [@hary](https://discourse.nodered.org/u/hary)\
**Replies:** 17\
**Last updated:** [19 January 2019 13:07 UTC](https://discourse.nodered.org/t/how-to-alternatively-change-buttons-color/820 "2019-01-19T13:07:02Z")

</div>

Hi I’m using Dasboard. I have a start button and I would like it to alternatively change its backgroung color when it’s been pushed to start the system. I tried to do think reinjecting msg.payload.background to the in…

---

## [Node-red mongodb2 update](https://discourse.nodered.org/t/node-red-mongodb2-update/7009)

<div class="topic-metadata">

**Author:** [@turkdoktoru](https://discourse.nodered.org/u/turkdoktoru)\
**Replies:** 1\
**Last updated:** [19 January 2019 10:22 UTC](https://discourse.nodered.org/t/node-red-mongodb2-update/7009 "2019-01-19T10:22:42Z")

</div>

Hi friends, The node-red stream is as follows. How do I update with the code specified in "Set message payload function". I can insert insert with the same code, but I can't update the current record. How do I update …

---

## [Parsing data on a html website](https://discourse.nodered.org/t/parsing-data-on-a-html-website/1733)

<div class="topic-metadata">

**Author:** [@gcmlnz91](https://discourse.nodered.org/u/gcmlnz91)\
**Replies:** 7\
**Last updated:** [22 July 2018 12:30 UTC](https://discourse.nodered.org/t/parsing-data-on-a-html-website/1733 "2018-07-22T12:30:49Z")

</div>

hello, i'm trying to understand how to use the html node. i have some difficulties in parsing data from a html. for exercise i'm trying to take some information from the website oraesattaco i can't take the time and m…

---

## [Nodes that run on client side](https://discourse.nodered.org/t/nodes-that-run-on-client-side/7005)

<div class="topic-metadata">

**Author:** [@derekchiang](https://discourse.nodered.org/u/derekchiang)\
**Replies:** 2\
**Last updated:** [19 January 2019 09:54 UTC](https://discourse.nodered.org/t/nodes-that-run-on-client-side/7005 "2019-01-19T09:54:08Z")

</div>

Hi guys, I'm new to Node-RED so this is probably a dumb question, but I was wondering if it's possible to create custom nodes that run on the client side? By that I mean, that the JavaScript code would run in the browse…

---

## [Connect Wireless Modem with node red and read the data bytes](https://discourse.nodered.org/t/connect-wireless-modem-with-node-red-and-read-the-data-bytes/6887)

<div class="topic-metadata">

**Author:** [@fredy76](https://discourse.nodered.org/u/fredy76)\
**Replies:** 3\
**Last updated:** [19 January 2019 05:11 UTC](https://discourse.nodered.org/t/connect-wireless-modem-with-node-red-and-read-the-data-bytes/6887 "2019-01-19T05:11:58Z")

</div>

How can I connect Wireless modem which uses 900hp-S3-pro device with Node red? I am able to read the data bytes from this device which is receiving the data from Wireless Temperature Sensor in XCTU software serial monit…

---

## [Function not working after update](https://discourse.nodered.org/t/function-not-working-after-update/6964)

<div class="topic-metadata">

**Author:** [@davidcgu](https://discourse.nodered.org/u/davidcgu)\
**Replies:** 5\
**Last updated:** [18 January 2019 23:00 UTC](https://discourse.nodered.org/t/function-not-working-after-update/6964 "2019-01-18T23:00:19Z")

</div>

Good afternoon I have a function tat takes the msg.payload with 2 different topics and returns me the diference ont he value. Previously was working fine but after updating node red now returns me "NAN". Function is: …

---

## [Sqlite install error in nodered 0.19.5](https://discourse.nodered.org/t/sqlite-install-error-in-nodered-0-19-5/6960)

<div class="topic-metadata">

**Author:** [@au190](https://discourse.nodered.org/u/au190)\
**Replies:** 10\
**Last updated:** [18 January 2019 18:49 UTC](https://discourse.nodered.org/t/sqlite-install-error-in-nodered-0-19-5/6960 "2019-01-18T18:49:20Z")

</div>

Hi Iam trying to install sql lite without success (: any advice ? I tryed in cli and also from noded palette, same error. Iam using : hassio 0.85.1 nodered 0.19.5 node-red npm i --unsafe-perm node-red-node-sqlite \> …

---

## [How to read GPIO as binary](https://discourse.nodered.org/t/how-to-read-gpio-as-binary/6840)

<div class="topic-metadata">

**Author:** [@15green](https://discourse.nodered.org/u/15green)\
**Replies:** 5\
**Last updated:** [18 January 2019 18:43 UTC](https://discourse.nodered.org/t/how-to-read-gpio-as-binary/6840 "2019-01-18T18:43:29Z")

</div>

I am a newcomer to Node-Red but learning all the time and managed to get a few things up and running on the dashboard on my Pi. However my next goal is to read an 8 bit binary code as input to 8 GPIO pins on my Pi, and …

---

## [Return value from OPC.IIoT.Result-Filter](https://discourse.nodered.org/t/return-value-from-opc-iiot-result-filter/6787)

<div class="topic-metadata">

**Author:** [@olab](https://discourse.nodered.org/u/olab)\
**Replies:** 5\
**Last updated:** [18 January 2019 17:02 UTC](https://discourse.nodered.org/t/return-value-from-opc-iiot-result-filter/6787 "2019-01-18T17:02:03Z")

</div>

Probaly an easy solution, but I'll ask anyway. I have a connection to an opc server returning a value of type Float. Payload i returning the correct value until the value is 0. Then the value returned is an complete obj…

---

## [Trouble with UTC and lighting automation](https://discourse.nodered.org/t/trouble-with-utc-and-lighting-automation/6815)

<div class="topic-metadata">

**Author:** [@subjectbit](https://discourse.nodered.org/u/subjectbit)\
**Replies:** 18\
**Last updated:** [18 January 2019 16:59 UTC](https://discourse.nodered.org/t/trouble-with-utc-and-lighting-automation/6815 "2019-01-18T16:59:31Z")

</div>

Hi all - I'm struggling with what should be simple, time-based lighting automation. Hoping there's a simple, elegant solution out there that I'm just not grasping yet... The automation involves a motion sensor. When it'…

---

## [Multiplexing HTTP Requests](https://discourse.nodered.org/t/multiplexing-http-requests/6969)

<div class="topic-metadata">

**Author:** [@Xolani](https://discourse.nodered.org/u/Xolani)\
**Replies:** 1\
**Last updated:** [18 January 2019 16:56 UTC](https://discourse.nodered.org/t/multiplexing-http-requests/6969 "2019-01-18T16:56:20Z")

</div>

Hi all, I'm working on a flow that interrogates a REST API (The EVE Online API) over multiple steps. First, by retrieving a list of entities by ID ( https://esi.evetech.net/latest/alliances/?datasource=tranquility ). Th…

---

## [Start a project flow among several projects](https://discourse.nodered.org/t/start-a-project-flow-among-several-projects/6877)

<div class="topic-metadata">

**Author:** [@Lionel](https://discourse.nodered.org/u/Lionel)\
**Replies:** 6\
**Last updated:** [18 January 2019 14:21 UTC](https://discourse.nodered.org/t/start-a-project-flow-among-several-projects/6877 "2019-01-18T14:21:04Z")

</div>

Hi, I have developed two projects, and I would like to know if there is a mean to start specifically one of the two using the command line. Thx.

---

## [Get value from JSON object and send to base64 node](https://discourse.nodered.org/t/get-value-from-json-object-and-send-to-base64-node/6963)

<div class="topic-metadata">

**Author:** [@alanca](https://discourse.nodered.org/u/alanca)\
**Replies:** 5\
**Last updated:** [18 January 2019 13:52 UTC](https://discourse.nodered.org/t/get-value-from-json-object-and-send-to-base64-node/6963 "2019-01-18T13:52:47Z")

</div>

I currently have the following flow consisting of groups of nodes that all work in smaller flows, receiving a JSON string from TTN, checking what device we're talking about, and if it's the right one, then I want to conv…

---

## [Node red sms app](https://discourse.nodered.org/t/node-red-sms-app/6906)

<div class="topic-metadata">

**Author:** [@amrutha](https://discourse.nodered.org/u/amrutha)\
**Replies:** 15\
**Last updated:** [18 January 2019 13:11 UTC](https://discourse.nodered.org/t/node-red-sms-app/6906 "2019-01-18T13:11:18Z")

</div>

Can we able to create a sms app using node red?

---

## [Resource Management - 1 flow vs multiple flows](https://discourse.nodered.org/t/resource-management-1-flow-vs-multiple-flows/6926)

<div class="topic-metadata">

**Author:** [@mooreb](https://discourse.nodered.org/u/mooreb)\
**Replies:** 2\
**Last updated:** [17 January 2019 18:13 UTC](https://discourse.nodered.org/t/resource-management-1-flow-vs-multiple-flows/6926 "2019-01-17T18:13:26Z")

</div>

How does node-red allocate system resources, like CPU and RAM across flows? Are there any benefits/downsides to putting all nodes on one flow vs splitting them up on multiple flows in terms of resource allocation? For in…

---

## [Node-red-contrib-movehub how to use in OSX](https://discourse.nodered.org/t/node-red-contrib-movehub-how-to-use-in-osx/6919)

<div class="topic-metadata">

**Author:** [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Replies:** 1\
**Last updated:** [17 January 2019 16:58 UTC](https://discourse.nodered.org/t/node-red-contrib-movehub-how-to-use-in-osx/6919 "2019-01-17T16:58:09Z")

</div>

In case anyone ever wants to use the node-red-contrib-movehub with the LEGO Move Hub, I just added an 'issue' in github explaining how I got it to work with osX 10.13.6 Next to try with a Pi.

---

## [Is there a way to trigger the generation of the flow json to a file?](https://discourse.nodered.org/t/is-there-a-way-to-trigger-the-generation-of-the-flow-json-to-a-file/6925)

<div class="topic-metadata">

**Author:** [@gbove73](https://discourse.nodered.org/u/gbove73)\
**Replies:** 2\
**Last updated:** [17 January 2019 16:24 UTC](https://discourse.nodered.org/t/is-there-a-way-to-trigger-the-generation-of-the-flow-json-to-a-file/6925 "2019-01-17T16:24:34Z")

</div>

I would like to write a custom node that write in a file the full current flow json code when triggered. Is that possible? Thanks in advance.

---

## [If unlucky two events happen at same time](https://discourse.nodered.org/t/if-unlucky-two-events-happen-at-same-time/6914)

<div class="topic-metadata">

**Author:** [@GiovanniG](https://discourse.nodered.org/u/GiovanniG)\
**Replies:** 12\
**Last updated:** [17 January 2019 15:35 UTC](https://discourse.nodered.org/t/if-unlucky-two-events-happen-at-same-time/6914 "2019-01-17T15:35:13Z")

</div>

Hi! I have a function with multi input and many "if" to produce the desidered msgpayload to send after to hardware. If unfortunately another message come to this function when is escecuting his code, will this message be…

---

## [Influxdb suggested schema](https://discourse.nodered.org/t/influxdb-suggested-schema/6786)

<div class="topic-metadata">

**Author:** [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Replies:** 22\
**Last updated:** [17 January 2019 14:50 UTC](https://discourse.nodered.org/t/influxdb-suggested-schema/6786 "2019-01-17T14:50:26Z")

</div>

There have been a number of posts recently about node-RED users using influxdb & grafana to display data, which have whetted my appetite, and am in the process of changing from mySQL to influx (+ grafana). There is a le…

---

## [Raspberry Pi can't boot Node Red](https://discourse.nodered.org/t/raspberry-pi-cant-boot-node-red/6920)

<div class="topic-metadata">

**Author:** [@Alex](https://discourse.nodered.org/u/Alex)\
**Replies:** 2\
**Last updated:** [17 January 2019 14:08 UTC](https://discourse.nodered.org/t/raspberry-pi-cant-boot-node-red/6920 "2019-01-17T14:08:32Z")

</div>

Hi there, we have a problem, the Raspberry Pi is not able to boot the NodeRed anymore after setting the time intervall of the injection node to short. The injection node was used, to smaple data with the I2C node. It w…

---

## [Fail to remove node that crashes Node Red on start](https://discourse.nodered.org/t/fail-to-remove-node-that-crashes-node-red-on-start/6893)

<div class="topic-metadata">

**Author:** [@tobiasselin](https://discourse.nodered.org/u/tobiasselin)\
**Replies:** 8\
**Last updated:** [17 January 2019 13:34 UTC](https://discourse.nodered.org/t/fail-to-remove-node-that-crashes-node-red-on-start/6893 "2019-01-17T13:34:57Z")

</div>

I've run into this problem, which crashes Node Red: TypeError: Cannot read property 'heartBeat' of null at Hub.onMessage (/Users/Admin/.node-red/node\_modules/node-xiaomi-smart-home/build/Hub.js:70:16) at Socket.emit (…

---

## [Import querySelector function](https://discourse.nodered.org/t/import-queryselector-function/6884)

<div class="topic-metadata">

**Author:** [@wojtula](https://discourse.nodered.org/u/wojtula)\
**Replies:** 11\
**Last updated:** [17 January 2019 10:32 UTC](https://discourse.nodered.org/t/import-queryselector-function/6884 "2019-01-17T10:32:09Z")

</div>

Hello, I was wondering if could I import such function like querySelector or querySelectorAll to use it inside function node? I've tried with: var doc = msg.payload; var querySelector = global.get('querySelector'); …

---

## [Blog site using Mongo db](https://discourse.nodered.org/t/blog-site-using-mongo-db/6904)

<div class="topic-metadata">

**Author:** [@amrutha](https://discourse.nodered.org/u/amrutha)\
**Replies:** 1\
**Last updated:** [17 January 2019 08:46 UTC](https://discourse.nodered.org/t/blog-site-using-mongo-db/6904 "2019-01-17T08:46:24Z")

</div>

This is my flow. I have created a blog site using mongo db. but i cannot able to retrieve my blog site. there are no errors in the debug sidebar. please help me with it \[{"id":"f28d0390.5bc93","type":"http in","z":"253…

---

## [Can't get the blog post](https://discourse.nodered.org/t/cant-get-the-blog-post/6899)

<div class="topic-metadata">

**Author:** [@RahulMathavan](https://discourse.nodered.org/u/RahulMathavan)\
**Replies:** 7\
**Last updated:** [17 January 2019 09:03 UTC](https://discourse.nodered.org/t/cant-get-the-blog-post/6899 "2019-01-17T09:03:46Z")

</div>

I have created a blog site in node red. I have used mongodb database to create a collection and store my content. Everything is working fine, there is no error in debug side bar. But I cannot able to display my blog page …

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

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