bjesus / wttrbar

Custom module for showing the weather in Waybar, using the great wttr.in
MIT License
164 stars 26 forks source link

how to add it? #65

Closed adocampo closed 1 month ago

adocampo commented 1 month ago

I'm new to waybar, so I don't know how to add new modules. I see I have a directory ~/.config/waybar with several files (config.ctl, config.jsonc, style.css and theme.css) and a subdirectory "modules" with a bunch of jsonc files (clock.jsonc, battery.jsonc, etc)

I guess wttrbar should be placed here in modules/wttrbar.jsonc, with this content

"custom/weather": {
    "format": "{}°",
    "tooltip": true,
    "interval": 3600,
    "exec": "wttrbar --lang es  --date-format "%d/%m" --location "Nou Barris" --hide-conditions",
    "return-type": "json"
},

but I do not know how to add it to my waybar.

bjesus commented 1 month ago

this really isn't a wttrbar issue. see the waybar documentation: https://github.com/Alexays/Waybar/wiki/Configuration you need to specify where to place the module using modules-{left/center/right}