A small project to tweet new snowfalls at Squaw Valley ski area via @SquawSnow. Note that this project isn't officially affiliated with or maintained by Squaw.
It scrapes their snowfalls page and sends out a tweet whenever a new entry is detected.
A hacked together PHP script running on an old webhost powered these updates from 2010-2014 until I decided to rebuild it in node.js and run it on Heroku. As my first "real" node project I'm sure there are some odd coding practices at work here. :)
- Check out the repo
- Install the Heroku toolbelt
- Install node modules with
npm install
oryarn
(assuming you already have node >=8.x) - Override necessary environment variables in
.env
heroku local
curl -X POST http://localhost:3000/update?key=override-me
- Check out the repo
heroku create
git push heroku master
- Set up environment vars using
heroku config
(they're documented in.env
) - Set up a scheduler to
curl -X POST http://squawsnow.herokuapp.com/update?key=your-key
every hour.