URL: https://brewspy.app/api/export
Method: Either a POST request with the parameters as a JSON in the request body, or a GET with all the parameters appended to the url, prefer POST so you don't expose your token
Parameters:
token: (required) Your device API token - can be found in the configuration window of the device
start: Start time/date.
- This can either be an absolute day (format: yyyyMMdd, eg 20230105) month (format: yyyyMM, eg 202301) or year (eg 2022)
- Or a time period the current time, format -Nx
where N is a number and x is one of (m, h, d, M, y) which correspond to (minutes, hours, day, months, years)
so: last 15 minutes would be: -15m
end: End time, defaults to now. Same format as start
sort: asc or desc, default desc
format: csv, json or xml, default csv
limit:Number of results, maximum value is 1000, default is 1000
page:The page of results to return
For example to retrieve the latest reading in json format:
https://brewspy.app/api/export?token=
All readings from last day:
https://brewspy.app/api/export?token=