Skip to content

georgeyjm/swim4love

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swim For Love Lap Counter

A project for counting laps and displaying a leaderboard for the Swim For Love event.

Demo

GIF of demonstration

Functionalities

  1. Swimmer as an Object
  2. Add Swimmer
  3. Update stat_all.json
  4. Update stat.json of each swimmer
  5. Save Function
  6. Read from Save Function
  7. New Feature: BigScreenDisplay.py Open Safari to set URL, and waits for input to take to swimmer stat page.
  8. Add new swimmer.

To-Do's

  • Read from RFID Reader
  • Check swimmer status
  • Individual Swimmer Stat Page
  • Certificate HTML5 Page
  • Playground_Auth HTML5 Page
  • Milestone Congrats

How to Run

  1. Clone this repository under your web server directory.

    git clone https://github.com/Smart-Campus-Environment/Swim-For-Love-Project.git

  2. cd to your web server directory.

  3. 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 do python3 back-end/back-end.py

  4. Run python3 back-end/back-end.py -h to show help information.

  5. Run python3 back-end/back-end.py -c, the option -c lets the Python script to delete all statistics files including the swimmer directory.

  6. In the browser, open localhost/Swim-For-Love-Project.

  7. To stop the demo, simply do Ctrl + c in the terminal, your data will be automatically saved to Swimmer_Database.pickle for you to use next time.

About

A digital lap counter for the Swim For Love event.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.3%
  • HTML 25.2%
  • CSS 11.1%
  • Python 5.4%