('err.func.wired.not-found', 'The specified url does not exist') -- get_vehicles()
When executing the sample script:
import aiohttp
import asyncio
from renault_api.renault_client import RenaultClient
async def main():
async with aiohttp.ClientSession() as websession:
client = RenaultClient(websession=websession, locale="fr_FR")
await client.session.login('[removed for issue report]', '[removed for issue report])
print(f"Accounts: {await client.get_person()}") # List available accounts, make a note of kamereon account id
account_id = "Your Kamereon account id"
account = await client.get_api_account(account_id)
print(f"Vehicles: {await account.get_vehicles()}") # List available vehicles, make a note of vehicle VIN
vin = "Your vehicle VIN"
vehicle = await account.get_api_vehicle(vin)
print(f"Cockpit information: {await vehicle.get_cockpit()}")
print(f"Battery status information: {await vehicle.get_battery_status()}")
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
The get_person call is successful, however the get_vehicles fails with the following exception....
File "/home/matt/Documents/shareddocs-synced-local-copy/Development/python/ev/getVehicleInfo.py", line 22, in
Please try again later. Renault servers are sometimes misbehaving.
Note: if you know the VIN of your vehicle, you can skip directly to the next step.
Thanks. Le jeudi 12 octobre 2023 à 08:43:43 UTC+2, epenet @.***> a écrit :
Please try again later. Renault servers are sometimes misbehaving.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>
The endpoint to get the kamereon account id (and the vehicles) seems to have been deleted by Renault. It doesn't work anymore since more than one week A working url is https://myr.renault.fr/agg/v2/account/connexion?product=MYRENAULT&country=fr&needProfile=MYRENAULT&lang=fr&brand=renault by passing oneSession={jwttoken} in cookie headers
curl --location 'https://myr.renault.fr/agg/v2/account/connexion?product=MYRENAULT&country=fr&needProfile=MYRENAULT&lang=fr&brand=renault' \
--header 'Cookie: oneSession=jwttoken'
It is still working for me... but maybe it stopped working for new clients? All PRs are welcome if there is a new way of doing things...