This repository contains
-
sensor.ino - Code that reads distance from an Ultrasonic sensor to determine if a parking spot is occupied or not.
-
main.py - FastAPI server that
- recieves requests from the board regarding the current parking lot status.
- serves a frontend to check status of parking lot
- notifies users regarding free spot through email
- Connect the board and laptop to same network
- Run
ipconfig
on PC to get PC's IP. - Edit
serverName
in sensor.ino to reflect the current PC's IP - Create virtual env and install requirements from requirements.txt
python -m venv env
.\env\Scripts\activate
pip install -r requirements.txt
- Run python server using
uvicorn main:app --host 0.0.0.0
- Compile and Upload sensor code from Arduino IDE