JubilantJaguar@lemmy.world
on 03 Nov 18:43
nextcollapse
Interesting. Possibly useful to some. I have also discovered that the simplest, most privacy-friendly way to update location is just to do it manually when you change location.
I have a simple script that does this by querying OpenStreetMap’s Nominatim server with the city name. It feeds the resulting coordinates thru a Python library that deduces the timezone, and sets the system time to this.
SnotFlickerman@lemmy.blahaj.zone
on 03 Nov 18:51
nextcollapse
They could if GeoClue was reliable. The problem is that it often doesn’t work, so I doubt anyone would want to use it as a source to set their time zone.
threaded - newest
Interesting. Possibly useful to some. I have also discovered that the simplest, most privacy-friendly way to update location is just to do it manually when you change location.
I have a simple script that does this by querying OpenStreetMap’s Nominatim server with the city name. It feeds the resulting coordinates thru a Python library that deduces the timezone, and sets the system time to this.
<img alt="" src="https://lemmy.blahaj.zone/pictrs/image/4fe64cd7-c5dd-4ffc-98fb-ecd2bae9d6fd.webp">
EDIT: I’m so happy.
That image would make a great wallpaper without the project’s name on it.
Ah, ok, got a little confused… GeoClue TZ is an improvement on GeoClue
I didn’t even know this was a thing, I just dealt with this manually - now feeling a little silly.
Then someone will write an utility that automatically sets timezone using geoclue location data.
They could if GeoClue was reliable. The problem is that it often doesn’t work, so I doubt anyone would want to use it as a source to set their time zone.