- Download the script
- Get a free API key from OpenWeatherMaps (from this page after making an account)
- Create a file somewhere and paste only your API key inside
- Configure the lat, lon, apiKeyPath, units & icons
- Add the below to your waybar config (add the path):
"custom/weather": { "return-type": "json", "exec": "python <path to script>", "tooltip": true, "restart-interval": 300 }
- Done!
- If you are having trouble getting the script to display correctly, try running it in a terminal to see any error messages that may be output.
- It is highly reccomended to use a nerd font for the icons.
- Feel free to copy, change or distribute as you wish!