Conversation
|
Hm... Interesting.
I guess in the downstream project OpenDTU-OnBattery, this quickly blows up in our face when trying to also track solar charge controller data and battery data. |
|
There is a fork that includes charts: https://github.com/RaBa64/OpenDTU-Database |
Oh nice, I didn't know that. With the fork in place it's highly questionable whether it makes sense to include these changes here. Probably not, as the fork also already implements persistent storage. Feel free to close. |
|
@maxfreu I had a short peek at your PR. I am positively impressed by the readability of the code. The API endpoint does only start with This is using four separate classes for 20Min, Hourly, Daily, Monthly Aggregates. I think if we could keep the data in memory in those four ring buffers (!) for a day and only persist the higher two (Daily, Monthly) once a day. I also noticed in your joint implementation with Claude, that it uses the OpenSource |
|
Hi! Thanks for taking a look! Unfortunately I currently have issues connecting to my inverter and don't have the time to advance things here. Your suggestions sound reasonable. Does it make sense to wait for the two PRs you mentioned to be merged? |
Moin!
WARNING: This has been coded by Claude Sonnet 3.7. I just told it that I want nice charts, because I don't have a smart home. This is what I got:
Seems to work quite nicely. I think it screwed up some js configuration files on the go, but I have no clue about web programming.
I think this would make more sense together with an SD card, but so far it works for me. I wonder how long it takes until the memory is full. Certainly this needs more testing; volunteers welcome :)