mvysny / solar-controller-client

Communicates with a solar controller (Renogy Rover) over RS232/USB and retrieves statistics
MIT License
2 stars 0 forks source link

Implement automatic database prunning #2

Closed mvysny closed 2 years ago

mvysny commented 2 years ago

Add a configuration which would periodically (e.g. at midnight) delete old records (e.g. year-old records) from the database.

Question is whether to do this for a CSV. Most probably not: CSV is not intended for production anyway: #3

This will therefore only apply to sqlite: #1