Snuupy / UOHS-Notifier

Sends you a text when it's convenient to show up at the University of Ottawa Health Services walk-in clinic.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UOHS-Notifier

Sends you a text when it's convenient to show up at the University of Ottawa Health Services walk-in clinic.

This nodejs app uses headless chrome to scrape the number of estimated minutes you have to wait for a walk-in appointment on https://www.uottawa.ca/health/.

University of Ottawa Health Services Wait Time Display: UOHS Display

There is an easier way to do this by using their (undocumented) API...but why make it easy when I can choose to play with headless chrome instead? #hipster #yolo #swag

You can find this via the network tab in your favorite browser inspector.

Installation

  1. Install a version of chrome that has headless mode enabled. Headless mode on available on Mac and Linux starting in version 59. Windows requires (Canary, as of 2016-07-16).
  2. git clone https://github.com/Snuupy/UOHS-Notifier
  3. npm install -g chrome-remote-interface
  4. npm link chrome-remote-interface.
  5. npm install
  6. Rename sampleconfig.js to config.js and fill in your details (you may be required to sign up for Twilio if you don't already have an account there)

Usage

  1. cd UOHS-Notifier
  2. npm start

Server screenshot Text screenshot

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request.

History

0.0.3 - Added screenshots
0.0.2 - Add comprehensive readme for usage
0.0.1 - Initial release

About

Sends you a text when it's convenient to show up at the University of Ottawa Health Services walk-in clinic.


Languages

Language:JavaScript 93.8%Language:HTML 6.2%