Reddit Bot for monitoring and alerting on Colorado ski resort route closures, incidents, and alerts based on live CDOT data
- Fork the repository
- Make your desired changes in
./functions/app.js
- List yourself as a contributor on the reddit post by updating
./functions/templates/reddit.md
- Note:
./functions/index.js
is for cloud infrastructure configuration and the GCP entrypoint, changes here usually won't be approved - Open a pull request and tag @patrickdundas
Don't know how to code? Submit a feature request here
- Get a CDOT API Key
- Setup required environment variables
CDOT_API_KEY
: Your CDOT API Key
- Install Node.JS 20
$ cd functions
$ npm install
$ node ./runLocal.js
When running locally, reddit markdown is generated as a file at ./functions/output.md
[ ] Better sorting of route lane direction - "Both Directions" first, then a definite order of N/E/S/W
[ ] Sort incidents by last updated time
[ ] Filtering of certain incidents to "notifications" for conciseness, such as "chain law enforced" or "MEXL Open"
[ ] Ask the community what data they would find useful (destinations, routes, etc)
[ ] Go live in /r/COSnow
- Infrastructure is paid for and managed by @patrickdundas
- The app runs on Firebase / Google Cloud Platform Cloud Functions, and is executed every 10 minutes
- PRs modifying the firebase config or firebase
./functions/index.js
files usually won't be approved - Infrastrucure managers can update relevant environment vars with
firebase functions:secrets:set VAR_NAME
- Reddit access tokens should be configured at https://not-an-aardvark.github.io/reddit-oauth-helper/ (ie. if the app connection to reddit throws a 400, the access/refresh tokens can be updated here)