Dashticz - Module - Chromecast

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
aiolos
Posts: 127
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Nieuwegein, NL
Contact:

Dashticz - Module - Chromecast

Post by aiolos »

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 4406 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
robgeerts
Posts: 1273
Joined: Saturday 24 January 2015 22:12
Target OS: NAS (Synology & others)
Domoticz version: 3.7067
Location: NL
Contact:

Re: Dashticz - Module - Chromecast

Post by robgeerts »

Thanks for your efforts!!
You can create a pull request on the beta branch!
freakshock
Posts: 64
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 »

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: 127
Joined: Sunday 13 September 2015 18:58
Target OS: Raspberry Pi / ODroid
Domoticz version: stable
Location: Nieuwegein, NL
Contact:

Re: Dashticz - Module - Chromecast

Post by aiolos »

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: 132
Joined: Saturday 19 August 2017 14:28
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: Berkel Enschot, NL
Contact:

Re: Dashticz - Module - Chromecast

Post by gijsje »

Works great even on the google home
Thanks
Synology DS218+ - RFXtrx433 - Aeotec Z-Stick Gen5 - Toon Thermostat - Neo CoolCam plug - Neo CoolCam PIR - FIBARO PIR - Heiman Smart Smoke Senso - Neo CoolCam Leakage Detector - BeNext Tag Reader - P1 and S0 USB - many Mi-Light lights - KAKU switches
H0ppie
Posts: 5
Joined: Wednesday 07 June 2017 17:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Chromecast

Post by H0ppie »

Works great in my desktop browser!

Would be so great if Spotify could be connected to this. :oops:
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Dashticz - Module - Chromecast

Post by EdwinK »

Screen Shot 2018-11-09 at 23.31.06.png
Screen Shot 2018-11-09 at 23.31.06.png (111.61 KiB) Viewed 2217 times
Only got this block to show
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
marcom
Posts: 3
Joined: Friday 22 April 2016 21:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz - Module - Chromecast

Post by marcom »

EdwinK wrote: Friday 09 November 2018 23:31 Screen Shot 2018-11-09 at 23.31.06.pngOnly got this block to show
Hi Edwin, did you (or anybody else) ever managed to get this working?
I have the same problem as you described..
Been searching now for over 2 hours but couldn't find a solution...

code used in config.js is:
Spoiler: show
columns[2] = {}
columns[2]['blocks'] = [frames.weather,'chromecast',calendars.afval]
columns[2]['width'] = 5;
Thanks in advance,
Marcom
Capture.JPG
Capture.JPG (13.08 KiB) Viewed 1598 times
jaaap
Posts: 59
Joined: Sunday 28 July 2019 22:59
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Dashticz - Module - Chromecast

Post by jaaap »

Same here, I have no idea how to get this to work. Anybody got a working setup and is willing to share how you did it?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest