Page 1 of 1

Save log data to NAS

Posted: Wednesday 01 February 2023 22:31
by peterbos
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

Code: Select all

http://192.168.1.162:8080/json.htm?type=graph&sensor=counter&idx=1&range=week
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

Re: Save log data to NAS

Posted: Thursday 02 February 2023 12:17
by waltervl
Check this topic: viewtopic.php?t=30725

Re: Save log data to NAS

Posted: Thursday 02 February 2023 20:58
by peterbos
Hi Walter,

You are the "alwetende", thanks!

Peter