n1flh31mur / i3-simple-weather

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%