Coder Social home page Coder Social logo

qtile-wttr-widget's Introduction

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.

qtile-wttr-widget's People

Contributors

akkaky avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.