Giter Site home page Giter Site logo

Comments (10)

fivestones avatar fivestones commented on August 15, 2024 1

For people coming here looking for an easier way to do this like I was: catt (cast all the things) at https://github.com/skorokithakis/catt can send websites (including a dashboard) to a chromecast from the commandline, no need to make a virtual machine and take screenshots and all that. Just cast the website itself.

from pychromecast.

balloob avatar balloob commented on August 15, 2024

You can play any media file, picture or video. Website is not supported
directly but if you make a Chromecast app (which is a website), you can
cast it with this tool.

On Tue, Sep 15, 2015 at 10:00 AM 1337sup3rh4x0r [email protected]
wrote:

Hello,
is it also possible to stream a website (html document or link) or a
picture (jpeg, png, whatever) to chromecast with this tool?

I would like to create an info screen that is displayed at certain times
and triggered from a server.

Is this possible with your tool?


Reply to this email directly or view it on GitHub
#58.

from pychromecast.

1337sup3rh4x0r avatar 1337sup3rh4x0r commented on August 15, 2024

Thanks, this sounds good!
Can that chromecast app also be run headless on a server or do I need to cast that manually via chrome and the cast extension?
Otherwise, patching together an image and casting that via your tool seems more straightforward...

from pychromecast.

balloob avatar balloob commented on August 15, 2024

Chromecasts apps are hosted in the cloud and are just HTML etc. PyChromecast can be used to cast that app to your TV.

from pychromecast.

1337sup3rh4x0r avatar 1337sup3rh4x0r commented on August 15, 2024

Ah I understand. So basically I cannot cast a "private" html page? This all goes through google's servers? Is this also true for casting pictures from a local source?

from pychromecast.

balloob avatar balloob commented on August 15, 2024

No, pictures or movies can be triggered right away

On Wed, Sep 16, 2015, 07:31 1337sup3rh4x0r [email protected] wrote:

Ah I understand. So basically I cannot cast a "private" html page? This
all goes through google's servers? Is this also true for casting pictures
from a local source?


Reply to this email directly or view it on GitHub
#58 (comment)
.

from pychromecast.

1337sup3rh4x0r avatar 1337sup3rh4x0r commented on August 15, 2024

Thank you, then I will go ahead and stitch my Infoscreen together from images and stream that.
Thanks for your support!

from pychromecast.

jamesrchen avatar jamesrchen commented on August 15, 2024

I am interested, how did you do that, may I ask?

from pychromecast.

1337sup3rh4x0r avatar 1337sup3rh4x0r commented on August 15, 2024

It's been a more complicated project.
It mainly consists of a headless virtual machine in which screenshots from several webpages are taken on a regular basis. This is done via "ghost" which is a python module. On a headless machine you need Xvfb running to be able to run a browser and take screenshots.
These screenshots are then cropped and stitched together, also with a python module "PIL".
The stitched image is saved into the root directory of a local webserver.

The url of this image can then be sent to chromecast using pychromecast.

All the scripts need to be called e.g. every minute via a cronjob to get regular updates on the screen.

In my latest implementation I have skipped the stiching and built the infoscreen layout with the FTUI of the open source home automation FHEM. I therefore now only take one screenshot of this layout and copy it to the webserver to stream it to chromecast. No more stitching and cropping required.

There are of course many ways to build the image, but to automate the streaming, I haven't found a better way than taking a screenshot via ghost and Xvfb.

from pychromecast.

jamesrchen avatar jamesrchen commented on August 15, 2024

Impressive! 👍

from pychromecast.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.