en repartant de ca j’arrive à installer
services:
saic-mqtt-gateway:
image: "saicismartapi/saic-python-mqtt-gateway:latest"
container_name: "saic-mqtt-gateway"
environment:
- MQTT_URI=tcp://IP_DU_SERVEUR_MQTT:1883
#- MQTT_USER=Identifiant_MQTT
#- MQTT_PASSWORD=Mot_de_passe_MQTT
- SAIC_USER=6XXXXXXXX
- SAIC_PASSWORD=MON_MOT_DE_PASSE
- SAIC_PHONE_COUNTRY_CODE=33
Voila ce que ca me sort :
Bien sur j’ai plein d’erreur car je n’ai ppas de compte MG
2025-01-02T16:34:26.960592145Z 2025-01-02 16:34:26,960 [ ERROR ] API call return code is not acceptable: 1000036: {"code":1000036,"message":"The account is not registered."}. Headers: Headers({'date': 'Thu, 02 Jan 2025 16:34:26 GMT', 'content-type': 'application/x-www-form-urlencoded', 'connection': 'keep-alive', 'x-content-type-options': 'nosniff', 'x-xss-protection': '1; mode=block', 'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'pragma': 'no-cache', 'expires': '0', 'x-frame-options': 'DENY', 'app-content-encrypted': '1', 'original-content-type': 'application/x-www-form-urlencoded', 'app-send-date': '1735835666950', 'app-verification-string': 'ce589a236c17e0ae05e568f71bf90680382ab482a251dbf0a804eaabc627c357', 'content-length': '59'}) - saic_ismart_client_ng.api.base
2025-01-02T16:34:26.961310569Z 2025-01-02 16:34:26,960 [ ERROR ] Could not login to the SAIC API due to an error - root
2025-01-02T16:34:26.961318096Z Traceback (most recent call last):
2025-01-02T16:34:26.961321173Z File "/usr/src/app/handlers/relogin.py", line 44, in login
2025-01-02T16:34:26.961324036Z login_response_message = await self.__api.login()
2025-01-02T16:34:26.961326819Z ^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-02T16:34:26.961329697Z File "/usr/local/lib/python3.12/site-packages/saic_ismart_client_ng/api/base.py", line 51, in login
2025-01-02T16:34:26.961332541Z result = await self.execute_api_call(
2025-01-02T16:34:26.961335271Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-02T16:34:26.961337978Z File "/usr/local/lib/python3.12/site-packages/saic_ismart_client_ng/api/base.py", line 85, in execute_api_call
2025-01-02T16:34:26.961340927Z raise e
2025-01-02T16:34:26.961343670Z File "/usr/local/lib/python3.12/site-packages/saic_ismart_client_ng/api/base.py", line 75, in execute_api_call
2025-01-02T16:34:26.961346614Z return await self.__execute_api_call(
2025-01-02T16:34:26.961349393Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-02T16:34:26.961362053Z File "/usr/local/lib/python3.12/site-packages/saic_ismart_client_ng/api/base.py", line 104, in __execute_api_call
2025-01-02T16:34:26.961364933Z return await self.__deserialize(req, response, out_type)
2025-01-02T16:34:26.961367674Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-01-02T16:34:26.961370455Z File "/usr/local/lib/python3.12/site-packages/saic_ismart_client_ng/api/base.py", line 194, in __deserialize
repart de ce docker-compose en remplissant :
services:
saic-mqtt-gateway:
image: "saicismartapi/saic-python-mqtt-gateway:latest"
container_name: "saic-mqtt-gateway"
environment:
- MQTT_URI=tcp://IP_DU_SERVEUR_MQTT:1883
- MQTT_USER=Identifiant_MQTT
- MQTT_PASSWORD=Mot_de_passe_MQTT
- SAIC_USER=6XXXXXXXX
- SAIC_PASSWORD=MON_MOT_DE_PASSE
- SAIC_PHONE_COUNTRY_CODE=594