https://github.com/n1flh31mur/i3-simple-weather
Python script for i3bar/polybar and other bars that supports python scripts.
https://github.com/n1flh31mur/i3-simple-weather
i3bar icons polybar python-script weather
Last synced: over 1 year ago
JSON representation
Python script for i3bar/polybar and other bars that supports python scripts.
- Host: GitHub
- URL: https://github.com/n1flh31mur/i3-simple-weather
- Owner: n1flh31mur
- License: gpl-3.0
- Created: 2020-07-31T23:31:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-08T09:36:52.000Z (over 3 years ago)
- Last Synced: 2024-10-15T01:31:16.567Z (over 1 year ago)
- Topics: i3bar, icons, polybar, python-script, weather
- Language: Python
- Homepage:
- Size: 70.3 KB
- Stars: 24
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# i3-simple-weather
Python script for i3bar/polybar and other bars that supports python scripts.
This script make request to [OpenWeather](https://openweathermap.org/) and returns tempreture and [Font Awesome Pro](https://fontawesome.com/) icon that shows weather condition.
## Examples:



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
```python
# 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
```sh
[module/weather]
type = custom/script
interval = 600
cursor-click = python3 ~/.config/polybar/scripts/weather.py
exec = python3 ~/.config/polybar/scripts/weather.py
```