From: rtrimana Date: Tue, 31 Jul 2018 23:40:51 +0000 (-0700) Subject: Merge branch 'master' of https://github.uci.edu/rtrimana/smart_home_traffic X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3730251c1696f843899313f3f7cd56fc31d0f828;hp=e193fa2e8bc7dc4d218e5b6177d13d350712d7fa;p=pingpong.git Merge branch 'master' of https://github.uci.edu/rtrimana/smart_home_traffic --- diff --git a/automation/clicker.sh b/automation/clicker.sh index 50a88ad..0817e6e 100755 --- a/automation/clicker.sh +++ b/automation/clicker.sh @@ -5,20 +5,29 @@ # Loop variables BEGIN=1 -END=5 +END=100 INC=1 # Range of random number (in seconds) -RAN_STA=2 -RAN_END=6 +RAN_STA=100 +RAN_END=200 for ((i=$BEGIN; i<=$END; i+=$INC)); do + #./adb shell getevent -l - use this command to get the position # TP-Link switch #./adb shell input tap 1002 913 - date +%r + # D-Link switch + #./adb shell input tap 987 346 + # SmartThings + ./adb shell input tap 921 1188 + #date +%r + date +"%m/%d/%Y %r" #RAND=$[( $RANDOM % $RAN_END ) + $RAN_STA] - RAND=$[`jot -r 1 $RAN_STA $RAN_END`] + #RAND=$[`jot -r 1 $RAN_STA $RAN_END`] #echo "Delay: $RAND seconds" - sleep $[$RAND]s + #sleep $[$RAND]s + + # pick a prime number > 120 seconds + sleep 131s done