Skip to content

Commit

Permalink
fix telegram message type
Browse files Browse the repository at this point in the history
  • Loading branch information
jmtatsch committed Feb 20, 2019
1 parent 5d041e4 commit ce953aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion firmware_mod/config/motion.conf.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions firmware_mod/scripts/detectionOn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ce953aa

Please sign in to comment.