Skip to content

Commit

Permalink
Add email alert for startup
Browse files Browse the repository at this point in the history
will help detect when the system reboots
  • Loading branch information
src1138 committed Aug 14, 2024
1 parent 624cdd0 commit 4ad0345
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions motioneye_scripts/VMFB-MC.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,8 @@ def send_email_alert(event):

# Log start of script
log_event("SCRIPT","START","INIT")
# Send email alert
threading.Thread(target=send_email_alert,args=["SCRIPT STARTUP"]).start()

# Initialize MT Sensor state - enable the sensor LEDs, check the sensor, and disable the sensor LEDs
GPIO.output(SIR,1)
Expand Down

0 comments on commit 4ad0345

Please sign in to comment.