Depending on how you've installed COSMIC Desktop, the Weather applet may show up in your app store by default. In COSMIC Store it should be under the "COSMIC Applets" category.
If the applet does not show up in your app store, you'll need to add cosmic-flatpak
as a source:
flatpak remote-add --if-not-exists --user cosmic https://apt.pop-os.org/cosmic/cosmic.flatpakrepo
Then, proceed to your preferred app store and search for Weather applet.
The applet can be installed using the following steps:
sudo apt install libxkbcommon-dev just
git clone https://github.com/cosmic-utils/cosmic-ext-applet-weather.git
cd cosmic-ext-applet-weather
just build
sudo just install
libxkbcommon-dev
is required by smithay-client-toolkit
The applet provides a graphical interface for entering coordinates and toggling the Fahrenheit scale. For manual configuration, follow the steps below.
Use the IP-API web service (https://ip-api.com/docs/api:json) to retrieve approximate coordinates, or alternatively, use mapping platforms like Google Maps to obtain accurate latitude and longitude.
cd ~/.config/cosmic/io.github.cosmic_utils.weather-applet/v1/
Add latitude:
touch latitude
echo "12.123163" > latitude
Add longitude:
touch longitude
echo "23.811234" > longitude
Toggle Fahrenheit:
touch use_fahrenheit
echo "true" > use_fahrenheit
To refresh the applet simply run pkill cosmic-panel
To uninstall files installed by just install
, run:
sudo just uninstall