polybar-scripts/polybar-scripts/openweathermap-detailed
x70b1 99516d3441 fix shellcheck SC2236 2019-01-02 13:33:25 +01:00
..
screenshots add openweathermap-detailed 2018-01-04 03:09:58 +01:00
README.md openweathermap-*: allow specifying city by name or name,country_code 2018-10-13 20:21:42 +02:00
openweathermap-detailed.sh fix shellcheck SC2236 2019-01-02 13:33:25 +01:00

README.md

Script: openweathermap-detailed

A weather script that displays some weather information.

It shows icons, temperatures and text for the current weather. The script can be easily modified to display a forecast. Look at the commented out line.

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