! 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 !
It is not possible to change weather forecast location anymore
Status:
RESOLVED: FIXED
Product:
Xfce4-weather-plugin
Component:
General

Comments

Description Marcin Kocur 2017-09-20 20:49:40 CEST
Hello,

since some time it is not possible anymore to change the place from where you see the weather forecast.

So lets say I have an applet with London and I right click on it, select Properties, then Change... and I type Manchester. It doesn't find anything there.

Anyway, thanks a lot for a great applet and for your work!
Comment 1 Marcin Kocur 2017-09-26 20:57:48 CEST
Debug info:
weather-Message: retrieving http://nominatim.openstreetmap.org/search?q=Wrocław&format=xml
Entity: line 23: parser error : Opening and ending tag mismatch: html line 1 and head
</head>
       ^
Comment 2 Szymon Siwek 2017-10-03 14:00:13 CEST
Created attachment 7341 
setting user agent (required by http://nominatim.openstreetmap.org)

It seems we have to set proper user agent:

```
<h1>Access blocked</h1>

<p>You have been blocked because you have violated the
<a href="https://operations.osmfoundation.org/policies/nominatim/">usage policy</a>
of OSM's Nominatim geocoding service.
```
Comment 3 Simon Steinbeiss editbugs 2017-10-09 22:54:49 CEST
(In reply to Szymon Siwek from comment #2)
> Created attachment 7341 
> setting user agent (required by http://nominatim.openstreetmap.org)
> 
> It seems we have to set proper user agent:

Yes, that makes a lot of sense, especially after reading the docs. However trying your patch doesn't fix the problem for me here.
My guess is that we have overused the nominatim quota.
Comment 4 Git Bot editbugs 2017-10-10 17:19:47 CEST
Szymon Siwek referenced this bugreport in commit 7c976663e8790e5b06ca31a4a3165b11aeb89f11

Set USER_AGENT for nominatim search (bug #13877)

https://git.xfce.org/panel-plugins/xfce4-weather-plugin/commit?id=7c976663e8790e5b06ca31a4a3165b11aeb89f11
Comment 5 Harald Judt editbugs 2017-10-10 17:22:42 CEST
Pushed as it makes sense and makes it work for me. I will make a new release this week or the next.
Comment 6 Harald Judt editbugs 2017-10-11 22:22:21 CEST
Released 0.8.10.

Bug #13877

Reported by:
Marcin Kocur
Reported on: 2017-09-20
Last modified on: 2017-10-11

People

Assignee:
Harald Judt
CC List:
3 users

Version

Attachments

Additional information