Skip to content

Commit

Permalink
simple examples
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Aug 22, 2013
1 parent 447b34b commit 0ca5b44
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/discover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
var dial = require('../');

dial.on('device', function(device){

console.log(device);

});

dial.discover();
15 changes: 15 additions & 0 deletions examples/youtube.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
var dial = require('../');

dial.on('device', function(device){

device.launch('YouTube', {
v: 'cKG5HDyTW8o'
}).then(function(){
console.log('Watch Your TV!');
}, function(err){
console.error('Something Went Wrong: ', err);
});

});

dial.discover();

0 comments on commit 0ca5b44

Please sign in to comment.