a highly customizable weather module for Waybar inspired by wttrbar using wttr.in
I am working on a new weather module which will have multiple sources for fetching the weather data.
pip install git+https://github.com/kurtnettle/wttrbarpy.git
-
--ampm
- show time in AM/PM format. defaults toFalse
-
--custom-indicator
- customize the indicator. -
--date-format
- formats the date next to the days. see reference. defaults to%A-%b-%d
-
--emoji
- replace icons with emojis. defaults toFalse
-
--fahrenheit
- use fahrenheit instead of celsius. defaults toFalse
-
--format-type
- specify the global output format type (1 only text, 2 only icon/emoji, 3 text with icon/emoji). defaults to2
-
--hide-conditions
- hide extra conditions next to each hour description, like20° Cloudy
instead of20° Cloudy, Overcast 81%, Sunshine 13%
. defaults toFalse
-
--hide-wind-details
- removes extra wind details (wind direction and degree). defaults toFalse
-
--location
- specify a location. defaults toNone
(i.e your current location) -
--main-indicator
- decide whichcurrent_conditions
key will be shown on Waybar. defaults totemp_C
-
--max-conditions
- limit the number of conditions to show next to each hour description. defaults to0
(shows all available) -
--neutral-icon
- show neutral icon instead of daytime/nighttime icons. defaults toFalse
-
--plain-text
- shows the plain text removing all Pango markup tags and json output. defaults toFalse
-
--show-temp-unit
- show temperature value with unit like 20°C or 20°F. defaults toFalse
-
--vertical-view
- shows the icon on the first line and temperature in a new line (doesn't work for custom-indicator). defaults toFalse
-
--hour-text-only
- show hour as text only. defaults toFalse
-
--version
- show wttrbarpy version.
e.g. wttrbarpy --location Dhaka --max-conditions 2 --format-type 1
Assuming wttrbarpy
is in your path, it can be used like:
"custom/weather": {
"format": "{}",
"tooltip": true,
"interval": 3600,
"exec": "wttrbarpy",
"return-type": "json"
},