Skip to main content

focli - Decent frontend to Föli stop schedules

Project description

Bookmarkable CLI client to timetables for a city of Turku (Föli) bus stop(s), including time differences to prescheduled times for lines that provide realtime data.

Bookmark once, quickly check all the stop schedules relevant to you any time you need them with only one command.

https://cloud.githubusercontent.com/assets/5235109/13114915/4aac1f02-d59e-11e5-9565-02ce1e104893.gif

Installation

Install via pip for current user (needs ~/.local/bin on $PATH):

pip install --user focli

Globally via pip:

sudo pip install focli

Or:

git clone https://github.com/joohoi/focli.git
cd focli
python setup.py install

Usage

Client parameters:

usage: focli [-h] [-a] [-d] [-l] [-n STOPNAME] [stopnumber [stopnumber ...]]

positional arguments:
  stopnumber   Stop number to show / add / delete

optional arguments:
  -h, --help   show this help message and exit
  -a           Add line to bookmarks
  -d           Remove line from bookmarks
  -v           Verbose output (show destination)
  -l           List saved bookmarks
  -n STOPNAME  Custom name for the stop to bookmark

Eg: add two bus stops to list, the one you use to get to work from home, and other the other way around:

focli -n "Home" -a 157
focli -n "Work" -a T34

after bookmarking, you can get the schedules for both of the stops simultanously every time you run:

focli

or:

focli -v

without arguments.

Features

  • Displays realtime data if available for the stop

  • Shows the schedule for the current hour

  • Color coding for delayed lines

  • Displays as many stop schedules side by side as the active terminal can fit

  • Add / delete / list bookmarks

  • Option to show destination (disabled by default to avoid cluttering)

Changelog

  • 1.0 - Initial release

TODO

  • Exclude certain lines from the output, useful for stops with heavy traffic

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

focli-1.0.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file focli-1.0.tar.gz.

File metadata

  • Download URL: focli-1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for focli-1.0.tar.gz
Algorithm Hash digest
SHA256 c7877158f1afb4d872518886ac4ac47442298d11083bed747531676aa823df1b
MD5 5d76dd89fb63bb86f510712ee65148b8
BLAKE2b-256 490d56f629ceada44d887db779d9030a4ae4a85d4014a767e0292cc760f8377b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page