Dotfiles/.config/polybar/themes/monolit-dracula/polybar-scripts/openweathermap-detailed
horhik aec58dae23 split polybar by themes 2020-09-05 14:43:37 +03:00
..
screenshots split polybar by themes 2020-09-05 14:43:37 +03:00
README.md split polybar by themes 2020-09-05 14:43:37 +03:00
openweathermap-detailed.sh split polybar by themes 2020-09-05 14:43:37 +03:00

README.md

Script: openweathermap-detailed

A weather script that displays some weather information.

It shows icons, temperatures and text for the current weather.

openweathermap-detailed

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-detailed]
type = custom/script
exec = ~/polybar-scripts/openweathermap-detailed.sh
interval = 600
label-font = 3