X-Git-Url: http://plrg.eecs.uci.edu/git/?p=pingpong.git;a=blobdiff_plain;f=automation%2Fclicker.sh;h=6ab0140f16acdafc8fad9c8418408434d69d3db7;hp=28008c1478eb42d9706b13abac7bfcf79cffb29d;hb=7e6a00a5a2e03a0a7c2714bb3d4f2bf98976a9e7;hpb=6a5cb0f1f117c8c3628819643b73311d22237a05 diff --git a/automation/clicker.sh b/automation/clicker.sh index 28008c1..6ab0140 100755 --- a/automation/clicker.sh +++ b/automation/clicker.sh @@ -74,16 +74,31 @@ do # Dlink siren #./adb shell input tap 994 802 # Nest thermostat - if (( $i % 2)) - then + #if (( $i % 2 )) + #then # start fan - ./adb shell input tap 524 1668 - ./adb shell input tap 936 1709 - else + # ./adb shell input tap 524 1668 + # ./adb shell input tap 936 1709 + #else # stop fan - ./adb shell input tap 524 1668 - ./adb shell input tap 679 1702 - fi + # ./adb shell input tap 524 1668 + # ./adb shell input tap 679 1702 + #fi + # Alexa + if (( $i % 2 )) + then + # Using Google Translate and + # having her speak to Alexa + # Question 1 + ./adb shell input tap 907 145 + ./adb shell input tap 543 692 + ./adb shell input tap 148 775 + else + # Question 2 + ./adb shell input tap 907 145 + ./adb shell input tap 463 1668 + ./adb shell input tap 148 775 + fi #date +%r #RAND=$[( $RANDOM % $RAN_END ) + $RAN_STA] #RAND=$[`jot -r 1 $RAN_STA $RAN_END`]