mirror of
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks.git
synced 2025-09-09 15:40:45 +02:00
Fix Stuck in Alarm
Fix Stuck in Alarm state if $save_snapshot is false
This commit is contained in:
@@ -23,7 +23,9 @@ fi
|
||||
if [ "$publish_mqtt_message" = true ] ; then
|
||||
. /system/sdcard/config/mqtt.conf
|
||||
/system/sdcard/bin/mosquitto_pub.bin -h "$HOST" -u "$USER" -P "$PASS" -t "${TOPIC}"/motion ${MOSQUITTOOPTS} ${MOSQUITTOPUBOPTS} -m "ON"
|
||||
/system/sdcard/bin/mosquitto_pub.bin -h "$HOST" -u "$USER" -P "$PASS" -t "${TOPIC}"/motion_snapshots ${MOSQUITTOOPTS} ${MOSQUITTOPUBOPTS} -f $save_dir/$filename
|
||||
if [ "$save_snapshot" = true ] ; then
|
||||
/system/sdcard/bin/mosquitto_pub.bin -h "$HOST" -u "$USER" -P "$PASS" -t "${TOPIC}"/motion_snapshots ${MOSQUITTOOPTS} ${MOSQUITTOPUBOPTS} -f $save_dir/$filename
|
||||
fi
|
||||
fi
|
||||
|
||||
# Send emails ...
|
||||
|
Reference in New Issue
Block a user