From 5bf67b2f310c70833c44dbc7e995685e85c5f377 Mon Sep 17 00:00:00 2001 From: Joerg Date: Mon, 24 Feb 2025 15:55:03 +0100 Subject: [PATCH] initial --- htdocs/index.html | 182 ++++++++++++++++++++++++++++++++++++++++++++++ stands2.sh | 12 +++ 2 files changed, 194 insertions(+) create mode 100644 htdocs/index.html create mode 100755 stands2.sh 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\"\}