question

Kitaigorod Alexandru avatar image
Kitaigorod Alexandru asked

Timestamp format in VRM API

Hi,
I am trying to understand how to use the VRM API, but can't figure out timestamps.
For example, if I use the https://vrmapi.victronenergy.com/v2/installations/{idSite}/stats endpoint, I get some results for "Pc", "Bc" and "Gc" codes.

1720279139011.png


So, I take some timestamps from the response:

  • 1720191903000 which translates to Fri Jul 05 2024 15:05:03 UTC
  • 1720195503000 which translates to Fri Jul 05 2024 16:05:03 UTC

and try the call again, but I get an empty response. I tried switching them up, but it's the same.

1720279342734.png


Couldn't find an example or some documentation specifying how the filtering works.
What am I doing wrong?

Thank you for your help.


VRMapivrm-api
1720279139011.png (24.4 KiB)
1720279342734.png (15.5 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.

1 Answer
Kitaigorod Alexandru avatar image
Kitaigorod Alexandru answered ·

The answer is I had to slash the last three 0s.

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