This module contains scripts to import data from the ERM telematics Karma API into a SQL Server database. Each script is responsible for handling a specific type of data.
For more information on the Karma API, please visit: https://karma.online/api/
car_import.py
: Handles the import of car data.driver_import.py
: Manages the import of driver information.project_import.py
: Synchronizes project details.trip_import.py
: Processes trip data with pagination support.e_data_import.py
: Handles extended data and parameters for each vehicle.
- Copy
.env.example
to.env
and fill in the required environment variables. - Install the required Python packages using
pip install -r requirements.txt
.
Run each script individually to import the respective data type. Ensure that the environment variables are correctly set in the .env
file.