mirror of
https://github.com/cimryan/teslausb.git
synced 2026-03-01 04:30:33 +00:00
Move send-pushover to top level.
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash -eu
|
||||
|
||||
local num_files_moved="$1"
|
||||
|
||||
function log () {
|
||||
echo "$( date )" >> "$LOG_FILE"
|
||||
echo "$1" >> "$LOG_FILE"
|
||||
}
|
||||
|
||||
if [ -r "/root/.teslaCamPushoverCredentials" ] && [ $num_files_moved > 0]
|
||||
then
|
||||
log "Sending Pushover message for moved files."
|
||||
|
||||
source /root/.teslaCamPushoverCredentials
|
||||
|
||||
curl -F "token=$pushover_app_key" \
|
||||
-F "user=$pushover_user_key" \
|
||||
-F "title=Dashcam Copy Complete" \
|
||||
-F "message=$num_files_moved file(s) were copied." \
|
||||
https://api.pushover.net/1/messages
|
||||
fi
|
||||
Reference in New Issue
Block a user