Save log data to NAS
Posted: Wednesday 01 February 2023 22:31
Hi,
When I start my laptop I have a program, written in Lazarus, that reads the latest log data for my gas and electricity use with JSON-commands like The Lazarus program compares the data with the existing csv-logfile on the laptop and adds the new data . This goes well if the last startup was less than seven days ago, since Domoticz clears the log data after a week. If I'm away for more than seven days my log data is lost.
In my network I have a Synology DS120j NAS. Is it possible to have a dzVents script that appends the log data every day (or hour) directly to an existing csv file on the NAS? And if so, is it possible to add the data to an Excel spreadsheet instead of a csv file?
Peter
When I start my laptop I have a program, written in Lazarus, that reads the latest log data for my gas and electricity use with JSON-commands like
Code: Select all
http://192.168.1.162:8080/json.htm?type=graph&sensor=counter&idx=1&range=weekIn my network I have a Synology DS120j NAS. Is it possible to have a dzVents script that appends the log data every day (or hour) directly to an existing csv file on the NAS? And if so, is it possible to add the data to an Excel spreadsheet instead of a csv file?
Peter