! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Locate weather stations by IP
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfce4-weather-plugin
Component:
General

Comments

Description Tomasz Paweł Gajc 2009-06-16 22:37:01 CEST
First, you have to manually type your city(in most cases this is a biggest city near your location), in english.

Well this would be better to fetch weather for your location by IP(if this does not work, use manual search, like it is now).

Looks like there are some tips how it could work:

http://developerlife.com/tutorials/?p=129
http://developerlife.com/tutorials/?p=18

WDYT?
Comment 1 Colin Leroy 2009-06-17 06:46:41 CEST
I thought about it - I had looked at geoclue: 
http://www.freedesktop.org/wiki/Software/GeoClue

With a good enough localisation service, the thing could even update the location when you're travelling. The problem is that IP-based geolocation is really error prone (with 2 out of my 3 usual places being detected as "Paris, France" whereas I'm 700 kilometers away).

So, if I add this, it'll be just for the initial plugin configuration.
Comment 2 Tomasz Paweł Gajc 2009-06-17 16:17:11 CEST
Well you can add this, but please don't drop current behaviour, because it couyld be used as a fallback if user decides that location is wrong
Comment 3 Tomasz Paweł Gajc 2009-06-17 17:37:13 CEST
Well you can add this, but please don't drop current behaviour, because it couyld be used as a fallback if user decides that location is wrong
Comment 4 Christian Dywan 2009-06-17 21:55:04 CEST
I think for a default, this would be quite neat. For what I want,the IP usually refers to the next big city, and as long as it can easily be adjusted it doesn't hurt if it's not exact.

And maybe you can add some kind of notification when the location at login time is different, ie. if it looks like I'm travelling in the Netherlands rather than at home in Germany, add a button that lets me use the suggested local weather if I like. If you are fancy, offer me to restore my home weather when I'm back.
Comment 5 Colin Leroy 2009-06-18 17:54:08 CEST
Please test latest SVN, guys. I've implemented automatic location setting at first startup - not on each connection change for now - so you'll have to add a new Weather Update to your panel.
Comment 6 Tomasz Paweł Gajc 2009-06-25 18:49:16 CEST
Looks like this works like a charm. Great work Colin ;)

Bug #5475

Reported by:
Tomasz Paweł Gajc
Reported on: 2009-06-16
Last modified on: 2010-11-09

People

Assignee:
Colin Leroy
CC List:
3 users

Version

Version:
0.7.3 or older

Attachments

Additional information