Save log data to NAS

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
peterbos
Posts: 93
Joined: Saturday 07 November 2020 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Save log data to NAS

Post 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
User avatar
waltervl
Posts: 6691
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Save log data to NAS

Post by waltervl »

Check this topic: viewtopic.php?t=30725
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
peterbos
Posts: 93
Joined: Saturday 07 November 2020 21:41
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Save log data to NAS

Post by peterbos »

Hi Walter,

You are the "alwetende", thanks!

Peter
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest