// final String triggerTimesFile = path + "/2018-07/wemoinsight/wemo-insight-july-31-2018.timestamps";
// final String deviceIp = "192.168.1.135";
- // TP-Link BULB August 1 experiment
+ // TP-Link Bulb August 1 experiment
// final String inputPcapFile = path + "/2018-08/tplink-bulb/tplinkbulb.wlan1.local.pcap";
// final String outputPcapFile = path + "/2018-08/tplink-bulb/tplinkbulb-processed.pcap";
// final String triggerTimesFile = path + "/2018-08/tplink-bulb/tplink-bulb-aug-3-2018.timestamps";
// final String triggerTimesFile = path + "/2018-08/kwikset-doorlock/kwikset-doorlock-aug-6-2018.timestamps";
// final String deviceIp = "192.168.1.246"; // .246 == phone; .142 == SmartThings Hub (note: use eth0 capture for this!)
- // Hue BULB August 7 experiment
+ // Hue Bulb August 7 experiment
// final String inputPcapFile = path + "/2018-08/hue-bulb/hue-bulb.wlan1.local.pcap";
// final String outputPcapFile = path + "/2018-08/hue-bulb/hue-bulb-processed.pcap";
// final String triggerTimesFile = path + "/2018-08/hue-bulb/hue-bulb-aug-7-2018.timestamps";
// final String deviceIp = "192.168.1.246";
- // Lifx BULB August 8 experiment
- final String inputPcapFile = path + "/2018-08/lifx-bulb/lifx-bulb.wlan1.local.pcap";
- final String outputPcapFile = path + "/2018-08/lifx-bulb/lifx-bulb-processed.pcap";
- final String triggerTimesFile = path + "/2018-08/lifx-bulb/lifx-bulb-aug-8-2018.timestamps";
- final String deviceIp = "192.168.1.246"; // .246 == phone; .231 == Lifx
+ // Lifx Bulb August 8 experiment
+// final String inputPcapFile = path + "/2018-08/lifx-bulb/lifx-bulb.wlan1.local.pcap";
+// final String outputPcapFile = path + "/2018-08/lifx-bulb/lifx-bulb-processed.pcap";
+// final String triggerTimesFile = path + "/2018-08/lifx-bulb/lifx-bulb-aug-8-2018.timestamps";
+// final String deviceIp = "192.168.1.246"; // .246 == phone; .231 == Lifx
+
+ // Amcrest Camera August 9 experiment
+// final String inputPcapFile = path + "/2018-08/amcrest-camera/amcrest-camera.wlan1.local.pcap";
+// final String outputPcapFile = path + "/2018-08/amcrest-camera/amcrest-camera-processed.pcap";
+// final String triggerTimesFile = path + "/2018-08/amcrest-camera/amcrest-camera-aug-9-2018.timestamps";
+// final String deviceIp = "192.168.1.246"; // .246 == phone; .235 == camera
+
+ // Arlo Camera August 10 experiment
+// final String inputPcapFile = path + "/2018-08/arlo-camera/arlo-camera.wlan1.local.pcap";
+// final String outputPcapFile = path + "/2018-08/arlo-camera/arlo-camera-processed.pcap";
+// final String triggerTimesFile = path + "/2018-08/arlo-camera/arlo-camera-aug-10-2018.timestamps";
+// final String deviceIp = "192.168.1.140"; // .246 == phone; .140 == camera
+
+ // Blossom sprinkler August 13 experiment
+// final String inputPcapFile = path + "/2018-08/blossom/blossom.wlan1.local.pcap";
+// final String outputPcapFile = path + "/2018-08/blossom/blossom-processed.pcap";
+// final String triggerTimesFile = path + "/2018-08/blossom/blossom-aug-13-2018.timestamps";
+// final String deviceIp = "192.168.1.229"; // .246 == phone; .229 == sprinkler
+
+ // DLink siren August 14 experiment
+ final String inputPcapFile = path + "/2018-08/dlink-siren/dlink-siren.wlan1.local.pcap";
+ final String outputPcapFile = path + "/2018-08/dlink-siren/dlink-siren-processed.pcap";
+ final String triggerTimesFile = path + "/2018-08/dlink-siren/dlink-siren-aug-14-2018.timestamps";
+ final String deviceIp = "192.168.1.183"; // .246 == phone; .183 == siren
TriggerTimesFileReader ttfr = new TriggerTimesFileReader();
List<Instant> triggerTimes = ttfr.readTriggerTimes(triggerTimesFile, false);
# Lifx bulb
#./adb shell input tap 506 580
# Amcrest camera
- if (( $i % 2 ))
- then
+ #if (( $i % 2 ))
+ #then
# live view
- ./adb shell input tap 92 139
- ./adb shell input tap 92 139
- else
+ # ./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
+ # ./adb shell input tap 92 139
+ # ./adb shell input tap 92 250
+ #fi
+ # Arlo camera
+ #if (( $i % 2 ))
+ #then
+ # live view
+ # ./adb shell input tap 532 740
+ #else
+ # stop live view
+ # ./adb shell input tap 101 1012
+ #fi
+ # Blossom
+ #if (( $i % 2 ))
+ #then
+ # start watering
+ # ./adb shell input tap 538 1597
+ #else
+ # stop watering
+ # ./adb shell input tap 496 1533
+ #fi
+ # Dlink siren
+ #./adb shell input tap 994 802
+ # Nest thermostat
+ if (( $i % 2))
+ then
+ # start fan
+ ./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
#date +%r
#RAND=$[( $RANDOM % $RAN_END ) + $RAN_STA]