Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 682 Bytes

File metadata and controls

43 lines (31 loc) · 682 Bytes

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)"'