awattar-backtesting / awattar-backtesting.github.io

A tool to visualize your electricity usage with aWATTar
MIT License
20 stars 11 forks source link

Support for Kärnten Netz #1

Closed MaGermadnik closed 1 year ago

MaGermadnik commented 1 year ago

Hi, great Idea! can you please add support for https://kaerntennetz.at/. See my example, attached. KNetzBeispiel.csv

thank you!

lewurm commented 1 year ago

Thanks @MaGermadnik. I've added support for Kärnten Netz, please confirm if it works.

Additionally it would be great if you could provide steps how to obtain this file (and if not that clear, maybe include screenshots 🙂 ). Something similar to what I've added for NetzNÖ already would be great.

MaGermadnik commented 1 year ago

@lewurm thanks! the step by step tutorial below.

1) Gehe auf https://kaerntennetz.at/ 2) Kundenportal 3) Einloggen 4) "Profildownload" unter "meine.messwerte" auswählen 5) Richtigen Zähler auswählen. Achtung, nicht den Einspeisepunkt wählen. 6) Download (es kann kein Zeitraum ausgewählt werden)

KNetzProfildownload

MaGermadnik commented 1 year ago

@lewurm Unfortunately, at Kärnten Netz, the timeframe cannot be selected. The data of the last 3 years is always downloaded. The file size is approximately 5MB. When I try this, I see the following error in the browser console and cant see any chart.

KNetzBigFileUpload

It would be great to select a specific month (or year) or maybe the simplest solution, you are processing only the last X days in the file? (note: the newest entries are at the end of the file)

lewurm commented 1 year ago

uhh, good catch @MaGermadnik. I pushed a fix that avoids using varargs, and instead iterates over the byte buffer. Could you try again?

MaGermadnik commented 1 year ago

@lewurm Great, it is working now :) I found another small bug, but it is not related to KNetz, so I will open a new issue. Thanks, this is realy helpful for me :)