Bluefit is a TypeScript library that allows you to easily fetch the realtime occupancy of the Rec Center.
Big thanks to u/MasterEjzz for discovering how to do this first for their super cool automated data tracking spreadsheet in Google Sheets.
Use npm to install Bluefit.
npm install @ilefa/bluefitSince Bluefit is currently hosted on GitHub packages, you will need to make a .npmrc file in the root of your project, and insert the following:
@ilefa:registry=https://npm.pkg.github.comimport { getOccupancy } from '@ilefa/bluefit';
// Fetch current occupancy of the Rec Center
let occupants = await getOccupancy();
12Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.