question

jordansilverma avatar image
jordansilverma asked

Get latest value from API for a particular statistic

Hi all,

I would like to get only the latest SOC value for an instance. I can use the following call:

https://vrmapi.victronenergy.com/v2/installations/[idSite]/widgets/BatterySummary?instance=[idInstance]

but this gives me data for all the attributes. I would like to only get the SOC attribute but so far I can't find a way of doing so. I was hoping this would work but it doesn't seem to be the case:

https://vrmapi.victronenergy.com/v2/installations/[idSite]/widgets/BatterySummary?attributeCodes[]=SOC&instance=[idInstance]

The reason is because I will be operating in a low data environment and want to send/receive as little data as possible.

Thanks in advance for the help

api dc system
2 |3000

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

1 Answer
keith-sauvant avatar image
keith-sauvant answered ·

I have exactly the same question: how can we get the latest value for one measurement? Don't want to download and parse kilobytes of data for that every time.




2 |3000

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

Related Resources

Additional resources still need to be added for this topic