An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# Simple weather info applet for cosmic


Applet Screenshot


Applet Screenshot


Applet Screenshot


Applet Screenshot

## 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
```