[tarent-useful-scripts SCM] {mirkarte} branch master updated. fdefd918ffcb5d86b5310ffb1159aefcf68bac99
mirabilos at evolvis.org
mirabilos at evolvis.org
Tue Jul 18 15:28:05 CEST 2017 • <20170718132805.716384A030B@evolvis.org>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MirKarte source code repository".
The branch, master has been updated
via fdefd918ffcb5d86b5310ffb1159aefcf68bac99 (commit)
from 50283e825d17343f75d002135183a658253d5909 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit fdefd918ffcb5d86b5310ffb1159aefcf68bac99
Author: mirabilos <m at mirbsd.org>
Date: Tue Jul 18 15:27:53 2017 +0200
switch from LOC (currently broken) to GPX
-----------------------------------------------------------------------
Summary of changes:
geodashing.cgi | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/geodashing.cgi b/geodashing.cgi
index 6dae229..efc2671 100755
--- a/geodashing.cgi
+++ b/geodashing.cgi
@@ -1,6 +1,6 @@
#!/bin/mksh
#-
-# Copyright © 2014
+# Copyright © 2014, 2017
# Thorsten “mirabilos” Glaser <tg at mirbsd.org>
#
# Provided that these terms and disclaimer and all copyright notices
@@ -100,8 +100,9 @@ Content-type: text/html; charset=utf-8
EOF
print " mirkarte_default_loc = [$deflat, $deflon, $defzoom];"
-"${fetch[@]}" "http://geodashing.gpsgames.org/cgi-bin/stats.pl?startmonth=$defmon&startyear=$defyear&endmonth=$defmon&endyear=$defyear&radius=200&lat_1=$deflat&lon_1=$deflon&statstype=circle&download=Download&downloadformat=LOC" | \
- xmlstarlet sel -t -m //waypoint -v name/@id -o ' ' -v coord/@lat -o ' ' -v coord/@lon -n |&
+"${fetch[@]}" "http://geodashing.gpsgames.org/cgi-bin/stats.pl?startmonth=$defmon&startyear=$defyear&endmonth=$defmon&endyear=$defyear&radius=200&lat_1=$deflat&lon_1=$deflon&statstype=circle&download=Download&downloadformat=GPX" | \
+ sed '1s/ xmlns="[^"]*"//' | \
+ xmlstarlet sel -t -m //*/wpt -v name -o ' ' -v @lat -o ' ' -v @lon -n |&
n=0; print " var geodashing_arr = ["
while read -pr id lat lon; do
[[ $id = [0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z][0-9A-Z] ]] || continue
hooks/post-receive
--
MirKarte source code repository
(Evolvis project useful-scripts repository mirkarte)
More information about the useful-scripts-commits
mailing list