Dashticz - Module - Chromecast

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: htilburgs, robgeerts

Post Reply
aiolos
Posts: 74
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Dashticz - Module - Chromecast

Post by aiolos » Friday 10 November 2017 18:33

I started using the dashticz screen a while ago, and missed an easy way to cast directly to my chromecast audio. So I created a module, highly inspired by the streamplayer that is already integrated (it uses even the same streams from the config)

It looks like this:
Screen Shot 2017-11-10 at 16.25.01.png
Screen Shot 2017-11-10 at 16.25.01.png (159.91 KiB) Viewed 377 times
The play button is changed to the default cast button from google. When clicking on it, the default casting screen from chrome pops up, where you can select the available chromecasts in your network. The arrows on the left let you select the streams, on the right side the volume buttons are available.

The block is available as 'chromecast' in the config, for example

Code: Select all

columns[3]['blocks'] = ['chromecast'];
The code is available on github: https://github.com/aiolos/dashticz_v2/tree/chromecast

Rob, I can make a pull request to integrate it, just let me know. It might need some tweaks for the sizes of the elements, since I use dashticz in portrait, so only one column.
Contributor to Dashticz
More on my Github profile

User avatar
robgeerts
Posts: 1141
Joined: Saturday 24 January 2015 23:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: Son, NL
Contact:

Re: Dashticz - Module - Chromecast

Post by robgeerts » Saturday 11 November 2017 16:52

Thanks for your efforts!!
You can create a pull request on the beta branch!
Creator of Dashticz, Do you appreciate my work and want to buy me a beer? You can send Bitcoins to 17Qy4bsLM9J238fCZt5kaRc2bD5S1Aw6og or donate via PayPal: https://www.paypal.me/robgeerts

freakshock
Posts: 56
Joined: Friday 14 April 2017 13:39
Target OS: NAS (Synology & others)
Domoticz version:
Location: The Netherlands
Contact:

Re: Dashticz - Module - Chromecast

Post by freakshock » Sunday 12 November 2017 16:09

Nice addon! Works great on Chrome but unfortunately not on the browser app I use on my tablet (Fully Kiosk Browser). Does it only support chrome?

aiolos
Posts: 74
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi
Domoticz version: stable
Location: Sale, UK
Contact:

Re: Dashticz - Module - Chromecast

Post by aiolos » Sunday 12 November 2017 16:23

I guess it only works in Chrome, since that natively supports casting. I have not really looked into support on other browsers. I also noticed that if you add a direct link to the page on the home screen, the browser first needs to be started.
Contributor to Dashticz
More on my Github profile

User avatar
gijsje
Posts: 67
Joined: Saturday 19 August 2017 14:28
Target OS: Raspberry Pi
Domoticz version:
Location: Berkel Enschot, NL
Contact:

Re: Dashticz - Module - Chromecast

Post by gijsje » Wednesday 15 November 2017 13:12

Works great even on the google home
Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests