Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions chromecastPlayVideo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion playVideo.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

$db = new mysqli('MYSQL_HOST','MYSQL_USER','MYSQL_PASS','MYSQL_NAME');
$db = new mysqli('','','','');

if($_GET['command'] == "sendVideo") {

Expand Down
63 changes: 0 additions & 63 deletions set-up.py

This file was deleted.