This is currently not provided by Xively APIv2, you will indeed need to check the values manually.
Is there an API call for searching datastreams?
Question
In the Xively API, I found a way to search for feeds, but what I really wanted is a way to search within datastreams. For example, I want the most recent five datapoints that == 1. I looked at the "historical data" API and could not find such functionality. Do I have to write the search algorithm manually?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow