Page 1 of 1

"Alexa, play the latest fight on Song Fight!"

Posted: Thu Sep 19, 2019 8:51 pm
by Lunkhead
I just got a first Alexa enabled device today, one that supposedly doesn't listen to you until you push a button to queue it to listen. I hope that is not a bunch of BS and it's actually not listening all the time.

Anyway, I was also listening to Song Fight so I thought, wouldn't it be cool to be able to play Song Fight on Alexa?! Would anybody use this though? It would probably a LOT of work to implement, and also they have some kind of certification/verification that we might wind up failing at the end of the whole thing which would make it all pointless. I have to read up on that more.

Re: "Alexa, play the latest fight on Song Fight!"

Posted: Fri Sep 20, 2019 5:30 am
by Pigfarmer Jr
I think that'd be cool. But I wouldn't use it. Not ever.

Re: "Alexa, play the latest fight on Song Fight!"

Posted: Fri Sep 20, 2019 6:04 am
by ujnhunter
I've tried to make a Skill to do this, the only problem I have run into and... now that I'm looking at my web browser... might not be an issue any longer? Is that Amazon required https:// links and Song Fight! was only http://. Have we been "upgraded" now? This may be possible now... as long as the URLs in the .M3U are https://

Edit: Nevermind. The boards are .net and https:// but the songs are all still .org and http:// so it won't work.

Re: "Alexa, play the latest fight on Song Fight!"

Posted: Fri Sep 20, 2019 7:01 am
by jb
Https works (we have Let’s Encrypt activated on the .org domain) but the scripts for creating the fights make the links http.

Would the Alexa skill work if we autoredirected any http request to https? Or must the links in the skill have the s in them?

JB
ujnhunter wrote:
Fri Sep 20, 2019 6:04 am
I've tried to make a Skill to do this, the only problem I have run into and... now that I'm looking at my web browser... might not be an issue any longer? Is that Amazon required https:// links and Song Fight! was only http://. Have we been "upgraded" now? This may be possible now... as long as the URLs in the .M3U are https://

Edit: Nevermind. The boards are .net and https:// but the songs are all still .org and http:// so it won't work.

Re: "Alexa, play the latest fight on Song Fight!"

Posted: Wed Sep 25, 2019 9:19 pm
by Lunkhead
ujnhunter wrote:
Fri Sep 20, 2019 6:04 am
I've tried to make a Skill to do this, the only problem I have run into and... now that I'm looking at my web browser... might not be an issue any longer? Is that Amazon required https:// links and Song Fight! was only http://. Have we been "upgraded" now? This may be possible now... as long as the URLs in the .M3U are https://

Edit: Nevermind. The boards are .net and https:// but the songs are all still .org and http:// so it won't work.
Oh cool, would you be interested in sharing the code you've written for that? I bet we could rig something up to try to resolve the last issue. I could at the very least cook up a way for the Jukebox to make .M3U files that have https links.

Did you write it as a Music Skill (per https://developer.amazon.com/docs/music ... l-api.html ) or just a generic skill?

Re: "Alexa, play the latest fight on Song Fight!"

Posted: Thu Sep 26, 2019 6:14 am
by ujnhunter
I believe that any calls made from the Skill must be sent to an Https or else the build fails. I can't remember the specifics, I believe it was a custom skill that I was trying to make. Not sure if they had specific Music Skills at the time. Let me have a look and see what I can figure out. If you were able to create an .M3U file with a https link that contained a few songs with https links I could give that a try. Basically I would most likely be calling a Play "https://songfight.net/current.m3u" file that would be updated every fight, it would have to be the same file in the same location as the skill wouldn't be updated every fight, only the current.m3u file.

Edit: I haven't modified the Skill since 2017-12-07. Heh...