projects
/
stationnotifier
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4b45c17
)
update
author
frrobert2 <frrobert@stnectarios.org>
Sun, 9 May 2021 23:46:24 +0000
(19:46 -0400)
committer
frrobert2 <frrobert@stnectarios.org>
Sun, 9 May 2021 23:46:24 +0000
(19:46 -0400)
notificatorossl
patch
|
blob
|
history
diff --git
a/notificatorossl
b/notificatorossl
index 5ade715bab70900bb851d0422bf7e53f689c5a03..e702b69a74454778806bbbf92373301601d43a16 100755
(executable)
--- a/
notificatorossl
+++ b/
notificatorossl
@@
-2,8
+2,8
@@
# notifitcatorossl is a fork of https://github.com/ThatsRedacted/StationNotifier
# This program uses openssl rather than curl to connect to a gemini site`
# notifitcatorossl is a fork of https://github.com/ThatsRedacted/StationNotifier
# This program uses openssl rather than curl to connect to a gemini site`
-key=''
-cert=''
+key='
/home/frrobert/.config/amfora/7debbb3fae40dbe77746aa465300febaec5abb778faa8a550f8e5924f0977983.key
'
+cert='
/home/frrobert/.config/amfora/7debbb3fae40dbe77746aa465300febaec5abb778faa8a550f8e5924f0977983.crt
'
connectto=30
howoften=
connectto=30
howoften=
@@
-35,8
+35,9
@@
do
notifications=${my_array[2]}
echo "" > $tmpfile
if [[ $notifications -gt $lasttime ]]; then
notifications=${my_array[2]}
echo "" > $tmpfile
if [[ $notifications -gt $lasttime ]]; then
+ new=$(expr $notifications - $lasttime)
echo -en "\007"
echo -en "\007"
- echo "You have new notifications!"
+ echo "You have
$notifications and $new
new notifications!"
read -p "Press enter to continue, or either type amfora or lagrange to go to notifications" answer
case $answer in
amfora)
read -p "Press enter to continue, or either type amfora or lagrange to go to notifications" answer
case $answer in
amfora)
@@
-55,6
+56,6
@@
echo "waiting for new notifications"
lasttime=$notifications
unset my_array
fi
lasttime=$notifications
unset my_array
fi
- sleep 60
+ sleep 60
0
done
done