
├── LICENSE ├── README.md ├── bg1.png ├── cli └── test.js ├── error.html ├── index.html ├── loading.png └── receiver.html /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Steve Stagg 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | dashcast 2 | ======== 3 | 4 | Chromecast app for displaying dashboard pages 5 | -------------------------------------------------------------------------------- /bg1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stestagg/dashcast/88210196ecdf1505406716b8205a6272d5605cfe/bg1.png -------------------------------------------------------------------------------- /cli/test.js: -------------------------------------------------------------------------------- 1 | var nodecastor = require('nodecastor'), 2 | util = require("util"); 3 | nodecastor.scan() 4 | .on('online', function(d) { 5 | console.log("New device: ", d.id); 6 | d.on('connect', function() { 7 | d.status(function(err, s) { 8 | if (!err) { 9 | console.log('Chromecast status', util.inspect(s)); 10 | d.application('5C3F0A3C', function(err, a) { 11 | if (!err) { 12 | console.log('Application', util.inspect(a)); 13 | a.run('urn:x-cast:es.offd.dashcast', function(err, s) { 14 | if (!err) { 15 | s.send({url: "http://codepen.io/fleeting/full/xklfq/"}); 16 | } 17 | }); 18 | } 19 | }); 20 | } 21 | }); 22 | }); 23 | }) 24 | .on('offline', function(d) { 25 | console.log('Removed device', util.inspect(d)); 26 | }) 27 | .start(); 28 | -------------------------------------------------------------------------------- /error.html: -------------------------------------------------------------------------------- 1 | 2 | 16 |
17 |