commit 5bf67b2f310c70833c44dbc7e995685e85c5f377 Author: Joerg Date: Mon Feb 24 15:55:03 2025 +0100 initial diff --git a/htdocs/index.html b/htdocs/index.html new file mode 100644 index 0000000..ab5b39d --- /dev/null +++ b/htdocs/index.html @@ -0,0 +1,182 @@ + + + +Ranking + + + + + + +

IARU Ranking
DJ7NT+Friends

+

a service by DJ7NT

+
+ + + + + + + + + + + + + + + +
Rank  Call  Score  Pt/QSO  QSOs
+
+
You want to be on this list? Drop DJ7NT a message (Matrix, Mail, QSO, Avian Carrier...)
+ + + + + diff --git a/stands2.sh b/stands2.sh new file mode 100755 index 0000000..89825f7 --- /dev/null +++ b/stands2.sh @@ -0,0 +1,12 @@ +LAST=`date '+%F %H:%M:%Sz' -u` +echo \{\"data\":\[ + +for call in DJ7NT DG2RON DG0TM; do + URL="https://hamaward.cloud/aw363?iframe=1&nojs=1&tab=4&activator_call=X&score=1&callsign=$call&country=&score_name=all_mix" + VAL=`curl --silent $URL` + SCORE=`echo "$VAL" |grep -A1 '
' |grep nobr |awk {'printf $1"\n"'} |sed -e 's/<.*>//g'` + QSOS=`echo "$VAL" |grep -A1 '
' |head -2 |tail -1 |sed -e 's/<[^>]*>//g' |sed -e 's/\W//g'` + OUT="${OUT} {\"call\":\"$call\", \"score\":$SCORE, \"qsos\":$QSOS}," +done +echo -n $OUT |sed -e 's/\,$//g' +echo \],\"date\":\"$LAST\"\}