Skip to content

Weather module

gh0stzk edited this page Apr 9, 2023 · 1 revision

In my dotfiles, there is a weather module for polybar, "It is available but not in all themes I added it by default, you will need to add it"

ShoT_2023-04-09-09-30-28_1600x900

And also, as in the z0mbi3 theme, an informative weather widget is available.

ShoT_2023-04-09-09-32-42_1600x900

To set your country/city you need to edit the Weather file, located at HOME/.config/bspwm/scripts/Weather

ShoT_2023-04-09-09-35-19_1600x900

On line 12 edit the name of your country or city. Find your city/country in openweathermap.org

ShoT_2023-04-09-09-44-35_1600x900

Try to put the name exactly as it appears in openweather. In the example of the image I have to put Cabo San Lucas, MX

This step is not necessary but you should generate your own api key. The one that is being used works and should not fail, but I created it using a temporary email and maybe one day they will delete it or something will happen, besides that it is the one that everyone with my dotfiles is using.

To obtain your own from this link openweathermap.org/api_keys

You will need to register, once this is done, you will see in your openweather panel your api key, copy it and replace it in line 11 of the Weather file.

ShoT_2023-04-09-10-09-58_1600x900

Clone this wiki locally