Skip to content

Conversation

@queenkjuul
Copy link

@queenkjuul queenkjuul commented Nov 21, 2024

Weather Widget for cinnamon-screensaver

Adds a new type of floating widget (similar to Clock and AlbumArt) that displays a weather icon alongside the current weather conditions. Utilizes OpenWeatherMap for weather data and GeoJS.io for location data. Models and interfaces are designed to be mostly compatible with the Weather applet in cinnamon-spices-applets/weather@mockturtl so that additional Weather and Location providers can be easily added.

The OpenWeatherMap API key from the cinnamon-spices-applets has been reused to enable out-of-the-box operation.

Dependencies

App will crash until the dconf schema is updated.

PR with the new schema in cinnamon-desktop is here:

linuxmint/cinnamon-desktop#246

PR with updated cinnamon-settings screensaver module here:

linuxmint/cinnamon#12516

In the meantime:

  1. download the new schema file from the above PR
  2. Backup /usr/share/glib-2.0/schemas/org.cinnamon.desktop.screensaver.gschema.xml
  3. Move the downloaded org.cinnamon.desktop.screensaver.gschema.xml.in file to /usr/share/glib-2.0/schemas/org.cinnamon.desktop.screensaver.gschema.xml (rename it to remove the .in at the end)
  4. run sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
  5. use dconf-editor or another means to set the relevant settings in org.cinnamon.desktop.screensaver

image

@leigh123linux
Copy link
Contributor

Please squash the commits.

Get basic temperature, conditions, location working with scaled icon

Code cleanup

Add IP Geolocation to weather component

Cleanup, settings integrations, bugfixes, translation

Fix Localization

cleanup
@queenkjuul
Copy link
Author

Please squash the commits.

all done. cleaned up some formatting too. Double-checked, seems ok from here (feedback welcome of course)

@clefebvre
Copy link
Member

Ok, first things first, this is pretty cool :)

I don't want this to get into Cinnamon at the last minute. I think we should think about how weather is integrated as a whole into the desktop.. because this spans across an applet, a desklet, a screensaver.. which all deserve to be part of the Cinnamon core.

In 6.4 we're also introducing Night Light.. and that (for the moment) reads our system timezone, but it also could potentially let the user define a position or calculate a position using geoip... and that's something which is quite global, as it can be useful here again for this weather-related set of features.

Anyway, all this to say let's postpone this and give ourselves another 6 months to think about it.

@clefebvre clefebvre changed the title Add basic weather information to screensaver [Next] Add basic weather information to screensaver Nov 26, 2024
@queenkjuul
Copy link
Author

Ok, first things first, this is pretty cool :)

I don't want this to get into Cinnamon at the last minute. I think we should think about how weather is integrated as a whole into the desktop.. because this spans across an applet, a desklet, a screensaver.. which all deserve to be part of the Cinnamon core.

In 6.4 we're also introducing Night Light.. and that (for the moment) reads our system timezone, but it also could potentially let the user define a position or calculate a position using geoip... and that's something which is quite global, as it can be useful here again for this weather-related set of features.

Anyway, all this to say let's postpone this and give ourselves another 6 months to think about it.

Yeah as I was working on this, it occurred to me that it would make sense to have centralized weather + location providers in Cinnamon to feed the desklet/applet/widget. Honestly the geolocation API already established in cinnamon-spices-applets/weather seems pretty robust and fleshed out, probably fairly easy to just incorporate that into the system.

But this was a purely selfish PR, it's a feature I was fed up with living without lol so do with it what you will, I'll just keep running my personal builds until whenever.

@clefebvre clefebvre changed the title [Next] Add basic weather information to screensaver Add basic weather information to screensaver Feb 24, 2025
icon.

Not all icon themes have the same set of weather condition icons.
The condition metadata can contain multiple icons:

icons=['weather-overcast', 'weather-clouds', 'weather-few-clouds']

Providing all of these for the icon lookup improves the chances of
a valid match being found (including -symbolic if that's all that
is available).
@mtwebster
Copy link
Member

Hi, please see my PR.

Also, for both this and the cinnamon pull request, please don't run makepot - this gets done prior to the next major version release, not during development - it can make it difficult to test pull requests if the potfile has changed.

Thanks!

@queenkjuul
Copy link
Author

Hi, please see my PR.

Also, for both this and the cinnamon pull request, please don't run makepot - this gets done prior to the next major version release, not during development - it can make it difficult to test pull requests if the potfile has changed.

Thanks!

sorry, I think on one of the related PRs (cinnamon-settings maybe) someone asked me to resolve conflicts, and they were all pot-related, so I figured makepot was the right move. I've never used makepot before so really not familiar with the process.

@queenkjuul queenkjuul requested a review from mtwebster September 9, 2025 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants