Lightweight Python API for querying status info for a variety of Renault vehicle models
Project description
renault API (lite)
Lightweight Python API for querying status info for a variety of Renault vehicle models
Features
Conveniently read status info for Renault vehicles (e.g. EVs), including:
- battery status (level, autonomy, plug status, temperature, ...)
- charging configuration / charge schedule
- fuel autonomy (for combustion vehicles)
- HVAC / pre-conditioning status
- GPS location
Installation
pip install renault-api-lite
Usage Examples
Query battery status
from renault import RenaultVehicleClient
car = RenaultVehicleClient(
login_id="Your E-Mail", password="Your password", # --> change to your credentials
account_locale="de_DE" # --> optional
)
# get battery status
status = car.get_status(car.STATUS_BATTERY_ONLY)
Hint: Pretty Print Status
import json
print(json.dumps(status, indent=4))
{
"battery_status_data": {
"timestamp": "2022-08-145T07:24:12Z",
"battery_level": 90,
"battery_temperature": 25,
"battery_autonomy": 207,
"battery_capacity": 0,
"battery_available_energy": 10,
"plug_status": 0,
"charging_status": -1.1,
"charging_remaining_rime": 10,
"charging_instantaneous_power": 0.0
}
}
Query custom data selection (battery and cockpit data)
# get battery status, cockpit data
status = car.get_status((
car.StatusType.BATTERY,
car.StatusType.COCKPIT,
))
Hint: Pretty Print Status
import json
print(json.dumps(status, indent=4))
{
"battery_status_data": {
"timestamp": "2022-08-145T07:24:12Z",
"battery_level": 90,
"battery_temperature": 25,
"battery_autonomy": 207,
"battery_capacity": 0,
"battery_available_energy": 10,
"plug_status": 0,
"charging_status": -1.1,
"charging_remaining_rime": 10,
"charging_instantaneous_power": 0.0
},
"cockpit_data": {
"fuel_autonomy": null,
"fuel_quantity": null,
"total_mileage": 1234.22
}
}
Disclaimer
This project is not affiliated with, endorsed by, or connected to Renault. I accept no responsibility for any consequences, intended or accidental, as a result of interacting with Renault's API using this project.
Credits
This project is based on hacf-fr's renault-api for Python
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file renault-api-lite-0.8.0.tar.gz
.
File metadata
- Download URL: renault-api-lite-0.8.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81c4afdd525ba86a747a35b4e2ebdb657a58efb4df5b1ca13fa5721691b451a2 |
|
MD5 | fc1fb6492aeb2464ecb9932a83c51d41 |
|
BLAKE2b-256 | 067f14f2dea3452976f7174384f3e30ec8fc9fc0bf2ae23d85b6571b5b979e44 |
Provenance
File details
Details for the file renault_api_lite-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: renault_api_lite-0.8.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90f252fb26168199fb0321a2c812ff24fdd1f48befc184fbc73fb17ce7461d8d |
|
MD5 | 6f429e6bc61080e33dab1f0e961aa8a3 |
|
BLAKE2b-256 | 30ad1c6f23cfd9191ee3d6f67c0e39fda81edd3dca4b3d7bc0e2af428fd5d859 |