Small, weird thing with Gnome Weather app today

I found a small, weird thing with Gnome Weather app today (v46.0-1). The bottom text should be like "Weather data from Norwegian Meteorological Institute." As you can see in this image, the hyperlink is missing.

Is this normal? What do I do?

Hi Ryo,

The same version on two computers I tested (22.04 and 24.04) do show the link of the "Norwegian Meteorological Institute" and it works too.

I usually don't use gnome-weather. Could it be that your location is not indexed ?
It reads 'Cavite' which seems odd to me.
It should be 'Placename, Countryname' for all I know.

Could you run the following from terminal ?

gsettings get org.gnome.GWeather4 default-location

it should output

('','EHBK', @m(dd) nothing)

EHBK or any other valid four letter location code

2 Likes

I share the same observation as you. My location was previously indexed on the version that ships out-of-the-box on Jammy Jellyfish. Now, it doesn't seem to appear in the search field anymore.

The output of the said command is as follows, which seems pretty normal to me.

('', 'KNYC', @m(dd) nothing)

I've switched location to the closest city to me available in the index (Manila, Philippines) and Barcelona, Spain but to no avail either.

KNYC is New York, It might be good to change that.

This is a excerpt from /usr/share/libgweather/Locations.xml

     <tz-hint>Asia/Manila</tz-hint>
      <location>
        <name>Clarkfield Pampanga International Airport</name>
        <code>RPLC</code>
        <coordinates>15.183333 120.550000</coordinates>
      </location>

It seems that it might be an idea to change the code to RLPC

The easiest way to do that is to install dconf-editor

sudo apt install dconf-editor

Start dconf-editor and browse to "/ org / gnome / GWeather / default-location"

There is a switch called 'Use default value'
set it to on, if it is already on, switch it to off and then on.

If it still reads ('', 'KNYC', nothing), despite your localisation and language settings, you can switch the 'Use default value' off again and change the value into ('', 'RPLC', nothing)

I hope this helps.

2 Likes

Some explanation about the weird ('', 'RPLC', nothing) format:

  1. The first field is the name that will be shown.
    If empty, it will be taken from the locations database.

  2. The second field is the METAR code for the default weather station.
    It must not be empty and must correspond to a tag in the Locations.xml file

  3. The third field is a tuple of (latitude, longitude), to override the value taken from the database. This is only used for sunrise and moon phase calculations, not for weather forecast. An empty field is not accepted so the reserved keyword 'nothing' will be appropriate in this case.

3 Likes

Thanks tkn! I've followed your instructions carefully, but to no avail still. Even after reinstalling Ubuntu MATE today (since I accidentally corrupted it when I was messing with something). We might've come to a standstill here...

I tried gnome-weather on two of the other UM 24.04 LTS computers and I could reproduce the same issue as you described :smiley:

Read on:

After installation of gnome-weather and setting the location, the link with "Weather data from Norwegian Meteorological Institute" seems to be missing.

BUT: it turns out that it's not missing, it is there but just invisible.

WHY?:
GNOME introduced their own theming setup which is completely incompatible with everybody else. This is not the first time that the community must deal with the fallout of "the GNOME way" of doing things.

After installing, the theme of gnome-weather does not get initialized because MATE does not themes in "the GNOME way" so some colors (like the links) are blank.

HOW TO SOLVE?:
I forced gnome apps to follow my theme by adding this line to ~/.profile:

export GTK_THEME=Ambiant-MATE-Dark-Red:dark

And then the colors got initialized and the problem solved.

You probably want something else depending on your theme and I saw you prefer light, so the syntax is:
export: GTK_THEME=your_MATE_theme:light
So if you have default Yaru the line should be:

export GTK_THEME=Yaru:light

log out and login again and start gnome-weather.
You'll see that the link has appeared.

Oh, and don't forget to file a bug here:

4 Likes

That's rather unfortunate, I suppose that is with libadwaita? That aside, I followed as you said and it did work. Thank you! I'd be filing a bug report asap. Have a good one!

1 Like