Hi, I'm looking at fixing the Weather plugin and I've noticed that http://archive.xfce.org/geolocation thinks I'm in Spain and looks up the wrong ip: colin@paperstreet:~$ ifconfig ppp0 ppp0 Link encap:Point-to-Point Protocol inet addr:213.41.244.236 P-t-P:62.4.16.251 Mask:255.255.255.255 inet6 addr: fe80::4fe:5278:56aa:a2/10 Scope:Link UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1452 Metric:1 RX packets:4310885 errors:0 dropped:0 overruns:0 frame:0 TX packets:3495757 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:3394376409 (3.3 GB) TX bytes:1272753570 (1.2 GB) colin@paperstreet:~$ curl http://archive.xfce.org/geolocation <Response> <Ip>95.60.187.66</Ip> <CountryCode>ES</CountryCode> <CountryName>Spain</CountryName> <RegionCode>56</RegionCode> <RegionName>Catalonia</RegionName> <RegionName>0</RegionName> <City>Santpedor</City> <Latitude>40.783298</Latitude> <Longitude>1.850000</Longitude> </Response>
ping? (In reply to comment #0) > http://archive.xfce.org/geolocation thinks I'm in Spain and looks up the > wrong ip: Do you use any VPN or something like that?
Is there a way to tell curl to follow referrer requests? Alternatively, please fix the URL in the sources. $ curl http://archive.xfce.org/geolocation <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="http://geoip.xfce.org">here</a>.</p> <hr> <address>Apache/2.2 Server at archive.xfce.org Port 80</address> </body></html> $ curl http://geoip.xfce.org <Response> <Ip>91.119.141.245</Ip> <CountryCode>AT</CountryCode> <CountryName>Austria</CountryName> <RegionCode>09</RegionCode> <RegionName>Wien</RegionName> <AreaCode>0</AreaCode> <City>Vienna</City> <Latitude>48.200001</Latitude> <Longitude>16.366699</Longitude> </Response>
(In reply to Raphael Groner from comment #2) > Is there a way to tell curl to follow referrer requests? Alternatively, > please fix the URL in the sources. Yep, curl -L http://archive.xfce.org/geolocation [andre@andre-desktop ~]$ curl -L http://archive.xfce.org/geolocation <Response> <Ip>191.33.58.139</Ip> <CountryCode>(none)</CountryCode> <CountryName>(none)</CountryName> <RegionCode>(none)</RegionCode> <RegionName>(none)</RegionName> <AreaCode>(none)</AreaCode> <City>(none)</City> <Latitude>(none)</Latitude> <Longitude>(none)</Longitude> </Response> Now it seems to be completely broken.
Yep, the geoip database is outdated. I'll update this part and enable https on geoip.xfce.org . The weather plugin use geoip.xfce.org to auto set location, and crash when there is utf-8 character.
By adding GeoIPEnableUTF8 On, the UTF-8 problem is fixed. GeoIP database is now updated, location detection is more accurate. https incoming.