A Python library for interacting with the NissanConnect API, converted from the Dart library dartnissanconnect by Tobias Westergaard Kjeldsen @tobiaswkjeldsen (https://gitlab.com/tobiaswkjeldsen)
-
Clone the repository:
git clone https://github.com/your-username/pyKamereon.git cd pyKamereon -
Create a virtual environment and activate it:
python3 -m venv .venv source .venv/bin/activate -
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.envfile in the root of the project and add your NissanConnect credentials:NISSAN_USERNAME="your-username" NISSAN_PASSWORD="your-password" -
Run the example script:
python example.py
lib/: The core library files.kamereon_session.py: Handles authentication and session management.kamereon_vehicle.py: Provides methods for interacting with the vehicle.models/: Contains the data models for the API responses.
example.py: An example script demonstrating how to use the library.requirements.txt: A list of the required Python packages.