Skip to content
Snippets Groups Projects
Commit 9dcf3ff9 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

add HUST WestV location. remove a notify voice bug in autosignin. remove...

add HUST WestV location. remove a notify voice bug in autosignin. remove player output in autosignin.
parent 16150d2b
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,12 @@ set _audio_player "mpg123"
#set _audio_player "cvlc --play-and-exit"
# Where should I signin ?
# West V
set _NorthLatitude "30.511227"
set _EastLongitude "114.41021"
# West XII
set _NorthLatitude "30.508914"
set _EastLongitude "114.40718"
#set _NorthLatitude "30.508914"
#set _EastLongitude "114.40718"
# South I
#set _NorthLatitude "30.509595"
#set _EastLongitude "114.41374"
......
#!/usr/bin/fish
set _curr (git rev-parse HEAD)
......@@ -20,18 +20,18 @@ rm $tmpfl
set signed_in false
function on_signin_success
eval $_audio_player autosignin-success.mp3
eval $_audio_player autosignin-success.mp3 > /dev/null 2>&1
eval $_notify "'Teachermate signin'" "'Signin success'"
end
function on_signin_fail
# will retry automatically
eval $_audio_player signin.mp3
eval $_audio_player signin.mp3 > /dev/null 2>&1
eval $_notify "'Teachermate signin'" "'Signin failed'"
end
function on_badid
eval $_audio_player badid.mp3
eval $_audio_player badid.mp3 > /dev/null 2>&1
eval $_notify "'Teachermate signin'" "'OpenID expired. Please restart the program with new openID'"
end
......@@ -53,7 +53,7 @@ while true
date
curl -L "$_url" -v 2>$cookiefl > $tmpfl
if grep '{"data":\[\],"msg":"unauthorized"}' $tmpfl
on_signin_fail
on_badid
continue
end
if grep '签到中...' $tmpfl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment