Skip to content

Instantly share code, notes, and snippets.

@thatguydan
Created October 9, 2012 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thatguydan/3856653 to your computer and use it in GitHub Desktop.
Save thatguydan/3856653 to your computer and use it in GitHub Desktop.
Pulling out humidity data example
ninja.devices('humidity',function(err,devices) {
// Returns all your humidity devices as guid => metadata
// So we iterate over each humidity device
for (var guid in devices) {
ninja.device(guid).data(function(err,data) {
// …data for that humidity sensor
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment