Giter Club home page Giter Club logo

wwop's Introduction

WWOP

WWOP - is a simple worldweatheronline.com parser, designed for use with conky system monitor.

Distributed under GNU GPL v3 or any higher version you may want.

Written in python3, no additional modules in dependencies

Installation

Get fresh source:

$ git clone git://github.com/pztrn/wwop

And use wwop.py with conky!

Configuration

Config file: ~/.config/wwop/config. Config example:

[main]
API_KEY=YOUR_API_KEY
CITY=Moscow,Russia

[forecast]
LANGUAGE=ru
DAYS=4
TEMP_TYPE=C

Usage

First, you will need current data:

$ wwop.py --download

Data will be stored in 'cache', located in script's config dir (defaults to ~/.config/wwop). After that you can pass options to script, like:

$ conkygw.py opt {day} modificator

All available opt's:

  • -c - Current condition
  • -d - Condition by day

All available modificators:

  • mintemp - Minimal temperature
  • maxtemp - Maximum temperature
  • cond - Condition
  • dof - Day of week

Maximum 'day' specified in config , starts from 1.

'day' option must be specified with '-d' option and must not be specified with '-c' option!

Example

TEXT
${execi 1800 /data/Projects/github/wwop/wwop.py --download}${color aad6ff}ATM: ${color ffd1ba}${execi 1800 /data/Projects/github/wwop/wwop.py -c temp} ${alignr}$color ${execi 1800 /data/Projects/github/wwop/wwop.py -c cond}

${color ffb966}${execi 1800 /data/Projects/github/wwop/wwop.py -d 1 dof}: ${color 82ffab}${execi 1800 /data/Projects/github/wwop/wwop.py -d 1 maxtemp}$color..${color b3ecff}${execi 1800 /data/Projects/github/wwop/wwop.py -d 1 mintemp} 
${alignr}$color(${execi 1800 /data/Projects/github/wwop/wwop.py -d 1 cond})

${color ffb966}${execi 1800 /data/Projects/github/wwop/wwop.py -d 2 dof}: ${color 82ffab}${execi 1800 /data/Projects/github/wwop/wwop.py -d 2 maxtemp}$color..${color b3ecff}${execi 1800 /data/Projects/github/wwop/wwop.py -d 2 mintemp} 
${alignr}$color(${execi 1800 /data/Projects/github/wwop/wwop.py -d 2 cond})

${color ffb966}${execi 1800 /data/Projects/github/wwop/wwop.py -d 3 dof}: ${color 82ffab}${execi 1800 /data/Projects/github/wwop/wwop.py -d 3 maxtemp}$color..${color b3ecff}${execi 1800 /data/Projects/github/wwop/wwop.py -d 3 mintemp} 
${alignr}$color(${execi 1800 /data/Projects/github/wwop/wwop.py -d 3 cond})

${color ffb966}${execi 1800 /data/Projects/github/wwop/wwop.py -d 4 dof}: ${color 82ffab}${execi 1800 /data/Projects/github/wwop/wwop.py -d 4 maxtemp}$color..${color b3ecff}${execi 1800 /data/Projects/github/wwop/wwop.py -d 4 mintemp} 
${alignr}$color(${execi 1800 /data/Projects/github/wwop/wwop.py -d 4 cond})    

https://raw.github.com/pztrn/wwop/master/screenshot.png

Translation

You can translate wwop into your language! Look in 'translations' directory, there is an example already :-)

wwop's People

Watchers

James Cloos avatar Stanislav N. 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.