Wedder displays the current weather condition and temperature in a configurable format for status bars like polybar. The current weather is pulled from OpenWeatherMap and you can either set a location manually or let it be determined by your IP.
Install the stable or development AUR package with your package manager of choice.
Download a binary from the releases page.
Compile the source code:
make build
and place the executable in your path.
Note: Cargo is required for building.
Because the OpenWeatherMap API is restricted, you have to get an API key by creating a free account. After the API key is activated you can then pass it to wedder using
wedder -k <weather_api_key>
For more info use
wedder --help
You can also provide the API key via config file. An example config is located here. The default path wedder expects for the config file can be viewed using
wedder -p
All config options except the weather condition icons can be overridden by passing CLI options. The weather condition icons can only be set via config file.
Yet another option is providing the API key via an environment variable:
export WEDDER_WEATHER_API_KEY=<api_key>
Add a custom script module to your polybar config as shown in the example snippet.
The example config uses Nerd Fonts to display the weather icons.
You can install the complete Nerd Fonts package but I wouldn't recommend it, as it is multiple GBs in size.
A better option is to pick a single font like Noto Sans and install it manually.
For Linux this means placing the .ttf
file in /usr/share/fonts/TTF
.
There is also an AUR package for this single font.
Another option is using the Weather Icons font which is also included in Nerd Fonts. If you are using other fonts however like Font Awesome there will most likely be conflicts.
When starting wedder, the following error occurs:
wedder: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
Solution: install libssl1.0.0
or openssl-1.0
respectively according to your distribution.