Uncaught SyntaxError: Unexpected identifier

Bonsoir,

Dernière mise a jour effectuée.

Pour info, plus de connection du plugin a BMW chez moi et l’erreur dashboard suivante :

Ligne 267	
Uncaught SyntaxError: Unexpected identifier

Bonne soirée

Hello @Eridani78

Ah zut ! Je regarde ce soir !

Quelle marque ? BMW ou Mini ?
Aucun souci avant la mise à jour ?

Tu as les logs myBMW ? En debug stp !

Xav

PS : @nebz @Mips l’un d’entre vous peut-il splitter le sujet et en créer un spécifique pour ce souci ? Merci :stuck_out_tongue_winking_eye:

Voilà, c’est fait :relaxed:

1 « J'aime »

Thx a lot ! :+1:t2:

Bonsoir @Xav-74 ,

Mon modèle BMW X1.
Je n’avais pas de soucis jusque la.
Mise a jour myBMW 2022-05-28 19:17:06
Je n’ai aucun log de disponible et j’ignore comment en créer.

Ah si j’ai ca dans le log http.error :

[Tue May 31 12:45:12.493500 2022] [access_compat:error] [pid 12000] [client 192.168.1.220:52300] AH01797: client denied by server configuration: /var/www/html/plugins/myBMW/data/31, referer: http://192.168.1.44/index.php?v=d&p=dashboard

Il faut que tu ailles sur la partie configuration du plugin et que tu coches « debug » pour les logs

Puis relance une synchronisation et tu devrais voir apparaitre les logs myBMW dans le menu logs

Mais oui bien sur.

Voila le log :

[2022-05-31 23:00:05][DEBUG] : Cron30
[2022-05-31 23:00:05][DEBUG] : ┌─Command execution : refresh
[2022-05-31 23:00:05][DEBUG] : | Brand : BMW - Connection car vin : xxxxxx with username : xxxx@orange.fr
[2022-05-31 23:00:06][DEBUG] : | Result getToken OK at time 1654030806 and expires in : 3599 s
[2022-05-31 23:00:07][DEBUG] : | Result getVehicles() : {"vin":"xxxxxxx","model":"X1 sDrive18i","year":2018,"brand":"BMW","headUnit":"ID5","isLscSupported":true,"driveTrain":"COMBUSTION","puStep":"0718","iStep":"F056-18-07-523","telematicsUnit":"ATM","hmiVersion":"ID5","bodyType":"F48","a4aType":"BLUETOOTH","capabilities":{"isRemoteServicesBookingRequired":false,"isRemoteServicesActivationRequired":false,"lock":{"isEnabled":true,"isPinAuthenticationRequired":false,"executionMessage":"Lock your vehicle now? Remote functions may take a few seconds."},"unlock":{"isEnabled":true,"isPinAuthenticationRequired":true,"executionMessage":"Unlock your vehicle now? Remote functions may take a few seconds."},"lights":{"isEnabled":true,"isPinAuthenticationRequired":false,"executionMessage":"Flash headlights now? Remote functions may take a few seconds."},"horn":{"isEnabled":true,"isPinAuthenticationRequired":false,"executionMessage":"Using your horn is only allowed in certain situations in many countries. Responsibility for the use and adherence to the respective regulations lies solely with you as the user. Do you want to use the horn now? Remote functions may take a few seconds."},"vehicleFinder":{"isEnabled":true,"isPinAuthenticationRequired":false,"executionMessage":"Find your vehicle now? Remote functions may take a few seconds."},"sendPoi":{"isEnabled":true,"isPinAuthenticationRequired":false,"executionMessage":"Send POI now? Remote functions may take a few seconds."},"lastStateCall":{"isNonLscFeatureEnabled":false,"lscState":"ACTIVATED"},"climateNow":{"isEnabled":true,"isPinAuthenticationRequired":false,"executionMessage":"Do you want to ventilate now? Remote functions may take a few seconds.","executionPopup":{"executionMessage":"Do you want to ventilate now? Remote functions may take a few seconds.","popupType":"DIALOG","title":"Start Ventilation","primaryButtonText":"Start","secondaryButtonText":"Cancel","iconId":59733},"executionStopPopup":{"executionMessage":"Stop climate control in your vehicle now? Remote functions may take a few seconds.","title":"Climate control is running"}},"isRemoteHistorySupported":true,"canRemoteHistoryBeDeleted":false,"climateTimer":{"isEnabled":true,"isPinAuthenticationRequired":false,"tile":{"iconId":59774,"title":"Ventilation timer","description":"Plan start time"},"page":{"primaryButtonText":"SEND TO VEHICLE","secondaryButtonText":"DEACTIVATE AND SEND TO VEHICLE","title":"Ventilation timer","subtitle":"Set start time","description":"By setting a start time you let the vehicle know when you plan to use it."},"isToggleEnabled":true},"isChargingHistorySupported":false,"isScanAndChargeSupported":false,"isDCSContractManagementSupported":false,"isBmwChargingSupported":false,"isMiniChargingSupported":false,"isChargeNowForBusinessSupported":false,"isDataPrivacyEnabled":false,"isChargingPlanSupported":false,"isChargingPowerLimitEnable":false,"isChargingTargetSocEnable":false,"isChargingLoudnessEnable":false,"isChargingSettingsEnabled":false,"isChargingHospitalityEnabled":false,"isEvGoChargingSupported":false,"isFindChargingEnabled":false,"isCustomerEsimSupported":false,"isCarSharingSupported":false,"isEasyChargeSupported":false,"isSustainabilitySupported":false,"specialThemeSupport":[],"isRemoteParkingSupported":false},"connectedDriveServices":["WIFI_HOTSPOT_SERVICE"],"properties":{"lastUpdatedAt":"2022-05-31T14:40:22Z","inMotion":false,"areDoorsLocked":true,"originCountryISO":"FR","areDoorsClosed":true,"areDoorsOpen":false,"areWindowsClosed":true,"doorsAndWindows":{"doors":{"driverFront":"CLOSED","driverRear":"CLOSED","passengerFront":"CLOSED","passengerRear":"CLOSED"},"windows":{"driverFront":"CLOSED","driverRear":"CLOSED","passengerFront":"CLOSED","passengerRear":"CLOSED"},"trunk":"CLOSED","hood":"CLOSED","moonroof":"CLOSED"},"isServiceRequired":false,"fuelLevel":{"value":17,"units":"LITERS"},"combustionRange":{"distance":{"value":269,"units":"KILOMETERS"}},"checkControlMessages":[{"type":"ENGINE_OIL","status":"WARNING","id":27,"name":"Oil at minimum: Please refill","description":"Add 1 quart of oil as soon as possible, see Owner's Manual."}],"serviceRequired":[{"type":"VEHICLE_TUV","status":"OK","dateTime":"2022-08-01T00:00:00.000Z"},{"type":"OIL","status":"OK","dateTime":"2022-06-01T00:00:00.000Z","distance":{"value":3100,"units":"KILOMETERS"}},{"type":"VEHICLE_CHECK","status":"OK","dateTime":"2022-06-01T00:00:00.000Z","distance":{"value":3100,"units":"KILOMETERS"}},{"type":"BRAKE_FLUID","status":"OK","dateTime":"2023-09-01T00:00:00.000Z"}],"vehicleLocation":{"coordinates":{"latitude":xxxx,"longitude":xxxx},"address":{"formatted":"xxxx"},"heading":288},"climateControl":{}},"isMappingPending":false,"isMappingUnconfirmed":false,"driverGuideInfo":{"title":"BMWDriver's Guide","androidAppScheme":"com.bmwgroup.driversguide.row","iosAppScheme":"bmwdriversguide:\/\/\/open","androidStoreUrl":"https:\/\/play.google.com\/store\/apps\/details?id=com.bmwgroup.driversguide.row","iosStoreUrl":"https:\/\/apps.apple.com\/de\/app\/id714042749?mt=8"},"themeSpecs":{"vehicleStatusBackgroundColor":{"red":85,"green":89,"blue":92}},"status":{"lastUpdatedAt":"2022-05-31T14:40:22Z","currentMileage":{"mileage":35979,"units":"mi","formattedMileage":"35,979"},"issues":{"checkControlMessages":{"iconId":60198,"title":"Oil at minimum: Please refill"}},"doorsGeneralState":"Locked","checkControlMessagesGeneralState":"1 Issue","doorsAndWindows":[{"iconId":59757,"title":"Lock status","state":"Locked","criticalness":"nonCritical"},{"iconId":59722,"title":"All doors","state":"Closed","criticalness":"nonCritical"},{"iconId":59725,"title":"All windows","state":"Closed","criticalness":"nonCritical"},{"iconId":59706,"title":"Hood","state":"Closed","criticalness":"nonCritical"},{"iconId":59704,"title":"Trunk","state":"Closed","criticalness":"nonCritical"},{"iconId":59705,"title":"Sunroof","state":"Closed","criticalness":"nonCritical"}],"checkControlMessages":[{"criticalness":"semiCritical","id":"27","iconId":60198,"longDescription":"Add 1 quart of oil as soon as possible, see Owner's Manual.","title":"Oil at minimum: Please refill","state":"Medium"}],"requiredServices":[{"id":"VehicleAdmissionTest","title":"Vehicle Inspection","iconId":60111,"longDescription":"Next state inspection due by the specified date.","subtitle":"Due in August 2022","criticalness":"nonCritical"},{"id":"Oil","title":"Engine oil","iconId":60197,"longDescription":"Next service due after the specified distance or date.","subtitle":"Due in June 2022 or 1926 mi","criticalness":"nonCritical"},{"id":"VehicleCheck","title":"Vehicle check","iconId":60215,"longDescription":"Next vehicle check due after the specified distance or date.","subtitle":"Due in June 2022 or 1926 mi","criticalness":"nonCritical"},{"id":"BrakeFluid","title":"Brake fluid","iconId":60223,"longDescription":"Next service due by the specified date.","subtitle":"Due in September 2023","criticalness":"nonCritical"}],"recallMessages":[],"recallExternalUrl":null,"fuelIndicators":[{"secondaryBarValue":0,"infoIconId":59930,"infoLabel":"Fuel Level","rangeIconId":59681,"rangeUnits":"mi","rangeValue":"167","levelIconId":59682,"isCircleIcon":false,"iconOpacity":"high","chargingType":null,"mainBarValue":0,"showsBar":false,"levelUnits":"gal","levelValue":"4","isInaccurate":true}],"timestampMessage":"Updated from vehicle 6\/5\/2022 02:40 PM"},"exFactoryPUStep":"0718","exFactoryILevel":"F056-18-07-523","euiccid":"yyyyyy"}
[2022-05-31 23:00:07][DEBUG] : └─End of car info refresh : [200 - OK]

