# General

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

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

**Page:** 957

---

## [Create simple if then flow](https://discourse.nodered.org/t/create-simple-if-then-flow/2002)

<div class="topic-metadata">

**Author:** [@hermann1514](https://discourse.nodered.org/u/hermann1514)\
**Replies:** 11\
**Last updated:** [3 August 2018 13:41 UTC](https://discourse.nodered.org/t/create-simple-if-then-flow/2002 "2018-08-03T13:41:56Z")

</div>

Hello, I've been trying to build a simple IF THEN logic for a few days now. But do not get it. The idea is that if one value is over 40 and the other value is "ON" something should be done. Somewhere is still the worm i…

---

## [Coding functions](https://discourse.nodered.org/t/coding-functions/2028)

<div class="topic-metadata">

**Author:** [@kaffikanne](https://discourse.nodered.org/u/kaffikanne)\
**Replies:** 4\
**Last updated:** [3 August 2018 12:40 UTC](https://discourse.nodered.org/t/coding-functions/2028 "2018-08-03T12:40:54Z")

</div>

Hi i am trying to get at timer function to work, i have tried something like this: var a = msg.payload; var myVar; if ( a === true){ myFunction(); } function myFunction() { myVar = setTimeout(alertFunc, 3000); } …

---

## [Wipe and re-install NodeRed on windows](https://discourse.nodered.org/t/wipe-and-re-install-nodered-on-windows/2016)

<div class="topic-metadata">

**Author:** [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Replies:** 3\
**Last updated:** [3 August 2018 12:10 UTC](https://discourse.nodered.org/t/wipe-and-re-install-nodered-on-windows/2016 "2018-08-03T12:10:31Z")

</div>

I seem to be having issues updating a node (Blocky) on my Win10 machine so I'd like to nuke it from orbit and start again What to I need to do to remove it? Simply delete c:\\users\\Simon.node-red folder ? (having made …

---

## [HTTP Response Node Use, Sigfox Downlink](https://discourse.nodered.org/t/http-response-node-use-sigfox-downlink/2001)

<div class="topic-metadata">

**Author:** [@svi](https://discourse.nodered.org/u/svi)\
**Replies:** 8\
**Last updated:** [3 August 2018 11:34 UTC](https://discourse.nodered.org/t/http-response-node-use-sigfox-downlink/2001 "2018-08-03T11:34:03Z")

</div>

I receive an HTTP Post, depending of the packet type received I should send back a packet. HTTP Response is thought to send this packet, or only is an automatic answer with code type 200? I have tried this node in my …

---

## [Re-use connections for http-request](https://discourse.nodered.org/t/re-use-connections-for-http-request/1956)

<div class="topic-metadata">

**Author:** [@Archness](https://discourse.nodered.org/u/Archness)\
**Replies:** 3\
**Last updated:** [3 August 2018 07:27 UTC](https://discourse.nodered.org/t/re-use-connections-for-http-request/1956 "2018-08-03T07:27:18Z")

</div>

Hi, I'm working on building out some flows using the http-request nodes to download JSON payloads from an API. This API has data that changes every ~5 minutes and it takes ~2500-5000 calls to download all of the data (…

---

## [Help with some use of the SWITCH node](https://discourse.nodered.org/t/help-with-some-use-of-the-switch-node/2023)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [3 August 2018 06:50 UTC](https://discourse.nodered.org/t/help-with-some-use-of-the-switch-node/2023 "2018-08-03T06:50:11Z")

</div>

The switch node allows you to switch the output depending on the input stream. I have found there is an "If all else" which is used if none of the parameters are met. But the situation has now arisen that I want a mess…

---

## [Node Red on PI. Improving reliability and recoverability](https://discourse.nodered.org/t/node-red-on-pi-improving-reliability-and-recoverability/2020)

<div class="topic-metadata">

**Author:** [@Erbachm](https://discourse.nodered.org/u/Erbachm)\
**Replies:** 1\
**Last updated:** [3 August 2018 05:12 UTC](https://discourse.nodered.org/t/node-red-on-pi-improving-reliability-and-recoverability/2020 "2018-08-03T05:12:24Z")

</div>

I'm at the point where I am looking for ways to improve the reliability and reduce time to recover Node Red on my Pi. Here's what I'm thinking of as a starting point. Move the userDir and nodesDir directories onto USB …

---

## [Query Editor not updating query](https://discourse.nodered.org/t/query-editor-not-updating-query/1940)

<div class="topic-metadata">

**Author:** [@TomMcAvoy](https://discourse.nodered.org/u/TomMcAvoy)\
**Replies:** 14\
**Last updated:** [3 August 2018 01:06 UTC](https://discourse.nodered.org/t/query-editor-not-updating-query/1940 "2018-08-03T01:06:00Z")

</div>

Hi Guys - brand new node red use I intsalled ODBC driver UNixODBC and it works using node-odbc I wanted to use node-red-contrib-odbc to connect to sybase and run a query However I have the following l- the query canno…

---

## [TCS34725 On Raspberry Pi](https://discourse.nodered.org/t/tcs34725-on-raspberry-pi/1949)

<div class="topic-metadata">

**Author:** [@bbpogul](https://discourse.nodered.org/u/bbpogul)\
**Replies:** 7\
**Last updated:** [3 August 2018 01:00 UTC](https://discourse.nodered.org/t/tcs34725-on-raspberry-pi/1949 "2018-08-03T01:00:30Z")

</div>

I am having issues pulling data from RGB sensor using Raspberry pi Zero. can anyone help me out with a sample code . this is my first post sorry for any wrong posting issues. \[{"id":"466a72cc.9b04fc","type":"tab","lab…

---

## [Create a flow to export a flow to github](https://discourse.nodered.org/t/create-a-flow-to-export-a-flow-to-github/2017)

<div class="topic-metadata">

**Author:** [@BlinkScooby](https://discourse.nodered.org/u/BlinkScooby)\
**Replies:** 3\
**Last updated:** [2 August 2018 23:45 UTC](https://discourse.nodered.org/t/create-a-flow-to-export-a-flow-to-github/2017 "2018-08-02T23:45:20Z")

</div>

Hey guys. I have been trying to workout a way to backup my flows. I know there is a way where you can backup the files off the filesystem. However I do not want that just incase of a crash. I would like to have them bac…

---

## [Unable to use nodes after install](https://discourse.nodered.org/t/unable-to-use-nodes-after-install/2005)

<div class="topic-metadata">

**Author:** [@E.Strobel](https://discourse.nodered.org/u/E.Strobel)\
**Replies:** 12\
**Last updated:** [2 August 2018 15:45 UTC](https://discourse.nodered.org/t/unable-to-use-nodes-after-install/2005 "2018-08-02T15:45:55Z")

</div>

After installing a few new nodes, I am unable to use them. When I go into "Manage Palette", I can see they are installed but the small box to the left of their title is grayed out. I have rebooted my pi after the install…

---

## [Using AngularJs for node interface](https://discourse.nodered.org/t/using-angularjs-for-node-interface/1966)

<div class="topic-metadata">

**Author:** [@CatalinFetoiu](https://discourse.nodered.org/u/CatalinFetoiu)\
**Replies:** 8\
**Last updated:** [2 August 2018 14:11 UTC](https://discourse.nodered.org/t/using-angularjs-for-node-interface/1966 "2018-08-02T14:11:53Z")

</div>

Hello, Is there an example of how to use AngularJs for building the UI of a node? I am talking about using it in the .html file associated with a node, because I did not manage to find an example about this. Thank you …

---

## [Allow only one instance of a config node \[solved\]](https://discourse.nodered.org/t/allow-only-one-instance-of-a-config-node-solved/2004)

<div class="topic-metadata">

**Author:** [@Dr.legendaddy](https://discourse.nodered.org/u/Dr.legendaddy)\
**Replies:** 2\
**Last updated:** [2 August 2018 12:21 UTC](https://discourse.nodered.org/t/allow-only-one-instance-of-a-config-node-solved/2004 "2018-08-02T12:21:22Z")

</div>

Hello everybody! I was wondering if it was somehow possible to build a config node that allows only one instance of itself at any time. Maybe there is some obvious way but my google and forum research did'nt yield anyth…

---

## [Stuck with delay node](https://discourse.nodered.org/t/stuck-with-delay-node/1987)

<div class="topic-metadata">

**Author:** [@dystechnic](https://discourse.nodered.org/u/dystechnic)\
**Replies:** 2\
**Last updated:** [2 August 2018 08:26 UTC](https://discourse.nodered.org/t/stuck-with-delay-node/1987 "2018-08-02T08:26:51Z")

</div>

Hi, I am running into an issue with a function i thought was rather simple. But it drives me mad :wink: I am trying to change the state of a lamp, and that works fine until I add a delay node. This is my function (sim…

---

## [Exec node error when running terminal commands](https://discourse.nodered.org/t/exec-node-error-when-running-terminal-commands/1839)

<div class="topic-metadata">

**Author:** [@mshaz](https://discourse.nodered.org/u/mshaz)\
**Replies:** 19\
**Last updated:** [1 August 2018 23:13 UTC](https://discourse.nodered.org/t/exec-node-error-when-running-terminal-commands/1839 "2018-08-01T23:13:49Z")

</div>

i have error when using exec node to run commands . It works on the terminal. It streams video to youtube. Can anyone help me how to run commands from nodered? Thank you

---

## [iNSERT CSV DATA IN MS ACCESS](https://discourse.nodered.org/t/insert-csv-data-in-ms-access/1985)

<div class="topic-metadata">

**Author:** [@rbauwens3263](https://discourse.nodered.org/u/rbauwens3263)\
**Replies:** 2\
**Last updated:** [1 August 2018 20:32 UTC](https://discourse.nodered.org/t/insert-csv-data-in-ms-access/1985 "2018-08-01T20:32:53Z")

</div>

I am trying to insert an CSV string into an MS ACCESS DB-Base - any idea which NODE to use ?

---

## [Debug Window Control](https://discourse.nodered.org/t/debug-window-control/1973)

<div class="topic-metadata">

**Author:** [@jfehl](https://discourse.nodered.org/u/jfehl)\
**Replies:** 1\
**Last updated:** [1 August 2018 15:28 UTC](https://discourse.nodered.org/t/debug-window-control/1973 "2018-08-01T15:28:33Z")

</div>

Looking for help on controlling my debug window. If I have a message in the debug window and am trying to investigate it, sometimes it will just disappear. Is there a way to freeze the pane so messages can't escape fro…

---

## [NR no longer works on some remote machines](https://discourse.nodered.org/t/nr-no-longer-works-on-some-remote-machines/1967)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 7\
**Last updated:** [1 August 2018 11:16 UTC](https://discourse.nodered.org/t/nr-no-longer-works-on-some-remote-machines/1967 "2018-08-01T11:16:47Z")

</div>

Now quite as bad as my other post where I thought I had killed the remote machine. I was going through updating the machines and NR. (Too many different versions to be nice.) Some/most updated nicely. A few didn't. …

---

## [The most basic of questions](https://discourse.nodered.org/t/the-most-basic-of-questions/1961)

<div class="topic-metadata">

**Author:** [@TheRiddler](https://discourse.nodered.org/u/TheRiddler)\
**Replies:** 7\
**Last updated:** [1 August 2018 09:24 UTC](https://discourse.nodered.org/t/the-most-basic-of-questions/1961 "2018-08-01T09:24:58Z")

</div>

I'm sure the answer to this is so simple yet my lack of programming knowledge is letting me down. I want to build a flow that collects the bollean status from the Switch component on a dashboard and passes that status, …

---

## [Using "moment" node. Not quite there](https://discourse.nodered.org/t/using-moment-node-not-quite-there/1962)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 2\
**Last updated:** [1 August 2018 07:51 UTC](https://discourse.nodered.org/t/using-moment-node-not-quite-there/1962 "2018-08-01T07:51:09Z")

</div>

The MOMENT node is supposed to help with date/time formatting. I am wanting to Human readable timestamp a message and write it to a file with other data. This is the flow, and it nearly gets the right time: Local date…

---

## [JOIN node behavior in manual mode](https://discourse.nodered.org/t/join-node-behavior-in-manual-mode/741)

<div class="topic-metadata">

**Author:** [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Replies:** 3\
**Last updated:** [1 August 2018 07:39 UTC](https://discourse.nodered.org/t/join-node-behavior-in-manual-mode/741 "2018-08-01T07:39:06Z")

</div>

I want to use the attached flow to join the payloads (into an array) from the incoming messages until the point I force the completion by pressing an inject node. This is the expected behavior of the join node: “If a m…

---

## [Why am I not getting this? msg.(stuff)](https://discourse.nodered.org/t/why-am-i-not-getting-this-msg-stuff/1954)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 4\
**Last updated:** [1 August 2018 02:08 UTC](https://discourse.nodered.org/t/why-am-i-not-getting-this-msg-stuff/1954 "2018-08-01T02:08:54Z")

</div>

I have a function node. It has this in it. var msg2 = { payload:"", background:"red"}; return \[msg,msg2\]; the second output goes to a button and it sets the colour. (Derived from msg.background) I am messing about …

---

## [Node-RED Web UI loads only partially](https://discourse.nodered.org/t/node-red-web-ui-loads-only-partially/1953)

<div class="topic-metadata">

**Author:** [@schnawel007](https://discourse.nodered.org/u/schnawel007)\
**Replies:** 0\
**Last updated:** [31 July 2018 23:48 UTC](https://discourse.nodered.org/t/node-red-web-ui-loads-only-partially/1953 "2018-07-31T23:48:09Z")

</div>

I installed a node red instance on my rpi today. I did it with docker. nodered: container\_name: nodered restart: always image: 'nodered/node-red-docker:rpi-v8' ports: …

---

## [JSON string to CSV - string](https://discourse.nodered.org/t/json-string-to-csv-string/1907)

<div class="topic-metadata">

**Author:** [@rbauwens3263](https://discourse.nodered.org/u/rbauwens3263)\
**Replies:** 5\
**Last updated:** [31 July 2018 18:57 UTC](https://discourse.nodered.org/t/json-string-to-csv-string/1907 "2018-07-31T18:57:56Z")

</div>

Hello All , I am new to Node-red - i am having a issue to get json to csv , tried the node json2csv but don't get it to work. Main goal is to get via insert Node a json string and then translate it into a csv string, …

---

## [Send Telegram Bot a value only if requested](https://discourse.nodered.org/t/send-telegram-bot-a-value-only-if-requested/1930)

<div class="topic-metadata">

**Author:** [@mvas](https://discourse.nodered.org/u/mvas)\
**Replies:** 2\
**Last updated:** [31 July 2018 16:17 UTC](https://discourse.nodered.org/t/send-telegram-bot-a-value-only-if-requested/1930 "2018-07-31T16:17:58Z")

</div>

Hi everyone, I'm trying to use a Telegram bot to receive a measure from the Serial node. I need to have a continuous measure to use it in the dashboard but I also want to see that measure in my telegram bot when requeste…

---

## [Wider ui dashboard chart](https://discourse.nodered.org/t/wider-ui-dashboard-chart/1931)

<div class="topic-metadata">

**Author:** [@E.Strobel](https://discourse.nodered.org/u/E.Strobel)\
**Replies:** 2\
**Last updated:** [31 July 2018 15:32 UTC](https://discourse.nodered.org/t/wider-ui-dashboard-chart/1931 "2018-07-31T15:32:10Z")

</div>

I could just be missing something simple, but is there a way to make a chart wider on the dashboard? The node seems to limit me to just 6 units wide, but infinite units vertically.

---

## [Catch node not working as expected](https://discourse.nodered.org/t/catch-node-not-working-as-expected/1703)

<div class="topic-metadata">

**Author:** [@mannirivera72](https://discourse.nodered.org/u/mannirivera72)\
**Replies:** 4\
**Last updated:** [31 July 2018 15:04 UTC](https://discourse.nodered.org/t/catch-node-not-working-as-expected/1703 "2018-07-31T15:04:21Z")

</div>

Hello, I'm new on this so I'm not sure what could be wrong. I'm using a flow to insert data from a http form into a table in a postgresql database. My problem is that I wanted to use the "catch node" so if the user ente…

---

## [Write a "function" if/then/else with 2 variables](https://discourse.nodered.org/t/write-a-function-if-then-else-with-2-variables/1925)

<div class="topic-metadata">

**Author:** [@maxmueller50](https://discourse.nodered.org/u/maxmueller50)\
**Replies:** 4\
**Last updated:** [31 July 2018 13:51 UTC](https://discourse.nodered.org/t/write-a-function-if-then-else-with-2-variables/1925 "2018-07-31T13:51:04Z")

</div>

hi I'm still a "greenhorn" and have to learn, I known, but I have a problem and will ask for help :face\_with\_raised\_eyebrow: may following model/example: I want make a inhibitor, this means, as long the "counter" is…

---

## [Change Payload include Array](https://discourse.nodered.org/t/change-payload-include-array/1911)

<div class="topic-metadata">

**Author:** [@kimou](https://discourse.nodered.org/u/kimou)\
**Replies:** 2\
**Last updated:** [31 July 2018 06:34 UTC](https://discourse.nodered.org/t/change-payload-include-array/1911 "2018-07-31T06:34:26Z")

</div>

My payload is like this { "deviceId":"B42EB8", "time":"2018-07-30T14:46:31.872257Z", "\_msgid":"bca8ce3a.2962b", "seq":"", "dataView":"", "enters":9866, "exits":11165, "type":"string", "unit":"", "recep":"" "i…

---

## [Error catching and a function node to indicate errors](https://discourse.nodered.org/t/error-catching-and-a-function-node-to-indicate-errors/1878)

<div class="topic-metadata">

**Author:** [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Replies:** 8\
**Last updated:** [31 July 2018 04:00 UTC](https://discourse.nodered.org/t/error-catching-and-a-function-node-to-indicate-errors/1878 "2018-07-31T04:00:43Z")

</div>

Yes, I know I have been down here before. I have since discovered the function of the "CATCH ALL" node. So, to try and help myself on what is going on, I thought I would add a bit of extra stuff on that part of the flo…

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

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