GithubHelp home page GithubHelp logo

twent's Introduction

Twent (Time, WEather, and News in Terminal)

About

Twent (Time, WEather, and News in Terminal) is a Python script that allows you to display time, weather, and rss feeds in a text console.

Screenshot

Screenshot

Using world news feed from The Wall Street Journal.

Installtion

Requirements

Twent uses feedparser to parse rss feeds and pyfiglet to display time.

You need to have them installed to run twent.

Installation and Running

git clone [email protected]:mikkkee/twent.git
cd twent
python twent.py 0

Usage

usage: twent.py [-h] Flag [Flags ...]

Flags can be numbers or names of feeds you specified in config.ini.

Numbers and names cannot be used together.

If numbers are used, the numbers corresponding to the order of rss feeds in config.ini, starting from 1.

Use 0 as Flag to display all feeds together.

Press Ctrl-C to stop twent.

Configuration

In config.ini, you can customize the following settings:

###[rss] section

###[weather] section

  • city stands for the location code used in yahoo weather api.
  • You can find location code for you city by searching you city in yahoo weather. For example, the location code for New York is 2459115, the corresponding url for New York is https://weather.yahoo.com/united-states/new-york/new-york-2459115/
  • unit can be F or C, case insensitive, stands for Fahrenheit or Celsius, respictively.

###[duration] section

  • duration stands for the time that twent should run, in minutes.
  • Default value 0 stands for running forever.

twent's People

Contributors

mikkkee avatar

Watchers

James Cloos avatar Bobby Babra 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.