Skip to content

How to calculate surplus and other "main factors"? #44

Description

@UnbekanntesPferd

Hello!
I'm using this brilliant library to connect to my Wattpilot Wallbox. The connection via websocket is working fine, I'm receving all the data, but am a bit lost on how to get or calculate the numbers I need.
My goal is to more or less rebuild what can be seen in the app under "details":

Image

There are 2 numbers, that I marked, where I'm completely confused as it looks like the numbers are different, when a car is connected (loading or not) or no car is connected. E.g. the surplus (marked as "1" in the image) I thought it would be saved in "tpa", but when the car is not loading the tpa is more or less random (e.g. at the moment 4345.359863) and never updated via deltaStatus. While the app shows correctly 0.0, as there is no surplus.
Then I thought the surplus would be in "fbuf_pGrid", but that number goes done to around 0, when a car is connected.

Anyone who can help me here?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions