Crates.io | waybar_weather_display |
lib.rs | waybar_weather_display |
version | 0.3.0 |
source | src |
created_at | 2022-07-31 04:44:41.598969 |
updated_at | 2022-08-25 05:16:27.612901 |
description | Waybar Weather Display Module using OpenMeteo API |
homepage | |
repository | https://github.com/MichaelPetersen22/waybar_modules.git |
max_upload_size | |
id | 635950 |
size | 35,692 |
With Pre-Requisites already installed
cargo install waybar_weather_display
Alternatively you can just run
curl https://raw.githubusercontent.com/MichaelPetersen22/waybar_modules/main/weather_install.sh -sSf | sh
If you want to also install the font used with the weather icons, run the below script
curl https://raw.githubusercontent.com/MichaelPetersen22/waybar_modules/main/weather_install.sh| bash -s -- yes
cargo
curl https://sh.rustup.rs -sSf | sh
otf-font-awesome
sudo pacman -S otf-font-awesome
The command is not intended to be used on it's own as it prints back a json for waybar to read and convert into the module.
Example usage in waybar config is included below
"custom/weather": {
"interval": 900,
"return-type":"json",
"exec":"waybar_weather_display --latitude 51.5085 --longitude -0.1257",
"format-alt": "{} ",
"format":"{alt} ",
"format-alt-click":"click-right",
"escape": true
}
Pay special attention to the "exec" field as that is where the module is called.
For details on how to use the command and the default values of the command, run waybar_weather_display --help
Configuration File Support
Additional CLI Parameters with Config File Support (i.e. Custom Icons, Custom Weather Condition Text)
Additional Return Data (I.e. get temperature, Humidity, Rain)
Rework to use nerd icons in place of Font Awesome, as font awesome does not have very many weather icons