Skip to content

nstapc/MBTA-Ticker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MBTA-Ticker

Informational ticker for an MBTA stop

Requirements

Go 1.19 or later

Installation

Using Go

go install github.com/NikoStapczynski/MBTA-Ticker@latest

Or build from source:

git clone https://github.com/NikoStapczynski/MBTA-Ticker.git
cd MBTA-Ticker
go build -o mbta-ticker main.go

Usage

Basic Usage

./mbta-ticker <stop-id>

Example:

./mbta-ticker place-pktrm

This shows real-time predictions for Park Street station.

Finding Stop IDs

Find stop IDs at https://www.mbta.com/ or use the MBTA API:

curl "https://api-v3.mbta.com/stops?page%5Blimit%5D=10" | jq '.data[] | "\(.id): \(.attributes.name)"'

About

Shows the ETA at an MBTA stop

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages