SlugMeter was made by UCSC students as a proof-of-concept for a convenient way of viewing the school's gym occupancy levels. React and Chartjs are leveraged on the frontend for quick, fluid transitions with the foremost goal of delivering a delightful user experience. It also allows you to view both live and predicted occupancy levels, as well as a heatmap for intuitive monthly comparisons.
Live demo available online: https://slugmeter.live/
Immediately see today's occupancy level of the gym with the current hour being highlighted in yellow. View the average occupancy levels of other days of the week to see which timeframe works best for your schedule.
View the model's predictions for the gym's future occupancy levels. A dashboard to view data of any day in the past, with historical heatmaps per month to for an intuitive view of which days of the week are the busiest.
This section will walk you through installing and running the project.
- Clone the Repo
- Run
./slug-setup.pyin order to gather dependencies. - From the root directory, run
./slug-start.py. This script starts the server and opens the page on port 3000.
MONGODB_URI in the application) and will not be able to connect if no such URI is passed.
-
Go into 'backend/ML-Stuff'
-
Open the file named:
Mongo_data.pynbTo Change the Number of Days Ahead to be Predicted Head to the section: `OUTPUT PREDICTIONS TO JSON FILE` In the second code block, change the `weekday_idx` to the desired number of days.DISCLAIMER: Predicting too far ahead will result in slightly innacurate data.
-
Run the
Mongo_data.ipynbfile -
Your predicted data for each hour of each day is located in
model_predictions.json