just as a FYI, i have got this working directly from a windows 10 machine without the need for other machines/apps by installing the Windows Feature "Windows Linux Subsystem" then rebooting
after which i installed the Ubuntu Linux app from the windows store, see the link for further info.
then all i did once linux was setup is run the following commands
apt-get update
apt-get install jq
apt-get install unzip
wget https://github.com/walthowd/ha-alexa...ive/master.zip
unzip master.zip
now i just made the scripts executable.
then created a secrets.yaml file in the same ~/<ExtractedFolder>
which contains only the following info
alexa_email: my@amazonemail.com
alexa_password: myamazonpassword
i then followed the setup instructions available in the github repo about getting the cookie. (word of advice i used firefox as Chrome etc.. would not work) ensure you comment/uncomment your correct region info, i also used the following Browser Line andreplaced the line in the code as i had better success with this
BROWSER='Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36'
once all that was up and running i just ran
~/<ExtractedFolder>/alexa_remote_control.sh -a
which returned all my devices.
and as a test i just ran
~/<ExtractedFolder>/alexa_remote_control.sh -d "Alexa Device Name" -e speak:"This is a test message"
once you have output, i just created the an AlexaSpeak.bat in a directory in the windows partition with the following:
@echo off
set arg1=%1
set arg2=%2
shift
shift
%SystemRoot%\sysnative\wsl.exe /home/<wsl user>/<ExtractedFolder>/alexa_remote_control.sh -d %arg1% -e speak:%arg2%
ensure you set the script name and path correctly to match your install
after which you can run the batch file with your Alexa Device Name and Message, you can use the "ALL" instead for device name but if like me you have more than 6 devices it wont send to all, and i cannot get a speaker group to work either. but for individual notifications to device it works very well so far. but i am still testing.
This should also work similarly on linux HS3 installs but you just need a different wrapper script.
hope this helps as this has been my utopia for a long time as i have an alexa in every room including my toilets
I have done a number of tests including reboots now over 2 weeks, i can see that the authentication is working even when the cookie is expired, and it does not prompt for
after which i installed the Ubuntu Linux app from the windows store, see the link for further info.
then all i did once linux was setup is run the following commands
apt-get update
apt-get install jq
apt-get install unzip
wget https://github.com/walthowd/ha-alexa...ive/master.zip
unzip master.zip
now i just made the scripts executable.
then created a secrets.yaml file in the same ~/<ExtractedFolder>
which contains only the following info
alexa_email: my@amazonemail.com
alexa_password: myamazonpassword
i then followed the setup instructions available in the github repo about getting the cookie. (word of advice i used firefox as Chrome etc.. would not work) ensure you comment/uncomment your correct region info, i also used the following Browser Line andreplaced the line in the code as i had better success with this
BROWSER='Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36'
once all that was up and running i just ran
~/<ExtractedFolder>/alexa_remote_control.sh -a
which returned all my devices.
and as a test i just ran
~/<ExtractedFolder>/alexa_remote_control.sh -d "Alexa Device Name" -e speak:"This is a test message"
once you have output, i just created the an AlexaSpeak.bat in a directory in the windows partition with the following:
@echo off
set arg1=%1
set arg2=%2
shift
shift
%SystemRoot%\sysnative\wsl.exe /home/<wsl user>/<ExtractedFolder>/alexa_remote_control.sh -d %arg1% -e speak:%arg2%
ensure you set the script name and path correctly to match your install
after which you can run the batch file with your Alexa Device Name and Message, you can use the "ALL" instead for device name but if like me you have more than 6 devices it wont send to all, and i cannot get a speaker group to work either. but for individual notifications to device it works very well so far. but i am still testing.
This should also work similarly on linux HS3 installs but you just need a different wrapper script.
hope this helps as this has been my utopia for a long time as i have an alexa in every room including my toilets
I have done a number of tests including reboots now over 2 weeks, i can see that the authentication is working even when the cookie is expired, and it does not prompt for
Comment