Files
teslausb/windows_archive/send-pushover
Richard Goodwin a8ac613fd0 More descriptive
Also typos in LOGFILE var.
2018-10-21 13:10:50 -05:00

19 lines
387 B
Bash

#!/bin/bash -eu
LOGFILE=/tmp/archiveloop.log
function log () {
echo "$( date ) : $1" >> "$LOGFILE"
}
source /root/.teslaCamPushoverCredentials
if ping -c 1 api.pushover.net &> /dev/null
then
curl -F "token=$pushover_app_key" \
-F "user=$pushover_user_key" \
-F "title=Dashcam Copy Complete" \
-F "message=$1 file(s) were copied." \
https://api.pushover.net/1/messages
fi