Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request about logger #1

Closed
riki-dexter opened this issue Feb 9, 2019 · 2 comments
Closed

Request about logger #1

riki-dexter opened this issue Feb 9, 2019 · 2 comments
Labels
question Further information is requested

Comments

@riki-dexter
Copy link

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
Copy link
Owner

Dymerz commented Aug 25, 2019

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

  • 't' is the timestamp of the point.
  • 'v' is the total power production.

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. 😞

Repository owner locked and limited conversation to collaborators Sep 23, 2019
Repository owner unlocked this conversation Sep 23, 2019
@Dymerz Dymerz closed this as completed Sep 23, 2019
@Dymerz
Copy link
Owner

Dymerz commented Sep 23, 2019

Due to the innactivity I'm closing this issue.

@Dymerz Dymerz added the question Further information is requested label Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants