Cumulative Electricity reading

Using the " Get a resource’s current readings" endpoint I can get the cumulative reading for gas but not for electricity - the API returns current Watts.

Is there an endpoint which will get me the Cumulative Electricity reading?

Comments

  • edited September 2022

    I'm only just starting to get to grips with the API, but have you tried something like:

    /api/v0-1/resource/{id}/readings?from=2022-09-30T00:00:00&to=2022-09-30T23:59:59&period=P1D&offset=-60&function=sum

    The basis for that came from one of the documentation PDFs, where it also covers the different options (eg P1D is data for 1 day).

Sign In or Register to comment.