Skip to content
/ wttrbar Public
forked from bjesus/wttrbar

Custom module for showing the weather in Waybar, using the great wttr.io

License

Notifications You must be signed in to change notification settings

nut-3/wttrbar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wttrbar

a simple but detailed weather indicator for Waybar using wttr.in.


Installation

Compile yourself using cargo build --release, or download the precompiled binary from the releases page.

For Arch Linux, use the AUR package.

For NixOS, use the NixPkg package.

Usage

  • --ampm - display time in AM/PM format
  • --location - pass a specific location to wttr.in
  • --main-indicator - decide which current_conditions key will be shown on waybar. defaults to temp_C
  • --date-format - defaults to %Y-%m-%d, formats the date next to the days. see reference
  • --hide-conditions - show a shorter descrpition next to each hour, like 7° Mist instead of 7° Mist, Overcast 81%, Sunshine 17%, Frost 15%
  • --fahrenheit - use fahrenheit instead of celsius
  • --vertical-view - shows the icon on the first line and temperature in a new line
  • --custom-indicator "<CUSTOM_INDICATOR>" - optional expression that will be shown instead of main indicator. current_conditions keys surrounded by {} can be used.
    e.g. "{ICON}{temp_C}({FeelsLikeC})" will be transformed to "text":"🌧️0(-4)" in output

e.g. wttrbar --date-format "%m/%d" --location Paris --hide-conditions

Waybar configuration

Assuming wttrbar is in your path, it can be used like:

"custom/weather": {
    "format": "{} °",
    "tooltip": true,
    "interval": 3600,
    "exec": "wttrbar",
    "return-type": "json"
},

Old version

This code is based on my old Python gist that was used for the same purpose.

About

Custom module for showing the weather in Waybar, using the great wttr.io

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%