Skip to content

bru74lw1z4rd/i3-simple-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

i3-simple-weather

Python script for i3bar/polybar and other bars that supports python scripts.

This script make request to OpenWeather and returns tempreture and Font Awesome Pro icon that shows weather condition.

Examples:

Example 1 Example 2 Example 3

Icons that app shows, can be changed. For it, you need to open weather.py and change values in key-value arrays.

Also before script run, you have to set up script. Indicating your api key, city. You can also change units and temperature unit.

Settings example

# Settings 
city = "Stockholm" # Your city 
api_key = "0a00a0000a0aa00a0a00aaa000000a00" # Your openweather api key
units = "metric" # Unit system {imperial or metric}
temperature_unit = "C" # Units of measurement. That will be showed in UI. Does not affect on API.

Run script with polybar

[module/weather]
type = custom/script
interval = 600
cursor-click = python3 ~/.config/polybar/scripts/weather.py
exec = python3 ~/.config/polybar/scripts/weather.py

About

Python script for i3bar/polybar and other bars that supports python scripts.

Topics

Resources

License

Stars

Watchers

Forks

Languages