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:
- The name of the file.
- It's location on your computer.
- Whether it already exists.
- What you expect to see in the file.
- What you actually see in the file.
- Any error messages.
- What kind of node is this "write data node"
- 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)
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.