From 82b366b64f7dd1569659521838a620b4bec65951 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 18 Nov 2019 13:39:18 +0100 Subject: [PATCH] Increased # of routines downloaded --- alexa_remote_control.sh | 3 ++- alexa_remote_control_plain.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/alexa_remote_control.sh b/alexa_remote_control.sh index cf344dd..7604319 100755 --- a/alexa_remote_control.sh +++ b/alexa_remote_control.sh @@ -44,6 +44,7 @@ # 2019-07-08: v0.13 added support for Multi-Factor Authentication # (thanks to rich-gepp https://github.com/rich-gepp) # 2019-08-05: v0.14 added Volume setting via routine, and $SPEAKVOL +# 2019-11-18: v0.14a download 200 routines instead of only the first 20 # ### # @@ -565,7 +566,7 @@ if [ -n "${SEQUENCECMD}" ] ; then ${CURL} ${OPTS} -s -b ${COOKIE} -A "${BROWSER}" -H "DNT: 1" -H "Connection: keep-alive" -L\ -H "Content-Type: application/json; charset=UTF-8" -H "Referer: https://alexa.${AMAZON}/spa/index.html" -H "Origin: https://alexa.${AMAZON}"\ -H "csrf: $(awk "\$0 ~/.${AMAZON}.*csrf[ \\s\\t]+/ {print \$7}" ${COOKIE})" -X GET \ - "https://${ALEXA}/api/behaviors/automations" > "${TMP}/.alexa.automation" + "https://${ALEXA}/api/behaviors/automations?limit=200" > "${TMP}/.alexa.automation" AUTOMATION=$(jq --arg utterance "${UTTERANCE}" -r '.[] | select( .triggers[].payload.utterance == $utterance) | .automationId' "${TMP}/.alexa.automation") if [ -z "${AUTOMATION}" ] ; then diff --git a/alexa_remote_control_plain.sh b/alexa_remote_control_plain.sh index b794c66..44d14b2 100755 --- a/alexa_remote_control_plain.sh +++ b/alexa_remote_control_plain.sh @@ -3,7 +3,7 @@ # Amazon Alexa Remote Control (PLAIN shell) # alex(at)loetzimmer.de # -# 2019-08-05: v0.14 (for updates see http://blog.loetzimmer.de/2017/10/amazon-alexa-hort-auf-die-shell-echo.html) +# 2019-11-18: v0.14a (for updates see http://blog.loetzimmer.de/2017/10/amazon-alexa-hort-auf-die-shell-echo.html) # ### #