Adding new city with weather info to the Clock applet in Gnome

It’s simpler than expected, just edit the /usr/share/libgweather/Locations.xml file. You’ll need to add your coordinates and the ICAO Location Indicator of your location.

Like this:

<location><name>Duesseldorf</name><code>EDDL</code><coordinates>51.241461 6.730229</coordinates></location></city>

(As this XML file is rendered in one line it’s not that easy on every editor.)

Make a backup of the modified file: each libgweather update will overwrite your modified Location.xml!