This project is a car alert system that uses GPS data and integrates with vegvesenet.no to provide real-time alerts for speed cameras, traffic conditions, and more.
- Python 3.x
- A virtual environment tool (e.g.,
venv
)
-
Clone the repository:
git clone https://github.com/yourusername/car_alert_system.git cd car_alert_system
-
Create a virtual environment:
python -m venv env source env/bin/activate # On Windows: env\Scripts\activate
-
Install the required packages:
pip install -r requirements.txt
-
Navigate to the
app
directory:cd app
-
Run the Flask application:
python main.py
-
Open a web browser and navigate to
http://localhost:5000
to view the interface.
app/
- Contains the application code.app/static/
- Contains static files like CSS.app/templates/
- Contains HTML templates.app/main.py
- The main Flask application file.app/gps_reader.py
- Reads GPS data.app/alert_system.py
- Handles alert generation.app/data_fetcher.py
- Fetches data from vegvesenet.no.app/utils.py
- Utility functions.