https://github.com/cosmic-utils/cosmic-ext-applet-weather
Simple weather info applet for cosmic.
https://github.com/cosmic-utils/cosmic-ext-applet-weather
applet cosmic weather
Last synced: 10 months ago
JSON representation
Simple weather info applet for cosmic.
- Host: GitHub
- URL: https://github.com/cosmic-utils/cosmic-ext-applet-weather
- Owner: cosmic-utils
- License: gpl-3.0
- Created: 2025-06-07T17:04:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-15T16:25:26.000Z (12 months ago)
- Last Synced: 2025-06-15T17:26:06.305Z (12 months ago)
- Topics: applet, cosmic, weather
- Language: Rust
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple weather info applet for cosmic
## Installation
### Flatpak
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:
```sh
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.
### Manual
The applet can be installed using the following steps:
```sh
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`
## Configuration
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._
```sh
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`
## Uninstall
To uninstall files installed by `just install`, run:
```sh
sudo just uninstall
```