water temp & total volume
Hello all. I have Been playing with the API a bit and have generated a couple questions.
I've noticed that the mobile app from Streamlabs has the ambient temp of the room, but this value is not available in the API. Perhaps there is an undocumented api endpoint? If not, it would be a cool metric to track.
Next up, I'd really like a total gallons between two dates, specifically between when I installed my household water filter and now(). I am currently using "month" with /v1/locations/{locationId}/readings/water-usage and a little math to accomplish this.
However, while the online documentation lists "year" as valid option for groupBy I receive a 400, "ERROR: groupby value must be: month, day, or hour. Please correct the input and make the request again." It's not a big deal to me as month works fine, but the api documentation might need a small update.
Cheers,
Ryan
-
Official comment
Hi Ryan,
Thanks for your post! It looks like you’re interested in retrieving the ambient temperature value that is reported in the Streamlabs App through the API. This value isn’t available in the API just yet, but it’s something we could look into adding in the next release. I will bring it up to our product team and keep you posted.
For your question about retrieving the water usage between two datetimes, you can certainly do that by selecting groupBy = “month” and taking the sum of the months (the way you are currently doing it). However, your point about selecting groupBy = “year” would also work. Not sure why you are receiving the 400 Error. I’ll look into that and reply in this thread.
Thanks,
MosesComment actions
Please sign in to leave a comment.
Comments
2 comments