https://github.com/aloshi/slack-nextbus
For when you wanna go home, but you're too lazy to open your browser.
https://github.com/aloshi/slack-nextbus
Last synced: 5 months ago
JSON representation
For when you wanna go home, but you're too lazy to open your browser.
- Host: GitHub
- URL: https://github.com/aloshi/slack-nextbus
- Owner: Aloshi
- Created: 2018-01-10T04:11:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T23:45:31.000Z (over 3 years ago)
- Last Synced: 2025-08-04T21:19:07.644Z (11 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NextBus integration for Slack
This is a simple Python script that integrates NextBus time listings into Slack.
Users can register a list of routes they are interested in and query the bus predictions API with one command.
# Setup
Install from requirements.txt with pip, then run `flash main.py --port 8080`. Then set up an HTTPS reverse proxy (between port 443 and port 8080), since Slack will only talk to servers with a valid SSL certificate.
Finally, create a new Slack App using the Slack website and point it at your server. You'll need to set up a slash command pointed to `/` and enable "interactive components" and point it at `/action`.
# TODO
* Persist saved route data to disk somehow
* Show colors for routes (already supplied by the nextbus API)
* Support adding multiple routes under one name (i.e. student services + Beyer hall)
Alec "Aloshi" Lofquist
https://aloshi.com