Skip to content

Get total energy generated by a pv system in their lifetime #10

@shypard

Description

@shypard

Hi all!

Posting this here, as I am hoping to get some dev support for the VRM API :) I already created a post on the Victron community forums, but could not get proper help for my problem [1].

I would like to fetch the overall energy a pv system has generated in their lifetime, in an hourly interval via the Rest API. This is needed as I do want to do that programmatically. I don't have direct access to the devices, only via the API.

According to the documentation, it is possible to get the energy information for a defined interval (start-end) and granularity using the following endpoint: v2/installations/{installation ID}/stats.

This however is only available for the last 5 years. If the system is older than 5 years, any information about previously generated energy would be lossed.

Unfortunately also the "v2/installations/1039/overallstats" endpoint only returns datapoints, which are for the current year (or month, or current week).

The question is now, is there a possibility to get the overall energy, generated by the pv system? Or would I need to use the "v2/installation/{installation ID}/stats" endpoint for the sum of the last 5 years?

[1] https://community.victronenergy.com/questions/152467/get-total-energy-generated-in-llifetime.html

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