I can't find my city in weather app. I was able to find it before.
So, the locations are provided using an internal database of known locations, instead of looking them up online. I assume this is to avoid overwhelming the service provider, or to make the lookup faster.
The responsible thing to do first and foremost is to add your city to this database so that it's available in the future. Instructions on how to do this are here:
Looking into this a bit I found a script that your can run and that will help set your location:
-
Create a text file in your home folder, where you also have the rest of directories like Documents, Pictures, etc, with the name "add-location-to-gnome-weather.sh".
Where you place or what you call this text file is not important, though. I'm suggesting placing it right in your home folder for simplicity.
-
The contents of this file should be as per the script found here.
-
Make the script executable by running this in a terminal:
chmod u+x $HOME/add-location-to-gnome-weather.sh -
And then you can run it with:
$HOME/add-location-to-gnome-weather.sh
For example, I'm using a city in Brazil called "Jardim do Seridó", in the state of "Rio Grande do Norte", which does not appear as a valid location in Gnome Weather:
Notice that I ran this a few times trying different combinations of the name of city. Sometimes, I got an incorrect result (first result), while other times I got an invalid response, or no results at all. So, when you use this script, make sure to remove any non-ASCII characters if you can like ó to improve the search.
After this, it loads right up:
Hi,
as far as I know, the weather data comes from “libgweather.” Their data, in turn, is provided by METAR weather stations. If the station does not provide any data, the city will not appear in the corresponding XML file.
Here are some more tips:
And the XML file in question. If the city is not listed there, you will probably not find it in the app either.
Why do I need to do these? It was working before.
That, I don't know. I can only guess that a recent update has removed this location for some reason?
Is this the .deb Version of Gnome Weather or the Flatpak? Did you manually added Your Location or was it set by Location Services?
Default time date app
I had this issue but used the script in this thread to add my home location, it's odd as my home location was in Zorin OS 17. The closest location for me now is Lyneham.
Yes, Sheffield (I think) was there before, but not even major cities outside of London come up in Zorin 18 (Manchester, York). Appears only capital cities are shown (London, Edinburgh). No such issue for me on a Plasma OS that gives option of either Wetter.com (my personal preference) or BBC Weather.
I have the same issue, i'm in France in a city named "Ramonville Saint Agne", it doesn't find it so instead i use the closest city which is "Toulouse"
The data comes from the Norwegian Meteorological Service. If you can find your location here, it's likely that you can add it to the list.
@Zac0511 Is this the one?
EDIT:
By the way, on the site to download the script, there's a button on the right-hand side of the screen to download it directly:
Yep thats my city
I'l add download the script when i'm home.
Step-by-step instructions:
Add your own locations to GNOME Weather
The script does not need to be installed, as it is usually only needed once. Simply download it from GitLab and make it executable:
$ wget https://gitlab.com/julianfairfax/scripts/-/raw/main/add-location-to-gnome-weather.sh
$ chmod +x add-location-to-gnome-weather.sh
Then you can start it and enter the desired location:
$ ./add-location-to-gnome-weather.sh
The script then asks for the desired city and suggests a suitable selection:
$ ./add-location-to-gnome-weather.sh
Type the name of the location you want to add to GNOME Weather: Ravensburg
If this is not the location you wanted, consider adding search terms
Are you sure you want to add Ravensburg, Verwaltungsverband Mittleres Schussental, Landkreis Ravensburg, Baden-Württemberg, Deutschland? [y/n] : y
Adding location
just added it with the script, thanks !





