From ce953aa48e16d50f145a0f75c57fb03cb20f7322 Mon Sep 17 00:00:00 2001 From: Julian Tatsch Date: Wed, 20 Feb 2019 22:32:59 +0100 Subject: [PATCH] fix telegram message type --- firmware_mod/config/motion.conf.dist | 2 +- firmware_mod/scripts/detectionOn.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware_mod/config/motion.conf.dist b/firmware_mod/config/motion.conf.dist index e098e8fe..c7644351 100644 --- a/firmware_mod/config/motion.conf.dist +++ b/firmware_mod/config/motion.conf.dist @@ -21,7 +21,7 @@ publish_mqtt_message=false publish_mqtt_snapshot=false send_email=false send_telegram=false -telegram_alert_type=video +telegram_alert_type=image send_matrix=false # Snapshots diff --git a/firmware_mod/scripts/detectionOn.sh b/firmware_mod/scripts/detectionOn.sh index 9136c9a6..1037eb26 100755 --- a/firmware_mod/scripts/detectionOn.sh +++ b/firmware_mod/scripts/detectionOn.sh @@ -184,8 +184,8 @@ if [ "$send_telegram" = true ]; then if [ "$telegram_alert_type" = "text" ] ; then debug_msg "Send telegram text" /system/sdcard/bin/telegram m "Motion detected" - elif [ "$telegram_alert_type" = "snapshot" ] ; then - debug_msg "Send telegram snapshot" + elif [ "$telegram_alert_type" = "image" ] ; then + debug_msg "Send telegram image" /system/sdcard/bin/telegram p "$snapshot_tempfile" elif [ "$telegram_alert_type" = "video" ] ; then debug_msg "Send telegram video"