Hello,
As I said on a previous post, I bought Alexa with the express purpose of making an automated schedule of music without using any other device (like Sonos), and I am still filled with determination to get that to work.
One comment that was particularly useful directed me to the code of
John Graves, which is a workaround for Push notifications. This code interfaces with AVS, then obtains authentication code from Amazon's API for a specific Echo device to obtain the access token to interact with Alexa.
Having obtained the access token, Graves' code is able to run Alexa from command line:
./alexa.sh "tell me a joke"
However, I am stuck at this point for a couple of reasons:
1) The response from Alexa plays on my computer, not Echo. Graves recognizes this, and says you have to use bluetooth speakers. To me, this seems to completely defeat the purpose of Echo (the command is run from a computer, and only plays on a computer). Assuming I use this method, I would always need that computer up and running, and basically I could easily do the same thing on my own computer and throw Echo away.
2) Music doesn't play using this method. My computer says announces the music in Alexa's voice, but then doesn't do anything.
Is there a better way to control Alexa on command line, or is she not built for it?
Maybe I'll have to buy into Amazon's corporate schemes and hang up my CS degree for another day