The very basic code I have so far;
Code: Select all
#! /bin/bash
gpio mode 7 down
app="Panic Button Town"
message="KITCHEN"
title="PANIC BUTTON"
url=
url_title=
priority=
device=
sound= userkey=*mykeyhere*
apikey=*myAPIkeyhere*
while true
do
gpio wfi 7 rising
curl https://api.pushover.net/1/messages.json -F token=$apikey -F user=$userkey -F message="Kitchen" -F title=$title -F sound=alien -F priority=1
done
I've attempted my limited knowledge, lots of Google, import time, etc etc and I can't get any combination to work. I would like to put a 60 second delay on it before it would resend the http.
Help?