Error Write file

hi all
From temperature values (which comes from Logo siemens) I created an object (with two attributes :date and temperature) using this function:
var hoy=new Date
var temperature={
fecha: hoy.getDate().toString()+"-"+hoy.getMonth().toString()+"-"+hoy.getFullYear().toString()+" "+hoy.getHours().toString()+":"+hoy.getMinutes().toString(),
temperatura:(msg.payload*2.5-500)/10
}
return temperature
i want to register this data in a csv file and I used write data node but for some reason this does not work.

Something seems to be going wrong.

You have not told us:

  1. The name of the file.
  2. It's location on your computer.
  3. Whether it already exists.
  4. What you expect to see in the file.
  5. What you actually see in the file.
  6. Any error messages.
  7. What kind of node is this "write data node"
  8. How it is set up.

If we had this information we would be better equipped to advise you.

hi @jbudd
I attached the js file.
BR
Walter
flows.json (4.1 KB)