Save information to file out with date/time for each information

I use the node-red-contrib-simpletime for stuff like this to access date info

There are many ways of then adding it in - this is one of the simplest using a template node

[{"id":"4ca03207.2a6e3c","type":"simpletime","z":"4baaf825.5aebd8","name":"","x":440,"y":220,"wires":[["5a62895e.c67b68"]]},{"id":"c444ee44.5e003","type":"inject","z":"4baaf825.5aebd8","name":"","topic":"","payload":"75","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":292,"y":220,"wires":[["4ca03207.2a6e3c"]]},{"id":"5a62895e.c67b68","type":"template","z":"4baaf825.5aebd8","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{{payload}} {{mydate}}","output":"str","x":588,"y":220,"wires":[["2ac473f.63ada8c"]]},{"id":"2ac473f.63ada8c","type":"debug","z":"4baaf825.5aebd8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":752,"y":220,"wires":[]}]

image

image

1 Like