Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bwc9876/transhuh
Simple CLI to query TransLoc vendor endpoints to see where a bus is
https://github.com/bwc9876/transhuh
Last synced: 8 days ago
JSON representation
Simple CLI to query TransLoc vendor endpoints to see where a bus is
- Host: GitHub
- URL: https://github.com/bwc9876/transhuh
- Owner: Bwc9876
- Created: 2024-10-30T15:24:28.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-30T15:29:58.000Z (2 months ago)
- Last Synced: 2024-11-09T06:19:10.071Z (2 months ago)
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Transhuh
Simple program to poll a TransLoc vendor API every few seconds and get bus information.
Notifies you if any bus on the route is at a specified "point of interest" (see below).## Usage
`transhuh -u API_URL -r ROUTE_ID [-p POI]*`
- `-u`: Provide the base API URL (should end with `JSONPRelay.svc`)
- `-r`: Numeric route ID to track, you can get this by looking at the URL after `/routes`
when you click on a route in the web UI
- `-p`: A point of interest to watch for. The format is `LABEL:LATITUDE,LONGITUDE`. When the bus gets near
the specified latitude and longitude you will get a desktop notification saying "The bus is at [LABEL]" where label is what you specified before the `:`. You may specify `-p` multiple times to watch more than
one point of interest.The program is smart about notifying you, if a bus never leaves the "zone" of the point of interest
it will not notify you at each poll interval.