Les infos semblent mises a jour mais sur mon dashboard, j’ai ca :

plus la map avec la geoloc que je n’ai pas affiché sur ma capture d’écran.

OK donc tout est OK côté connexion et remontées des informations !
Uniquement un problème d’affichage sur le dashboard donc. Bizarre, je n’ai rien touché pourtant. Et je n’arrive pas à reproduire.

Quelle version de Jeedom ?

EDIT : en regardant le log http_error, il parle d’un répertoire /var/www/html/plugins/myBMW/data/31
c’est toi qui l’a créé le /31 ?

Désolé, j’aurais du l’indiquer dans mon premier post.

Raspberry Pi4B 8 Go - Debian GNU/Linux 10 (buster) 64 bits (aarch64)
Jeedom version Stable 4.2.16
MyBMW version Stable 2022-05-28 19:17:06

Oui on dirait un problème de droits dans Jeedom.
De mon coté, je n’ai rien modifié dans mon système, je ne vois pas non plus.
Je n’ai pas créer de répertoire dans le plugin myBMW.

Peux tu aller dans :
Réglage → Système → Configuration onglet OS/DB et faire un : Rétablissement des droits des dossiers et fichiers

Puis un refresh sur ton dashboard

Bizarre ca ! Il y a des fichiers dans ce répertoire ? Il y a d’autres répertoire dans le répertoire /data du plugin ?

Non.
Je suis en train de regarder justement.
Il n’y a que 3 fichiers dans plugins/myBMW/data.

  • auth_token.json
  • image_car_not_found.png
  • mon identifiant.png

Ton identifiant ou ton VIN ?
Si c’est ton vin, c’est normal

J’ai fait la manip :

Réglage → Système → Configuration onglet OS/DB et faire un : Rétablissement des droits des dossiers et fichiers
Puis un refresh sur ton dashboard

Ca ne change rien. Pas d’infos sur la tuile.

Oui c’est mon Vin

ok on va essayer autre chose : sur la page de ton équipement, peux tu décocher « Widget personnalisé » puis sauvegarder.
Rafraichir le dashboard et voir si les infos de la tuile standard (sans widget) remontent bien ?

Oui, dans ce cas, les infos remontent correctement.
Si je recoche « Widget personnalisé », il n’y a plus rien.

Tu pourrais me faire un screenshot de la tuile en MP pour que je regarde quelle est la valeur de la commande qui pose pb ?

C’est quoi MP ?

message privé
Visible uniquement par moi don c sans risque :slight_smile:
Tu clique sur mon pseudo et tu as Message Direct