Skip to content
/ trs Public

Transportation timetambles for command line.

License

Notifications You must be signed in to change notification settings

im-n1/trs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WARNING

Thanks to GitHub's hostile policy the repository has migrated to Gitlab.

This repository won't be updated anymore.

TRS

Transportation timetambles for command line.

example

Installation

cargo install --git https://github.com/im-n1/transpors

Usage

Note: When installed the binary is named trs for convenience.

Wizard

When you run the app for the first time a wizard will welcome you and walk you thru the setup process. All you need is GTFS file URL or location on your drive.

Such GTFS file can be found on the internet on your local transporation company website. Apps like Citymapper use exactly these files. There is also this portal where you can try to find your city.

Print timetables

Except wiping (-w) the app always prints out the timetables of your stations.

$ trs

Skloněná -> Sídliště Čakovice
-----------------------------
136 - 13:20 (+14 min)
136 - 13:35 (+29 min)
136 - 13:50 (+44 min)

Refreshing database

When a new version of GTFS file is available you can simply refresh your app database with just one command. If the GTFL file location is URL it will be downloaded automatically.

$ trs -r

Add/delete stops

$ trs -a  # to add new stops
$ trs -d  # to delete existing stops

Wiping whole app

$ trs -w  # wipes whole app database - cannot be undone.

Features

prague

This feature adds live delays and air-condition info to each connection (departure)

example prague

Instalation is simple - just activate feature prague with -F prague in cargo install command.

This feature uses Golemi API where you need to register to generate API key.

Changelog

0.1.5

  • added prague feature which enables live delays and air-condition info
  • it's necessary to wipe and rebuild whole database - -w param

0.1.4

  • added -l param for better peek to the future

0.1.3

  • log messages (CLI output) unified
  • dependencies bumped to newer versions

0.1.2

  • timetables are now sorted by stop name
  • dependencies bumped to newer versions which brings notably better performance
  • ! you need to rebuild your database after this update

0.1.1

  • added relative times
  • added a few words about GTFS to README filte
  • updated dependencies

0.1

  • initial release

About

Transportation timetambles for command line.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages