# General

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

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

**Page:** 940

---

## [Store messages in files and load them again](https://discourse.nodered.org/t/store-messages-in-files-and-load-them-again/4346)

<div class="topic-metadata">

**Author:** [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Replies:** 6\
**Last updated:** [28 October 2018 11:02 UTC](https://discourse.nodered.org/t/store-messages-in-files-and-load-them-again/4346 "2018-10-28T11:02:34Z")

</div>

Hi folks, I have ended up in a situation where I should store messages in files and load them afterwards back from those files. That works fine as long as the msg.payload contains a Buffer OR text data, since you can s…

---

## [Using function() within a function node](https://discourse.nodered.org/t/using-function-within-a-function-node/1552)

<div class="topic-metadata">

**Author:** [@max95](https://discourse.nodered.org/u/max95)\
**Replies:** 4\
**Last updated:** [28 October 2018 09:37 UTC](https://discourse.nodered.org/t/using-function-within-a-function-node/1552 "2018-10-28T09:37:34Z")

</div>

I'm trying to read data from a BH1750 i2c light intensity sensor. There is no node-red node for it, so I'm using a node.js module and trying to access it from within a function node in node-red. However anything that is …

---

## [Neural network - Internal Node or Watson](https://discourse.nodered.org/t/neural-network-internal-node-or-watson/3949)

<div class="topic-metadata">

**Author:** [@JoseGodinho](https://discourse.nodered.org/u/JoseGodinho)\
**Replies:** 24\
**Last updated:** [28 October 2018 07:54 UTC](https://discourse.nodered.org/t/neural-network-internal-node-or-watson/3949 "2018-10-28T07:54:29Z")

</div>

Hello everyone I have integrated several home sensors in my nodered configuration with the use of several protocol nodes ( Modbus / Mqtt / HTTP), these sensors, (various PIRs / electricity meter / water meter / WIFI …

---

## [Homekit-bridged install problem](https://discourse.nodered.org/t/homekit-bridged-install-problem/4267)

<div class="topic-metadata">

**Author:** [@StrongTown](https://discourse.nodered.org/u/StrongTown)\
**Replies:** 16\
**Last updated:** [27 October 2018 22:43 UTC](https://discourse.nodered.org/t/homekit-bridged-install-problem/4267 "2018-10-27T22:43:34Z")

</div>

Hi guys, The good news is I've got my NR stuff running clean and fully functional. So my next step was to install homekit-bridged. After several install attempts that failed (and checking for solutions on the inter-web…

---

## [Node-red convert from hexa to decimal](https://discourse.nodered.org/t/node-red-convert-from-hexa-to-decimal/4212)

<div class="topic-metadata">

**Author:** [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Replies:** 11\
**Last updated:** [26 October 2018 21:06 UTC](https://discourse.nodered.org/t/node-red-convert-from-hexa-to-decimal/4212 "2018-10-26T21:06:51Z")

</div>

I have a raspberry pi and KNX sensors. I am using Node-RED and I wish to extract measurement (For example: Temperature). But I don’t know how to convert from hexa (Data Type “2-Octet Float Value”10) to decimal (Format: 2…

---

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

<div class="topic-metadata">

**Author:** [@martinschki](https://discourse.nodered.org/u/martinschki)\
**Replies:** 4\
**Last updated:** [26 October 2018 20:25 UTC](https://discourse.nodered.org/t/node-red-contrib-amazondash/4321 "2018-10-26T20:25:25Z")

</div>

Hello there! I really like the amazon dash buttons for all kind of things. They are cheap and easy to use around the house... In general the node works but I've noticed that every "deploy" results in an additional "but…

---

## [Node-red-log should be longer](https://discourse.nodered.org/t/node-red-log-should-be-longer/4315)

<div class="topic-metadata">

**Author:** [@Colin](https://discourse.nodered.org/u/Colin)\
**Replies:** 0\
**Last updated:** [26 October 2018 11:01 UTC](https://discourse.nodered.org/t/node-red-log-should-be-longer/4315 "2018-10-26T11:01:18Z")

</div>

Can I suggest that the amount of history shown in node-red-log should be increased? Currently it only shows the last 25 lines of the log but often that is not enough even immediately after startup. This can be achieved…

---

## [Help with receiving command from function node](https://discourse.nodered.org/t/help-with-receiving-command-from-function-node/4291)

<div class="topic-metadata">

**Author:** [@DillonW](https://discourse.nodered.org/u/DillonW)\
**Replies:** 5\
**Last updated:** [26 October 2018 09:40 UTC](https://discourse.nodered.org/t/help-with-receiving-command-from-function-node/4291 "2018-10-26T09:40:08Z")

</div>

Hi, I am testing to receive commands with an arduino board(MKR 1000) and I've already registered the device to the IoT platform. The device can receive commands if I use the inject node. I want to use a function node ins…

---

## [Node-red-contrib-sonoff-server 1.0.0](https://discourse.nodered.org/t/node-red-contrib-sonoff-server-1-0-0/4310)

<div class="topic-metadata">

**Author:** [@GeorgeX](https://discourse.nodered.org/u/GeorgeX)\
**Replies:** 1\
**Last updated:** [26 October 2018 09:27 UTC](https://discourse.nodered.org/t/node-red-contrib-sonoff-server-1-0-0/4310 "2018-10-26T09:27:40Z")

</div>

Hello ! Looks like node-red-contrib-sonoff-server 1.0.0 worked earlier with the original sonoff firmware version 2.0.4 on Th16 modules. Now sonoff updated the modules to firmware version 2.6.0. and I am not able to get…

---

## [Error: certificate is not yet valid](https://discourse.nodered.org/t/error-certificate-is-not-yet-valid/4299)

<div class="topic-metadata">

**Author:** [@Pac8](https://discourse.nodered.org/u/Pac8)\
**Replies:** 2\
**Last updated:** [26 October 2018 07:18 UTC](https://discourse.nodered.org/t/error-certificate-is-not-yet-valid/4299 "2018-10-26T07:18:47Z")

</div>

Getting below error while donloading nodes to iot2020. Followed a few forums and was told to change time settings but dont know how. Can someone please help out. Many thanks. Error: Command failed: npm install --produc…

---

## [Node-red docker based on debian stretch](https://discourse.nodered.org/t/node-red-docker-based-on-debian-stretch/2402)

<div class="topic-metadata">

**Author:** [@Leosirth](https://discourse.nodered.org/u/Leosirth)\
**Replies:** 2\
**Last updated:** [26 October 2018 06:04 UTC](https://discourse.nodered.org/t/node-red-docker-based-on-debian-stretch/2402 "2018-10-26T06:04:57Z")

</div>

Hi, asking for your opinion on the best way for the following: I'm running node-red inside a docker container using the latest tag image. I need to make use of UNIX socket inside a flow and looks like the best way for …

---

## [Error evaluating expression: Argument 1 of function "replace" does not match function signature](https://discourse.nodered.org/t/error-evaluating-expression-argument-1-of-function-replace-does-not-match-function-signature/3916)

<div class="topic-metadata">

**Author:** [@Hc\_IoT](https://discourse.nodered.org/u/Hc_IoT)\
**Replies:** 4\
**Last updated:** [26 October 2018 05:11 UTC](https://discourse.nodered.org/t/error-evaluating-expression-argument-1-of-function-replace-does-not-match-function-signature/3916 "2018-10-26T05:11:11Z")

</div>

Dear All, While creating an JSONata expression I have encountered an error : "Error evaluating expression: Argument 1 of function "replace" does not match function signature" but when I put .(dot) after the payload i…

---

## [MCP23017 relay control](https://discourse.nodered.org/t/mcp23017-relay-control/4269)

<div class="topic-metadata">

**Author:** [@Orion96](https://discourse.nodered.org/u/Orion96)\
**Replies:** 8\
**Last updated:** [25 October 2018 21:04 UTC](https://discourse.nodered.org/t/mcp23017-relay-control/4269 "2018-10-25T21:04:53Z")

</div>

Hi I'm hoping this is the right place to post this question... I'm using the ncd-red-mcp23017 node with a 16 channel relay board. For now, I would like to use it to switch the lights on in the house (we are rewiring),…

---

## [Bar-code Scanner](https://discourse.nodered.org/t/bar-code-scanner/4118)

<div class="topic-metadata">

**Author:** [@Pac8](https://discourse.nodered.org/u/Pac8)\
**Replies:** 6\
**Last updated:** [25 October 2018 10:54 UTC](https://discourse.nodered.org/t/bar-code-scanner/4118 "2018-10-25T10:54:38Z")

</div>

Does any one know is it possible for a bar-code scanner to be programmed into node red.

---

## [Saving (/w 'context') values within function nodes for future use](https://discourse.nodered.org/t/saving-w-context-values-within-function-nodes-for-future-use/4279)

<div class="topic-metadata">

**Author:** [@getslow](https://discourse.nodered.org/u/getslow)\
**Replies:** 2\
**Last updated:** [25 October 2018 10:21 UTC](https://discourse.nodered.org/t/saving-w-context-values-within-function-nodes-for-future-use/4279 "2018-10-25T10:21:13Z")

</div>

Hi all, I'm new to the Java coding and I have been trying to create a dimmable LED (using PWM) that is controlled through homekit. Homekit outputs the following: ON/OFF or Brightness The goal: If the LED is turned 'ON…

---

## [Bluetooth VR Controller](https://discourse.nodered.org/t/bluetooth-vr-controller/3130)

<div class="topic-metadata">

**Author:** [@2004sk4](https://discourse.nodered.org/u/2004sk4)\
**Replies:** 1\
**Last updated:** [25 October 2018 06:55 UTC](https://discourse.nodered.org/t/bluetooth-vr-controller/3130 "2018-10-25T06:55:16Z")

</div>

What would be the best way to use a cheap $20 Evo VR bluetooth controller to work with node red. I would like have the buttons control some gpio output and the axis control some motors. I have installed noble and h…

---

## [Downloading node issues](https://discourse.nodered.org/t/downloading-node-issues/3789)

<div class="topic-metadata">

**Author:** [@Pac8](https://discourse.nodered.org/u/Pac8)\
**Replies:** 13\
**Last updated:** [24 October 2018 22:45 UTC](https://discourse.nodered.org/t/downloading-node-issues/3789 "2018-10-24T22:45:45Z")

</div>

Any one come across these errors before and wish to help out or guide in right direction. Greatly appreciated. Many thanks! npm ERR! Linux 4.4.105-cip15 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "node-re…

---

## [Playing a .mp3 file directly via node-red-contrib-better-sonos](https://discourse.nodered.org/t/playing-a-mp3-file-directly-via-node-red-contrib-better-sonos/4270)

<div class="topic-metadata">

**Author:** [@nodecentral](https://discourse.nodered.org/u/nodecentral)\
**Replies:** 0\
**Last updated:** [24 October 2018 21:41 UTC](https://discourse.nodered.org/t/playing-a-mp3-file-directly-via-node-red-contrib-better-sonos/4270 "2018-10-24T21:41:26Z")

</div>

Hi, Is anyone using node-red-contrib-better-sonos , and have managed to get it to work connecting to a remotely sited mp3 file? I’ve configured the Queue node. The URI I’m using is thi, and i’ve tried others too …

---

## [Temperature With Max6675](https://discourse.nodered.org/t/temperature-with-max6675/608)

<div class="topic-metadata">

**Author:** [@MarcoGaspar](https://discourse.nodered.org/u/MarcoGaspar)\
**Replies:** 7\
**Last updated:** [24 October 2018 17:06 UTC](https://discourse.nodered.org/t/temperature-with-max6675/608 "2018-10-24T17:06:51Z")

</div>

Hello, It’s possible to have Temperature With Max6675 in node-red?

---

## [Node-red Bind data in HTML](https://discourse.nodered.org/t/node-red-bind-data-in-html/4226)

<div class="topic-metadata">

**Author:** [@tamiloli.it](https://discourse.nodered.org/u/tamiloli.it)\
**Replies:** 4\
**Last updated:** [24 October 2018 14:44 UTC](https://discourse.nodered.org/t/node-red-bind-data-in-html/4226 "2018-10-24T14:44:06Z")

</div>

Hi, I'm getting data into JSON or DB, but how can i bind my data in HTML page(Javascipt or function or Direct HTML)

---

## [Deployed API not working](https://discourse.nodered.org/t/deployed-api-not-working/4262)

<div class="topic-metadata">

**Author:** [@Venkatarun](https://discourse.nodered.org/u/Venkatarun)\
**Replies:** 0\
**Last updated:** [24 October 2018 14:01 UTC](https://discourse.nodered.org/t/deployed-api-not-working/4262 "2018-10-24T14:01:54Z")

</div>

I have created the API Flow and Successfully deployed the same. When I access the deployed API. Its return as 'Cannot GET /api/test'. If I have restarted Node-RED or Nginx, API respond as expected. Please let me know, H…

---

## [Number of decimals i function](https://discourse.nodered.org/t/number-of-decimals-i-function/4233)

<div class="topic-metadata">

**Author:** [@SKL](https://discourse.nodered.org/u/SKL)\
**Replies:** 5\
**Last updated:** [24 October 2018 13:58 UTC](https://discourse.nodered.org/t/number-of-decimals-i-function/4233 "2018-10-24T13:58:24Z")

</div>

How do i limit the number of decimals to 1 in this? msg.payload = Number(msg.payload) msg.payload = (((msg.payload)\*10)-100) return msg; My output is like this now

---

## [Using Node Red and Forever on Raspberry B+](https://discourse.nodered.org/t/using-node-red-and-forever-on-raspberry-b/4218)

<div class="topic-metadata">

**Author:** [@alcor](https://discourse.nodered.org/u/alcor)\
**Replies:** 11\
**Last updated:** [24 October 2018 12:42 UTC](https://discourse.nodered.org/t/using-node-red-and-forever-on-raspberry-b/4218 "2018-10-24T12:42:00Z")

</div>

I'm able to start Node Red on my rpi with the following command: sudo /usr/bin/node-red-pi --max-old-space-size=64 --settings .node-red\_username/settings.js -u .node-red\_username Now i'm trying to use the same command …

---

## [Node-red + Sentilo = Error](https://discourse.nodered.org/t/node-red-sentilo-error/4253)

<div class="topic-metadata">

**Author:** [@pentadom](https://discourse.nodered.org/u/pentadom)\
**Replies:** 1\
**Last updated:** [24 October 2018 10:20 UTC](https://discourse.nodered.org/t/node-red-sentilo-error/4253 "2018-10-24T10:20:38Z")

</div>

Hello, I'm trying to publish a value from node-red to a sensor I created in the Sentilo platform and when I trigger the value to the server the node-red return the next error: Some info: I'm running the Sentilo in a v…

---

## ["change node" Variables in key](https://discourse.nodered.org/t/change-node-variables-in-key/4248)

<div class="topic-metadata">

**Author:** [@Little](https://discourse.nodered.org/u/Little)\
**Replies:** 2\
**Last updated:** [24 October 2018 09:20 UTC](https://discourse.nodered.org/t/change-node-variables-in-key/4248 "2018-10-24T09:20:41Z")

</div>

Hello It is possible to use templates in keys? I need to dynamically add/remove values and I need to parse these values from incoming msg.payload. I know how to do this with "function node" but i want to do this in "c…

---

## [Pushover Node Image Attachment Support](https://discourse.nodered.org/t/pushover-node-image-attachment-support/4043)

<div class="topic-metadata">

**Author:** [@damoclark](https://discourse.nodered.org/u/damoclark)\
**Replies:** 2\
**Last updated:** [24 October 2018 02:39 UTC](https://discourse.nodered.org/t/pushover-node-image-attachment-support/4043 "2018-10-24T02:39:28Z")

</div>

Pushover Node Image Attachment Support Hi Node-redders, I’m keen to add image attachment support to the built in node-red pushover node. Handy to attach a picture from a security camera that detects motion for instance…

---

## [Combine loop through 2dim-array and send to different outputs](https://discourse.nodered.org/t/combine-loop-through-2dim-array-and-send-to-different-outputs/4236)

<div class="topic-metadata">

**Author:** [@dlounge](https://discourse.nodered.org/u/dlounge)\
**Replies:** 3\
**Last updated:** [24 October 2018 01:43 UTC](https://discourse.nodered.org/t/combine-loop-through-2dim-array-and-send-to-different-outputs/4236 "2018-10-24T01:43:28Z")

</div>

Hi, I am stuck with a stupid problem in a function: I want to combine looping through the entries in a two-dimensional array with sending the value in \[x\]\[1\] to the respective output number found in \[x\]\[0\] (number of o…

---

## [Save/Insert timestamps in MongoDB](https://discourse.nodered.org/t/save-insert-timestamps-in-mongodb/4222)

<div class="topic-metadata">

**Author:** [@GrtVHecke](https://discourse.nodered.org/u/GrtVHecke)\
**Replies:** 2\
**Last updated:** [23 October 2018 21:38 UTC](https://discourse.nodered.org/t/save-insert-timestamps-in-mongodb/4222 "2018-10-23T21:38:16Z")

</div>

I need to insert timestamps in MongoDB. I used the Mongo3 driver. I stated the object like this "ts": { "$date:: "2018-10-23T15:23:59.106Z" } But on save it says that the field may not contain a $ sign.

---

## [Unable to secure Node-RED](https://discourse.nodered.org/t/unable-to-secure-node-red/3966)

<div class="topic-metadata">

**Author:** [@talud08](https://discourse.nodered.org/u/talud08)\
**Replies:** 16\
**Last updated:** [23 October 2018 20:36 UTC](https://discourse.nodered.org/t/unable-to-secure-node-red/3966 "2018-10-23T20:36:02Z")

</div>

Hi, I am just starting with Node-RED and probably my question is too basic, but after hours in Internet I cannot secure my access to Node-RED page. It is Node-RED v0.19.4 and I am running it in a Raspberry Pi. I modif…

---

## [Parsing JSON to output to CSV file](https://discourse.nodered.org/t/parsing-json-to-output-to-csv-file/4198)

<div class="topic-metadata">

**Author:** [@ddubief](https://discourse.nodered.org/u/ddubief)\
**Replies:** 9\
**Last updated:** [23 October 2018 19:29 UTC](https://discourse.nodered.org/t/parsing-json-to-output-to-csv-file/4198 "2018-10-23T19:29:13Z")

</div>

I will apologize first, and take any critique! I am trying to pull API data from a mobile router, that gives me plenty of JSON formatted output on what I need. Of this data, I am parsing to capture only specific info pe…

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

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