Adding a new device: Lifx light bulb.
[pingpong.git] / automation / clicker.sh
index 0817e6ee262cfb51aea60887ab1b8e194864741f..e93a8181d4cd2acd2dff6a98d8070bed14779fc2 100755 (executable)
@@ -14,15 +14,46 @@ RAN_END=200
 
 for ((i=$BEGIN; i<=$END; i+=$INC));
 do
+       
+       date +"%m/%d/%Y %r"
        #./adb shell getevent -l - use this command to get the position
        # TP-Link switch
        #./adb shell input tap 1002 913
+       # TP-Link bulb on/off
+       #./adb shell input tap 994 560
        # D-Link switch
        #./adb shell input tap 987 346
        # SmartThings
-       ./adb shell input tap 921 1188
+       #./adb shell input tap 921 1188
+       # WeMo
+       #./adb shell input tap 981 532
+       # WeMo Insight
+       #./adb shell input tap 981 326
+       # Kwikset doorlock
+       #if (( $i % 2 ))
+       #then
+               # locking
+       #       ./adb shell input tap 153 1211
+       #else
+               # unlocking
+       #       ./adb shell input tap 520 1211
+       #fi
+       # Hue bulb
+       #./adb shell input tap 923 383
+       # Lifx bulb
+       #./adb shell input tap 506 580
+       # Amcrest camera
+       if (( $i % 2 ))
+       then
+               # live view
+               ./adb shell input tap 92 139
+               ./adb shell input tap 92 139
+       else
+               # stop live view (go to playback)
+               ./adb shell input tap 92 139
+               ./adb shell input tap 92 250
+       fi
        #date +%r
-       date +"%m/%d/%Y %r"
        #RAND=$[( $RANDOM % $RAN_END ) + $RAN_STA]
        #RAND=$[`jot -r 1 $RAN_STA $RAN_END`]
        #echo "Delay: $RAND seconds"