Thundery is a command-line application that fetches and displays weather information from the OpenWeatherMap API.
Thundery's idea, structure and design is based off Rainy but writen in Rust instead of Python making it 25% faster!!
-
Clone the repository:
git clone https://github.com/loefey/thundery.git cd thundery
-
Build the project using Cargo:
cargo build --release
I suggest running cargo install --path .
to install thundery instead of just building it
AUR: Thundery is on the AUR! You can now use your favourite AUR helper to download Thundery.
https://aur.archlinux.org/packages/thundery
The application uses a configuration file located at ~/.config/thundery/thundery.toml
(or C:\Users\<username>\AppData\Roaming\thundery\thundery.toml
on Windows). If the configuration file does not exist, a default one will be created.
api_key
: Your OpenWeatherMap API key.city
: The city for which to fetch weather data.units
: Units for temperature and wind speed (metric
orimperial
).timeplus
: Hours to add to the UTC timezone, you can find your timezone here https://www.timeanddate.com/.timeminus
: Hours to subtract from the UTC timezone, you can find your timezone here https://www.timeanddate.com/.showcityname
: Whether to display the city name (true
orfalse
).showdate
: Whether to display the current date (true
orfalse
).timeformat
: Time format for sunrise and sunset times (24
or12
).use_colors
: Enables and disabled text colors (true
orfalse
).
Example configuration:
api_key = "your_api_key"
city = "London, GB"
units = "metric"
timeplus = 0
timeminus = 0
showcityname = true
showdate = true
timeformat = "24"
use_colors = false