Difference between revisions of "User:Klaus"
From Geohashing
imported>Klaus (fixed geohash #2) |
imported>Klaus (updated achievements) |
||
Line 14: | Line 14: | ||
== Achievements == | == Achievements == | ||
+ | |||
+ | Each achievement only once: | ||
{{land geohash | {{land geohash | ||
+ | |||
| latitude = 48 | | latitude = 48 | ||
| longitude = 8 | | longitude = 8 | ||
Line 21: | Line 24: | ||
| name = [[User:Klaus|Klaus]] | | name = [[User:Klaus|Klaus]] | ||
}} | }} | ||
+ | |||
+ | * [[2015-05-17 48 8]] | ||
+ | * [[2015-06-12 48 9]] | ||
+ | |||
+ | {{bicycle geohash | ||
+ | | latitude = 48 | ||
+ | | longitude = 8 | ||
+ | | date = 2015-05-17 | ||
+ | | name = [[User:Klaus|Klaus]] | ||
+ | | distance = 42km | ||
+ | | bothways = true | ||
+ | }} | ||
+ | |||
+ | * [[2015-05-17 48 8]] (42km) | ||
+ | * [[2015-06-12 48 9]] (36km) | ||
+ | |||
+ | |||
== Bash Script == | == Bash Script == |
Revision as of 17:22, 12 June 2015
26 / m / 48,9
My home coordinates are plusminus 48.53,9.06 in the city of Tuebingen, Germany.
I was born and lived for a long time in 49,11 and still am there from time to time.
Geohashes
Finally I started with geohashing after years of just watching and checking the coordinates like once every few months :)
- 1. 2015-05-17 48 8 on a field in Neustetten, Rottenburg
- 2. 2015-06-12 48 9 very near to the area of the golf club "Schönbuch"
Map: http://xkcd.nathanwoodruff.com/GooMapXKCDKlaus.htm
Achievements
Each achievement only once:
Klaus earned the Land geohash achievement
|
Klaus earned the Bicycle geohash achievement
|
- 2015-05-17 48 8 (42km)
- 2015-06-12 48 9 (36km)
Bash Script
As I always forget to look up the coordinates, I hacked this (very ugly) bash script to let a daily cronjob inform me per email, whenever a geohash is near to me:
#!/bin/bash maxdistance=15 a=$(curl 'http://tjum.anthill.de/cgi-bin/geohash.cgi?lat=48.53&lon=9.06&nr=1&map=0&size=240x240&t=&date=&unit=km' 2>/dev/null | iconv -f 'iso8859-1' -t 'utf8' | sed 's/<br>/\n/g' | sed 's/ / /g' | fgrep 'km' | cut -d ':' -f2 | cut -d 'k' -f1 | sort -n | head -n 1 | cut -d '.' -f 1) echo $a if [ $a -lt $maxdistance ] then echo 'http://tjum.anthill.de/cgi-bin/geohash.cgi?t=1&nr=o&unit=km&zoom=11%2F5&zoom=8%2F2&type=roadmap&lat=48.53&lon=9.06&size=240x240' | mail -s "geohash is near to tuebingen ($a)" USERNAME fi
I just parses the small hash inquiry tool from Ekorren in the most complicated way and sends the mail via a local mailserver :)