I want to use Lötzimmer’s Alexa Remote Control shell script inside a docker container to trigger TTS events in my Alexa.
This script basically mimics a user by curling the Amazon Alexa page, logging in and dispatching the TTS event all from the shell. If I execute the script on my PC or my Raspberry Pi, everything works fine. However, I want to embed this script in a docker container and enrich it with further functionality later. So I just created a basic docker image for demonstration purposes:
FROM ubuntu:latest RUN apt-get update && apt-get install curl jq oathtool -y COPY alexa_remote_control.sh ./ RUN ./alexa_remote_control.sh -d ALL -e speak:'Hi'
(Curl and jq are required for the web requests and oathtool is required to generate OTPs from the MFA-secret.)
Now the problem is that when the image is executed, it fails, because Amazon Alexa login page demands a Captcha input.
My guess is that they somehow detect that the request is coming from within a docker container and therefore request a Captcha for spam protection. Are they able to do that and is there any kind of workaround (e.g. by modifying header fields) to prevent this behavior? Once again: The script is working fine on both my PC and my RPI, but once it is executed from within a docker container, a Captcha is requested.
Thanks in advance!
Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.