scan your local network for chromecast devices and return the first found.
var scanner = require('chromecast-scanner');
scanner(function(err, service) {
console.log('chromecast %s running on: %s',
service.name,
service.data);
});
npm install chromecast-scanner
MIT