I have just started to work a bit more intensively with Node Red, as part of a project. In the project are many temperature sensors (DS18B20) on a machine and measure the temperature for several weeks.
For this I have a raspi with Node Red, which communicate via a router with the microcontrollers NodeMCU ESP8266. Every 5 min the temperature is measured. Because I have a lot of sensors and the measurements last for several weeks, I don't want to copy the data from the raspi to the PC every evening via the software WinSCP by drag&drop and then delete the data on the raspi again.
Surely there is a way to write a function that writes the data into a new folder from midnight and no more data must be moved manually into a folder?
So, as a result, I should have about 15 folders after the measurements, each containing the measurement data from each sensor from that day.
Unfortunately I have no idea how to create this function or what I would have to write in the function.
PS: The raspi has no access to the internet, therefore currently no time, that I still have to realize with a RTC module.
I would be very grateful if you could help me.