Git Product home page Git Product logo

alexa-chromecast-skill's Introduction

Alexa-Chromecast-Skill

THIS PROJECT HAS BEEN DEPRECIATED, AND I WILL NO LONGER BE WORKING ON IT, AS A NEW VERSION IS IN THE WORKS.

Allows Alexa to interact with the Google ChromeCast using PHP and PyChromeCast Running on a Computer.

#Current Features: ###Play Youtube Videos (Based on Sample Utterances) By saying "Alexa, ask ChromeCast play Jontron Home Improvement", Alexa will send the video URL to your Chromecast Python Script.

###Play Google Play Music (All-Access Not Supported) By asking Alexa, "Play Never gonna give you up" you can play a song.

By asking Alexa, "Play the artist Two Steps from Hell", you can play an artist.

By asking Alexa, "Play the album 99 luftbullons", you can play an album.

###Specificing Chromecasts (UNTESTED) By asking Alexa, "Connect to Living Room", she should set the casting Chromecast to "Living Room"

###Pause Videos By saying "Alexa, ask ChromeCast to Pause", Alexa will pause the Chromecast.

###Resume Videos By saying "Alexa ask ChromeCast to resume", Alexa will resume playback.

###Changing the Volume By saying "Alexa ask ChromeCast to change the volume to 50", Alexa will change the volume to the specified volume

###Clearing the Queue (Useful for future releases) By saying "Alexa ask ChromeCast to clear", Alexa will resume playback.

#Explanation

##PHP Visiting: yourwebsite.com/playVideo.php?searchString=YOUR_SEARCH_STRING_FOR_YOUTUBE triggers the script to add the video to your database.

##Python Using PyChromeCast (https://github.com/balloob/pychromecast), the python script will run at a set interval, continuously checking the database for new videos. When it detects a new row has been added, it loads youtube-dl, a command-line program to grab the stream URL and passes it to PyChromeCast, which sends it to your ChromeCast.

#Issues

  • Sometimes PyChromecast doesn't detect the chromecasts.

#To Do

  • Kill ChromeCast App
  • Get Duration of Media and allow for playlist.
  • Allow for interuptions in internet and keep running

#Setup

  • Install PyChromecast to your Desired PC (pip install pychromecast)
  • Install build.sql to your MySQL server
  • Get a Youtube API Key (Available here)
  • Replace all connection strings using set-up.py
  • Setup Skill.js In Lambda
  • Set up skill in the Alexa Portal at http://developer.amazon.com using sample-utterances.txt and intentSchema.json
  • Run Python Script.
  • Voila!

alexa-chromecast-skill's People

Contributors

pizzaface avatar

Watchers

 avatar

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.