Current readings

edited February 22 in API Info

I have had significant success with the API and can return readings from chosen dates and times, tariff information, first-time and last-time BUT have a few issues and the API documentation doesn't help:-

1. current returns no data. Here is the request and return, which does the same for any resource:-

https://api.glowmarkt.com/api/v0-1/resource/793b5726-a535-459f-9ad5-f144f678d165/current

[]


2. meterread doesn't seem to be valid. Here is the request and return, which does the same for any resource:-

https://api.glowmarkt.com/api/v0-1/resource/793b5726-a535-459f-9ad5-f144f678d165/meterread

System.Net.WebException: The remote server returned an error: (400) Bad Request.


3. how are the aggregate readings supposed to work? I assumed if I requested daily readings over a number of days with the sum option I would get the total otherwise what is the use of it? Here is the request and return, which does the same for any resource:-

https://api.glowmarkt.com/api/v0-1/resource/793b5726-a535-459f-9ad5-f144f678d165/readings?from=2021-02-19T00:00:00&to=2021-02-21T23:59:59&period=P1D&offset=-60&function=sum

[

 [

  1613692800,

  2.863

 ],

 [

  1613779200,

  2.806

 ],

 [

  1613865600,

  0.481

 ]

]


Many thanks for any suggestions

Comments

  • I too a finding the same issue with the 'meterread' and 'current' query strings.

    Has anyone found a workaround?

    It would be good if these options could be fixed - or the API documentation updated to remove them.

Sign In or Register to comment.