You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I use an external python script to get weather data from the DWD. I download the data once per day with 10 min resolution.
Now, I want to read the file with vzlogger. In principle, the configuration is working but it only reads the first 32 lines.
This is the log file. Because it reads the first 32 lines again, they are duplicates now. In the first run they have been added. If I delete the first lines from the file, the next ones are added.
Is there are way to make vzlogger read the whole file? I don't want to execute the python script many time because it takes some time (which is mostly overhead and not dependent on the amount of data that I download).
Thanks!
The text was updated successfully, but these errors were encountered:
I had it running now for a few days. It turned out that it is skipping the one further line with every call until the end of the file is reached. However, it never starts reading from the beginning again after reading the whole file.
METER_DETAIL(file, File, "Read from file or fifo", 32),
note that n=max_readings=32, the number on the line:
METER_DETAIL(file, File, "Read from file or fifo", 32),
the vzlogger core accepts a fixed maximum of readings from a meter per call to meter->read(),
which is set to 32 for MeterFile.
you could increase that and recompile,
but note that MeterFile was never intended to import data dumps,
it ahould probably be adjusted to remember the position in the file and return further readings in the next meter->read() call,
instead of resetting to the beginning of the file.
it should probably at least log a wsrning if max_readings is exceeded.
Hi,
I use an external python script to get weather data from the DWD. I download the data once per day with 10 min resolution.
Now, I want to read the file with vzlogger. In principle, the configuration is working but it only reads the first 32 lines.
This is the part of the config:
This is the log file. Because it reads the first 32 lines again, they are duplicates now. In the first run they have been added. If I delete the first lines from the file, the next ones are added.
Is there are way to make vzlogger read the whole file? I don't want to execute the python script many time because it takes some time (which is mostly overhead and not dependent on the amount of data that I download).
Thanks!
The text was updated successfully, but these errors were encountered: