A project for counting laps and displaying a leaderboard for the Swim For Love event.
- Swimmer as an Object
- Add Swimmer
- Update stat_all.json
- Update stat.json of each swimmer
- Save Function
- Read from Save Function
- New Feature: BigScreenDisplay.py Open Safari to set URL, and waits for input to take to swimmer stat page.
- Add new swimmer.
- Read from RFID Reader
- Check swimmer status
- Individual Swimmer Stat Page
- Certificate HTML5 Page
- Playground_Auth HTML5 Page
- Milestone Congrats
-
Clone this repository under your web server directory.
git clone https://github.com/Smart-Campus-Environment/Swim-For-Love-Project.git
-
cd
to your web server directory. -
Run
python3 back-end/back-end.py -n
, the option-n
lets the Python script generate a new data, if you want to use existing data, ignore the-n
option, and just dopython3 back-end/back-end.py
-
Run
python3 back-end/back-end.py -h
to show help information. -
Run
python3 back-end/back-end.py -c
, the option-c
lets the Python script to delete all statistics files including the swimmer directory. -
In the browser, open
localhost/Swim-For-Love-Project
. -
To stop the demo, simply do
Ctrl + c
in the terminal, your data will be automatically saved toSwimmer_Database.pickle
for you to use next time.