Skip to content

Simple weather widget fo qtile window manager. Weather data provided by wttr.in

License

Notifications You must be signed in to change notification settings

akkaky/qtile-wttr-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

qtile wttr widget

Simple weather widget for qtile window manager. Weather data provided by wttr.in.

Config

Examlpe:

Wttr(
    lang='ru',
    location={
        'Minsk': 'Minsk',
        '64.127146,-21.873472': 'Reykjavik',
        '~Vostok Station': 'Nice place',
    },
  format='%l: %C, temp: %t, feels: %f',
  units='m',
  update_interval=30,
)

format

Choose presets in range 1-4 (Ex. '1') or build your own custom output format, use the special %-notation. See https://github.com/chubin/wttr.in#one-line-output

location

Key is a city or place name, or GPS coordinates. Value is a display name. Add the character ~ at the beginning to get weather for some special location: ~Vostok Station or ~Eiffel Tower. Also can use IP-addresses (direct) or domain names (prefixed with @) to specify a location: @github.com, 123.456.678.123. Specify multiple locations as dictionary:

location={
  'Minsk': 'Minsk',
  '64.127146,-21.873472': 'Reykjavik',
  '~Vostok Station': 'Nice place',
 } 

Cities will change randomly every update.

lang

Set prefered display language. Example: lang='ru'. More about supported languages.

units

'm' - metric, 'M' - show wind speed in m/s, 's' - imperial.

update_interval

Update interval in seconds. Default is 600. Recommendation: if you want to display multiple locations alternately, maybe set a smaller interval, ex. 30.

About

Simple weather widget fo qtile window manager. Weather data provided by wttr.in

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages