Casting websites/custom web pages to chromecast

So I’ve had my HASS turning on my TV through chromecast as part of my morning automation. one thing that I wanted to do is get away from the standard “welcome to home assistant” background and set up my own.

I was able to do that by going to the cast.py in the components section and replacing the CAST_SPLASH variable from the standard ‘https://home-assistant.io/images/cast/splash.png’ to ‘http://www.flabber.nl/sites/default/files/archive/files/in-117-jaar-wordt-wereldbevolking-van-6-miljard-gerecycled.jpg’.

I could even get a gif like this: http://forum.ucweb.com/data/attachment/forum/201212/27/165045phvyk2uj2uhixkat.gif
I did have to change something in the media.py file inside the pychromecast dependency:

def play_media(self, url, content_type, title=None, thumb=None,
current_time=0, autoplay=True,
stream_type=STREAM_TYPE_BUFFERED,
metadata=None, subtitles=None, subtitles_lang=‘en-US’,
subtitles_mime=‘text/vtt’, subtitle_id=1):

became

def play_media(self, url, content_type, title=None, thumb=None,
current_time=0, autoplay=True,
stream_type=STREAM_TYPE_LIVE,
metadata=None, subtitles=None, subtitles_lang=‘en-US’,
subtitles_mime=‘text/vtt’, subtitle_id=1):

And BOOM!! gif on my tv! (my girlfriend loves pugs so that’s why I used that one)

Now for my main question: is there a way to have a website display instead of a picture or gif? I tried with something simple like google.com and it wouldn’t work, it would just display the cast icon.

I see this as a potential “summary of your day” on the TV type thing where you have time, weather, and anything else that might be useful to you displayed on the big screen as a part of a morning automation.

Any tips or tricks would be much appreciated!!

3 Likes

I have exactly the same question. I’d like to show a page (perhaps even a custom html with different frames to show different websites) with weather and traffic info.
Either using google cast or kodi.

Did you figure out how to display a page using Chromecast? I have the same question. Please share your script.

2 Likes

Just checking where you able to display a website page on chrome cast?

Bumping an aged thread, but I can’t believe that there is not an easy way to do this. Am I missing something?

1 Like

Hi,

please check this thread

I think it was also discussed in other threads.

Note that I did manage to cast a webpage (HASS GUI), but it was a bit buggy (I also used chromecast for videos) and in the end I concluded I curently don’t need this functionality right now.

1 Like

Thanks for the reply. I have looked at that thread also. Seems that the current answer is HA still does not provide direct access to DashCast.

Cast a webpage feature request in case anyone else is still trying to do this.