question

tomtem avatar image
tomtem asked

API: reading battery to consumer works (Bc), but reading PV power does not, why?

On the dashboard page I can see that my solar panels are for example at a certain point generating 230W, and 11W is being used to charge batteries, the rest is being used in the house (used energy = 230W - 11W = 219W).

Using API call below I can read battery to consumer (not on the image).

https://vrmapi.victronenergy.com/v2/installations/{idSite}/stats?type=live_feed&interval=15mins&start={startDate}&end={endDate}

But how do I read the 2 other values from the dashboard, using API? (in any form is ok: either the live value at the time of request, or some aggregate per 15mins or hour). In other words I want to get the values in red on the image, using API (this is the power from PV, and the power to Batteries)

api-question.jpg

I have tried using a different call below, but again I only get the same battery to consumer results:

https://vrmapi.victronenergy.com/v2/installations/{idSite}/stats?type=kwh

I also tried another call below, and this gives me the value I want in the field 'solar_yield', but only 1 value per day at 12:24 (around noon). Instead I would like either the current live value, or an aggregate per 15mins or hour:

https://vrmapi.victronenergy.com/v2/installations/{}/stats?end={endDate}&interval=15mins&start={startDate}&type=venus"

api-question-3.jpg


Multiplus-IIVRM
api-question.jpg (31.3 KiB)
api-question-3.jpg (42.2 KiB)
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

0 Answers

Related Resources