linuxmint / cinnamon-spices-applets

Applets for the Cinnamon desktop
http://cinnamon-spices.linuxmint.com
GNU General Public License v2.0
607 stars 510 forks source link

weather@mockturl - The use of unsupported OpenStreetMap API endpoint #4993

Open saaj opened 1 year ago

saaj commented 1 year ago
 * Applet version - 3.2.3
 * Cinnamon version - 5.2.7

Notify author of applet @Gr3q

Issue

Manual location search via https://nominatim.openstreetmap.org/search/ does not work any more as the endpoint format has changed (or a stricter validation has been put in place). See https://github.com/osm-search/Nominatim/issues/3134 for more details.

Steps to reproduce

Run the applet with manual textual location.

Expected behaviour

The applet shows the weather information.

Actual behaviour

"Service Error" displayed in the applet.

This error in the log (Melange) ``` error t=2023-08-07T16:58:18Z [weather@mockturtl#14]: Error: API response is not JSON. The response: File Not Found

File not found: API no longer accessible via this URL

Using the URL /search/ and /reverse/ (with slashes) is no longer supported. Please use URLs as given in the documentation.

Examples how to change the URL:

You use: https://nominatim.openstreetmap.org/search/?q=Berlin
Change to: https://nominatim.openstreetmap.org/search?q=Berlin

You use: https://nominatim.openstreetmap.org/search/US/Texas/Huston
Change to: https://nominatim.openstreetmap.org/search?q=Huston, Texas, US

See github issue #3134 for more details.

```

Workaround

Set coordinates in place of manual textual location.

Gr3q commented 1 year ago

The latest version (3.3.1) should fix this. It was merged on 5th of Aug, I don't know why it doesn't show up as an update.