Files
AI-on-the-edge-device/tools/logfile-tool
2022-11-29 20:46:37 +01:00
..
2022-11-29 20:46:37 +01:00
2022-11-29 20:46:37 +01:00
2022-11-29 20:46:37 +01:00
2022-11-29 20:46:37 +01:00

Gasmeter Value History Downloader

This small tool downloads the datafiles (*.txt, before V13.0.1) or valuefiles (*.csv, since V13.0.1) from your ESP32 and stores the last value of the day in a *.csv file.

To use this tool you need to activate the DataLogging in your configuration (Configuration / Data Logging / DataLogActive). I go with 30 days of retention in days.

It downloads only the past datafiles (yesterday and older, not the actual day).

You can define the max. number of datafiles to download (beginning from newest [yesterday]).

I wrote this tool to get a chart of the daily gas consumption to optimize my gas powered heating.

Variables to define by yourself:

  • URL to Logfile-Path on Device: "http://ESP32-IP-Address/fileserver/log/"
  • Download datafiles to: enter a valid directory, e.g. "D:\Gaszaehler\Auswertung\Log-Downloads\"
  • Output CSV-File: enter a valid directory, e.g. "D:\Gaszaehler\Auswertung\DailyValues.csv"
  • Download past # days: enter the max. number of days you want to download (<= your datafiles retention value in your device configuration)

Feel free to optimize and modify it.