Created
October 9, 2012 04:40
-
-
Save thatguydan/3856653 to your computer and use it in GitHub Desktop.
Pulling out humidity data example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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