diff --git a/README.md b/README.md index 6681f9c..cd7592d 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,10 @@ # 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. @@ -49,7 +37,7 @@ By saying "Alexa ask ChromeCast to clear", Alexa will resume playback. - Install PyChromecast to your Desired PC (pip install pychromecast) - Install build.sql to your MySQL server - Get a Youtube API Key (Available [here](https://console.developers.google.com)) - - Replace all connection strings using set-up.py + - Replace all connection strings - Setup Skill.js In [Lambda](http://aws.amazon.com/) - Set up skill in the Alexa Portal at http://developer.amazon.com using sample-utterances.txt and intentSchema.json - Run Python Script. diff --git a/chromecastPlayVideo.py b/chromecastPlayVideo.py index e660e99..404a490 100644 --- a/chromecastPlayVideo.py +++ b/chromecastPlayVideo.py @@ -32,7 +32,7 @@ def setup(chromecast_name): ### SETS Database Variable ### -db = MySQLdb.connect(host="MYSQL_HOST", user='MYSQL_USER', passwd="MYSQL_PASS", db='MYSQL_NAME') +db = MySQLdb.connect(host="", user='', passwd="", db='') def volumeSet(Volnum): @@ -124,12 +124,12 @@ def gpMusicPlaySong(songName, type_of_media): if url == "": print "Either Someone else is streaming, or something happened." else: - mc = cast.media_controller - mc.play_media(url, "audio/mp3") + print "Sendinggggg" + """mc = cast.media_controller + mc.play_media(url, "audio/mp3")""" print "Song " + titleOfSong + " Sent" - if not type_of_media == "song": - time.sleep(actual_duration) - continue + time.sleep(actual_duration) + continue else: return "success" diff --git a/playVideo.php b/playVideo.php index 3bfbf43..c19f52d 100644 --- a/playVideo.php +++ b/playVideo.php @@ -1,6 +1,6 @@