Re: [DzVents] Renault Zoé
Publié : 23 avr. 2024, 21:14
https://raw.githubusercontent.com/neutr ... Renault.py
A essayer car pas testé.
A essayer car pas testé.
Reprenez le contrôle de votre domotique
https://easydomoticz.com/forum/
Code : Tout sélectionner
python3 -m venv venvCode : Tout sélectionner
source /home/pi/venv/bin/activateCode : Tout sélectionner
pip install renault-apiCode : Tout sélectionner
#!/bin/bash
source /home/pi/venv/bin/activate
python3 $1 $2 $3 &Code : Tout sélectionner
os.execute("python3 '"..scriptPython.."' '"..credentials.."' '"..fichierTemp.."' &")Code : Tout sélectionner
os.execute("/bin/bash '/home/pi/domoticz/scripts/python/MyRenault.sh'"..credentials.."' '"..fichierTemp.."' &")Bonjour Neutrino,Neutrino a écrit : 23 avr. 2024, 21:14 https://raw.githubusercontent.com/neutr ... Renault.py
A essayer car pas testé.
Code : Tout sélectionner
url = kamereonrooturl + '/commerce/v1/accounts/' + kamereonaccountid + '/kamereon/kca/car-adapter/v1/cars/' + vin + '/cockpit?country=FR'Est-ce que vous rencontrez le même problème ?root@Domotic:/var/tmp# sudo python3 /home/pi/domoticz/scripts/python/MyRenault.py /home/pi/domoticz/scripts/python/credentials.json /var/tmp/zoe.txt
Traceback (most recent call last):
File "/home/pi/domoticz/scripts/python/MyRenault.py", line 449, in <module>
loop.run_until_complete(main())
File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/home/pi/domoticz/scripts/python/MyRenault.py", line 339, in main
await mainwithsession(session)
File "/home/pi/domoticz/scripts/python/MyRenault.py", line 359, in mainwithsession
gigyacookievalue = gigya_session['sessionInfo']['cookieValue']
~~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'sessionInfo'