get latitude and longitude values from a geoip database
in bash this is as simple as
$ geoiplookup $(curl -s https://ipinfo.io/ip) | grep "^GeoIP City Edition, Rev 1:" | cut -d, -f7-8
47.960899, 12.596100
this is just an approximation
in my case the error is 15km
but still better than the default value 0, 0
this should not be done automatically
only when the user clicks "guess location"
keywords: sunrise/sunset coordinates
get latitude and longitude values from a geoip database
in bash this is as simple as
this is just an approximation
in my case the error is 15km
but still better than the default value 0, 0
this should not be done automatically
only when the user clicks "guess location"
keywords: sunrise/sunset coordinates