Crates.io | the-septa-times |
lib.rs | the-septa-times |
version | |
source | src |
created_at | 2023-10-28 03:12:26.681209 |
updated_at | 2025-01-05 23:20:46.779661 |
description | A SEPTA app for the terminal |
homepage | https://github.com/dotzenith/TheSeptaTimes.rs |
repository | https://github.com/dotzenith/TheSeptaTimes.rs |
max_upload_size | |
id | 1016671 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
TheSeptaTimes.rs is an easy-to-use commandline utility to fetch information about regional SEPTA trains
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/dotzenith/TheSeptaTimes.rs/releases/latest/download/the-septa-times-installer.sh | sh
brew install dotzenith/tap/the-septa-times
powershell -ExecutionPolicy ByPass -c "irm https://github.com/dotzenith/TheSeptaTimes.rs/releases/latest/download/the-septa-times-installer.ps1 | iex"
cargo install the-septa-times
Pre-Compiled binaries for linux, mac, and windows are available in Releases
git clone https://github.com/dotzenith/TheSeptaTimes.rs.git
cd TheSeptaTimes.rs
cargo build --release
./target/release/tst
A CLI application for the SEPTA API
Usage: tst <COMMAND>
Commands:
next Search for the next train going from an origin to a destination
arrivals Find the next arrivals at a given train station
train Track a given train
stations Get all valid station names
extra All of the extra endpoints added by Septum
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
tst next '30th Street Station' 'North Philadelphia'
tst
uses fuzzy matching, you can also do:tst next 'suburban' '30th'
Setting
SeptumURL
as seen below will help make the fuzzy matching more accurate, but it is optional
tst arrivals '30th Street Station' --count 6
tst train 9374
tst stations
These commands require endpoints provided by Septum.
tst
requires the SeptumURL
environment variable to be set like:
export SeptumURL="https://septum.jawn.website/api"
tst extra schedule
command:tst extra lines
tst extra schedule
command:tst extra stations TRE # On the Trenton line
This command also uses fuzzy matching so station names do not need to be exact
tst extra schedule TRE "Trenton" "Gray 30th Street" inbound weekday
0.9.4 - Fix subcommand arguments