Dymerz / SMA-SunnyBoy

A simple data retrieving from SMA SunnyBoy
https://sma-sunnyboy.readthedocs.io/en/latest/sma_sunnyboy.html
MIT License
39 stars 9 forks source link

Request about logger #1

Closed riki-dexter closed 4 years ago

riki-dexter commented 5 years ago

Hi, do you know how to interpret value received from getLogger? I'd like to draw production chart but values received from getLogger have to be manipulated before drawing. Do you know how? Thank you

Dymerz commented 5 years ago

Hi, getLogger() return an array of dictionary values: [{'t': 1566701100, 'v': 9730397}, {'t': 1566701400, 'v': 9730397}]

Sadly you have to process yourself, these values are directly returned by the SMA web server, and it would take a lot of resources to calculate each point.

For myself, I call every 5 minutes the getValue(), process the data and store in a database. I only use getLogger() for recovery purposes (eg: in case of power interruption).

Sorry for the late answer, I've just seen that notifications were disabled on this repo. 😞

Dymerz commented 4 years ago

Due to the innactivity I'm closing this issue.