Adding a new device: Lifx light bulb.
[pingpong.git] / automation / clicker.sh
index ba75e256ef309a7adfac590196ddefcf8fc7f29a..e93a8181d4cd2acd2dff6a98d8070bed14779fc2 100755 (executable)
@@ -39,7 +39,20 @@ do
        #       ./adb shell input tap 520 1211
        #fi
        # Hue bulb
-       ./adb shell input tap 923 383
+       #./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
        #RAND=$[( $RANDOM % $RAN_END ) + $RAN_STA]
        #RAND=$[`jot -r 1 $RAN_STA $RAN_END`]