Skip to content

nstapc/stop-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stop-watch

Informational ticker for an MBTA stop

Requirements

Go 1.19 or later

Installation

Using Go

go install github.com/nstapc/stop-watch@latest

Or build from source:

git clone https://github.com/nstapc/stop-watch.git
cd stop-watch
go build -o stop-watch main.go

Usage

Basic Usage

./stop-watch <stop-id>

Example:

./stop-watch 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