Skip to content

Dashboard and Reddit Bot for monitoring and alerting on Colorado ski resort access road closures and alerts

Notifications You must be signed in to change notification settings

patrickdundas/CoSkiTrip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoSkiTrip

Reddit Bot for monitoring and alerting on Colorado ski resort route closures, incidents, and alerts based on live CDOT data

Contributing

  • 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

Running Locally

Prerequisites

Run the app

$ cd functions
$ npm install
$ node ./runLocal.js

When running locally, reddit markdown is generated as a file at ./functions/output.md

Development Roadmap

[ ] 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 Information

  • 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)

About

Dashboard and Reddit Bot for monitoring and alerting on Colorado ski resort access road closures and alerts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published