Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Location-Based Attendance Verification (Streamlit + GPS + Microsoft Forms)

This project provides a location-restricted attendance system built with Streamlit.

Users must be physically present near the seminar/classroom to access the attendance form. If they are inside the allowed GPS radius, they are automatically redirected to a Microsoft Form. Otherwise, access is denied.

πŸš€ Live App

πŸ‘‰ Open here: https://attendance-8avu5rhldpsugjrcgvx7qj.streamlit.app/

βœ… How It Works

User opens the Streamlit page

Browser requests GPS permission

Distance is calculated using Haversine formula

If inside allowed radius β†’ redirect to Microsoft Form

If outside β†’ access denied

πŸ”’ Logic IF distance ≀ allowedRadius: redirect to MS Form ELSE: block access

✨ Features

βœ… Automatic GPS verification βœ… Distance calculation (meters) βœ… Microsoft Forms redirect βœ… No form shown before verification βœ… Works on mobile & desktop βœ… Simple, lightweight βœ… Easy deployment on Streamlit Cloud

πŸ“ Configuration

Inside app.py you can change:

Target location const targetLat = 39.132473; const targetLng = -84.5170492;

Radius (meters) const allowedRadius = 90;

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages