# The file node, change the syntax

**URL:** <https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178>\
**Category:** General\
**Created:** [25 November 2018 11:04 UTC](https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178 "2018-11-25T11:04:46Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [28 November 2018 17:00 UTC](https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178/21 "2018-11-28T17:00:29Z")

</div>

You have not stopped the current running node-red, which is why the port is in use. The commands are

```bash
node-red-stop
node-red-start

```

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [28 November 2018 17:10 UTC](https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178/22 "2018-11-28T17:10:53Z")

</div>

One thing that I did not ask before. Can you possibly share the configuration of the function indicated with the arrow and also add a debug node in its output and share a printscreen that shows what this debug displays in the debug panel ?

 ![puzzle](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5f63720928d654169e5b1298e3d1f3993a1566ba.png)

---

<div class="post-metadata">

**Author:** ![fabien](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@fabien](https://discourse.nodered.org/u/fabien)\
**Post date:** [28 November 2018 17:42 UTC](https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178/23 "2018-11-28T17:42:11Z")

</div>

indeed I did not stop and restart properly, it's done:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/71aa2b3e36cdea83f5c09bd9d958a253d9747598.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/5/5b05882bb757bcba24a6b187a1e98a6b763ac55a.png)  
on the other hand nothing works anymore.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/fe1c66808157a035f2d478d519090154c3ef0a55.png)  
so I created a new page, the node that I installed before disappearing, it does not matter, but once installed it does not work anymore:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/e/e1e424a4155890c1daa6f8eeaa39a322c2b3aee8.png)

---------------AfrikaansAlbanaisAllemandAmhariqueAnglaisArabeArménienAzériBasqueBengaliBiélorusseBirmanBosniaqueBulgareCatalanCebuanoChewaChinois (simplifié)Chinois (traditionnel)CingalaisCoréenCorseCréole haïtienCroateDanoisEspagnolEspérantoEstonienFinnoisFrançaisFrison occidentalGaélique écossaisGalicienGalloisGéorgienGoudjeratiGrecHaoussaHawaïenHébreuHindiHmongHongroisIgboIndonésienIrlandaisIslandaisItalienJaponaisJavanaisKannadaKazakhKhmerKirghizeKurdeLaoLatinLettonLituanienLuxembourgeoisMacédonienMalaisMalayalamMalgacheMaltaisMaoriMarathiMongolNéerlandaisNépalaisNorvégienOurdouOuzbekPachtoPendjabiPersanPolonaisPortugaisRoumainRusseSamoanSerbeShonaSindhiSlovaqueSlovèneSomaliSotho du SudSoundanaisSuédoisSwahiliTadjikTagalogTamoulTchèqueTélougouThaïTurcUkrainienVietnamienXhosaYiddishYorubaZoulouAnglais

[Ouvrir dans Google Traduction](https://translate.google.fr/?um=1&ie=UTF-8&hl=fr&client=tw-ob#fr/en/par%20contre%20plus%20rien%20ne%20fonctionne.)

---

<div class="post-metadata">

**Author:** ![fabien](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@fabien](https://discourse.nodered.org/u/fabien)\
**Post date:** [28 November 2018 18:13 UTC](https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178/24 "2018-11-28T18:13:15Z")

</div>

ok, I reconfigure the nodes, I found the operation.Mai there is still the problem of the syntax  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/1a80efda1f10445dd1fd74f27b514ed4cb5e7e08.png)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [28 November 2018 18:32 UTC](https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178/25 "2018-11-28T18:32:52Z")

</div>

Hi - what is this node set to return ?  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/0/0a01ad3e4be1a72c57926836e1a9c828be835bbc.png)  
It should be a buffer.

Did you try feeding the wire that goes to debug 1 to a dashboard text node ?

---

<div class="post-metadata">

**Author:** ![fabien](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@fabien](https://discourse.nodered.org/u/fabien)\
**Post date:** [28 November 2018 19:48 UTC](https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178/26 "2018-11-28T19:48:08Z")

</div>

yes, at debug 1 there are no worries,  
in fact I start with node-red, and for the intant I make several attempts before embarking on my future project (home automation for my home).  
So I wanted to test the storage node, which will be useful later.  
and in this case it avoids to interoperate the node openweathermap which is limited to 1 interogation every 10 min.

---

<div class="post-metadata">

**Author:** ![fabien](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@fabien](https://discourse.nodered.org/u/fabien)\
**Post date:** [28 November 2018 19:58 UTC](https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178/27 "2018-11-28T19:58:14Z")

</div>

it is a filter function to take only certain data:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/1/1f476ffcb2d3f0f9bd680d375a03f84c3065f744.png)

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [29 November 2018 16:54 UTC](https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178/28 "2018-11-29T16:54:12Z")

</div>

RIght, nothing suspicious with that function node. Well, the last resort would be you sharing your flow so people in the forum can have a look and try running it to see if the issue is replicated. Just remove the API key from openweathermap if it is a paid subscription.

---

<div class="post-metadata">

**Author:** ![fabien](https://avatars.discourse-cdn.com/v4/letter/f/85e7bf/32.png) [@fabien](https://discourse.nodered.org/u/fabien)\
**Post date:** [29 November 2018 17:15 UTC](https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178/29 "2018-11-29T17:15:10Z")

</div>

Thank you for being interested in me.

[Previous page](https://discourse.nodered.org/t/the-file-node-change-the-syntax/5178.md?page=1)
