1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-02 23:17:18 +00:00
Dotfiles/.config/polybar/polybar-scripts/openweathermap-simple
2020-07-27 07:59:00 +03:00
..
screenshots add all dotfiles 2020-07-27 07:59:00 +03:00
openweathermap-simple.sh add all dotfiles 2020-07-27 07:59:00 +03:00
README.md add all dotfiles 2020-07-27 07:59:00 +03:00

Script: openweathermap-simple

A weather script that displays some weather information.

It shows icons and temperatures for the current weather.

openweathermap-simple

Dependencies

Configuration

If CITY is left empty, the location is retrieved via the Mozilla Location API. CITY can either be a city ID (e.g. ID of Berlin is 2950159), city name (e.g. Berlin) or city name + country code (e.g. Berlin,DE).

Change these values:

KEY=""
CITY=""
UNITS="metric"
SYMBOL="°"

Module

[bar/polybar]
...
font-2 = Weather Icons:size=12;1
...
[module/openweathermap-simple]
type = custom/script
exec = ~/polybar-scripts/openweathermap-simple.sh
interval = 600
label-font = 3