bobbybabra / twent

Time, WEather, and News in Terminal.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 git@github.com: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.

About

Time, WEather, and News in Terminal.

License:MIT License