Thanks,
Mark
Hi Mark,
What you can do is search Xively for either username or tag (both should be airqualityegg I believe). It's been a while since I've done anything with this, but when I was this worked for me fine. I was using the Cosm API, although that REST url still works, I assume it works with the Xively API. I was sending a JSON request via javascript and the "username" tag search "airqualityegg" gets all eggs from Xively.
Hope that helps.
Thanks Adam. I eventually figued it out and have been enhancing the site from my own mirror at http://airqualityegg.askopendata.com/ - If whoever is in charge of the main site wants to merge, feel free to just look at my fork and ask me any questions you might have.
Mark
--
You received this message because you are subscribed to the Google Groups "#AirQualityEgg" group.
To unsubscribe from this group and stop receiving emails from it, send an email to airqualityeg...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Honestly I'm not even sure how that device:type=airqualityegg tag happens. Something about Xively device templates or something associated with provisioning?
Fwiw, there are actually 958 or so activated Eggs according to the Xively management interface, and 1261 registered Eggs.
I agree with getting a better handle on the problem before doing a pull request.
Thanks again for your help!
Vic
You received this message because you are subscribed to a topic in the Google Groups "#AirQualityEgg" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/airqualityegg/I7PkGmBBk_o/unsubscribe.
To unsubscribe from this group and all its topics, send an email to airqualityeg...@googlegroups.com.
Cool, does it check for error responses from Xively API and retry on error. I've seen it respond badly with an error message in JSON when consecutive queries are issued. The need for a lot of retries was why I thought client-side iteration might be a more tractable solution.
Kind Regards,
Vic
--
Happy to move the conversation to Git-Hub, but it would seem that capability is disabled in the xively repo. I'd just as soon keep it going here for continuity and though.
On the back end it's pretty clunky. As user airqualityegg I go to https://xively.com/manage/somerandomcharacters?activated=true&per_page=900
And that works (lists egg serial numbers in tabular format) sometimes and sometimes it gives an internal server error. Instead of 900 using 250 or less seems to work consistently.
I don't know what mapped=true means, I don't see it documented in the REST API anywhere.
Regards,
Vic
I've created a Pull request to the Xively repository here: https://github.com/xively/airqualityegg.com/pull/5. The pull request is almost exactly your current master branch, so hopefully it just works :-). The ball is in Xively's court to accept the pull request and deploy the update at this point. Thanks again for making this contribution, it's a big help!
Warm Regards,
Vic