by BeeEss » Fri Feb 02, 2018 6:28 pm
If it's dumb and it works, it isn't dumb.
For quite some time, I had been using the Mac app Radium to tune SiriusXM stations - it has a bunch of Applescript hooks, so it was easy enough to use Indigo to automate the start of a stream. But I guess SiriusXM deprecated a prior version of their online player (which I assume Radium was using), so I was
looking for another solution.Found out that an Amazon Echo can tune a SiriusXM station with a voice command - "Alexa, play SiriusXM Lithium," or "Alexa, play SiriusXM channel 8." Then I remembered that Indigo can speak commands, so I figured what the heck:
That's an Echo Dot with one half of a
Skullcandy Cassette headphone sitting on top of it. So this Control Page allows us to select a station:
When you tap a station link, it sets a variable (stationLink) to a text value of the channel number ("fifty three"), then calls Action Group 'Tune SiriusXM Station,' which among other things like setting the correct Airfoil speakers, does this:
- Code: Select all
indigo.server.speak("Alexa, play serious XM channel" + stationLink)
It works
beautifully. I am sort of shocked at how dead-on consistent it has been. Alexa even announces the channel name before she starts playing it.
This was important, because my morning alarm involves displaying HIPster (my Home Information Portal) on various TVs across the house, and playing some SiriusXM station for sound. HIPster is
Magic Mirror running on a Raspberry Pi connected to my A/V receiver. The Pi also runs Airfoil Speakers (or Satellite, or whatever they call it.) So in the morning, Colorado4Wheeler's rad Alarm Clock plugin does its magic - turns on my bedroom TV (and others), sends Alexa the command to start a station that I've selected (via a Control Page) and fades in lights in appropriate parts of the house. The only thing I miss is that HIPster used to display the track/artist and station name in the bottom left - since that's coming from the Dot now I don't have that info, but that's okay:
Now I just need to think of other stuff that might be handy to tell Indigo to tell Alexa to do. Hmm...
If it's dumb and it works, it isn't dumb.
For quite some time, I had been using the Mac app Radium to tune SiriusXM stations - it has a bunch of Applescript hooks, so it was easy enough to use Indigo to automate the start of a stream. But I guess SiriusXM deprecated a prior version of their online player (which I assume Radium was using), so I was [url=http://forums.indigodomo.com/viewtopic.php?f=138&t=20099]looking for another solution.[/url]
Found out that an Amazon Echo can tune a SiriusXM station with a voice command - "Alexa, play SiriusXM Lithium," or "Alexa, play SiriusXM channel 8." Then I remembered that Indigo can speak commands, so I figured what the heck:
[img]https://i.imgur.com/p4mBn2Jl.jpg[/img]
That's an Echo Dot with one half of a [url=https://www.amazon.com/gp/product/B007GN0XRO/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1]Skullcandy Cassette[/url] headphone sitting on top of it. So this Control Page allows us to select a station:
[img]https://i.imgur.com/woBkP1ul.png[/img]
When you tap a station link, it sets a variable (stationLink) to a text value of the channel number ("fifty three"), then calls Action Group 'Tune SiriusXM Station,' which among other things like setting the correct Airfoil speakers, does this:
[code]indigo.server.speak("Alexa, play serious XM channel" + stationLink)[/code]
It works [i]beautifully.[/i] I am sort of shocked at how dead-on consistent it has been. Alexa even announces the channel name before she starts playing it.
This was important, because my morning alarm involves displaying HIPster (my Home Information Portal) on various TVs across the house, and playing some SiriusXM station for sound. HIPster is [url=https://magicmirror.builders/]Magic Mirror[/url] running on a Raspberry Pi connected to my A/V receiver. The Pi also runs Airfoil Speakers (or Satellite, or whatever they call it.) So in the morning, Colorado4Wheeler's rad Alarm Clock plugin does its magic - turns on my bedroom TV (and others), sends Alexa the command to start a station that I've selected (via a Control Page) and fades in lights in appropriate parts of the house. The only thing I miss is that HIPster used to display the track/artist and station name in the bottom left - since that's coming from the Dot now I don't have that info, but that's okay:
[img]https://i.imgur.com/ytlx0jHl.png[/img]
Now I just need to think of other stuff that might be handy to tell Indigo to tell Alexa to do. Hmm...