Read the statement by Michael Teeuw here.
MMM-MercedesMe
-
@rogers0072002 sorry is not good log
0|MagicMirror | Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/WDCXXXXXXXXXXXXXX/containers/fuelstatus
0|MagicMirror | [28.06.2021 22:35.42.737] [LOG]
0|MagicMirror | 403 - Forbidden
0|MagicMirror | [28.06.2021 22:38.15.691] [LOG]
0|MagicMirror | Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/WDCXXXXXXXXXXXXXX/containers/fuelstatus
0|MagicMirror | [28.06.2021 22:38.16.209] [LOG]
0|MagicMirror | 403 - Forbidden
0|MagicMirror | [28.06.2021 22:38.21.119] [INFO] -
@rogers0072002 As per logs it looks like you have not added scope or token is not valid can you delete the tokens.json file and try login again ? make sure you have linked right scope (electric or fuel) in the Mercedes app.
-
Hello.
Lovely looking module. Having some trouble with mine. The single dial displays, but doesn’t seem to have pulled any data from Mercedes. I did not ever get an authenticate option after installing…
Did pm2 restart mm and then watched pm2 logs… only thing relevant I could see was:
0|mm | [24.11.2021 13:58.46.575] [ERROR] 0|mm | Whoops! There was an uncaught exception... 0|mm | [24.11.2021 13:58.46.583] [ERROR] 0|mm | TypeError: Cannot read property 'toLowerCase' of undefined 0|mm | at Class.getVehicleDataUrl (/home/pi/MagicMirror/modules/MMM-MercedesMe/node_helper.js:146:32) 0|mm | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-MercedesMe/node_helper.js:106:25) 0|mm | at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:112:11) 0|mm | at Socket.emit (events.js:210:5) 0|mm | at Socket.onevent (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:253:20) 0|mm | at Socket.socket.onevent (/home/pi/MagicMirror/js/node_helper.js:105:13) 0|mm | at Socket._onpacket (/home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:216:22) 0|mm | at /home/pi/MagicMirror/node_modules/socket.io/dist/client.js:205:28 0|mm | at processTicksAndRejections (internal/process/task_queues.js:75:11) 0|mm | [24.11.2021 13:58.46.588] [ERROR] 0|mm | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 0|mm | [24.11.2021 13:58.46.593] [ERROR] 0|mm | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
I cannot see a tokens.json in the ~/MagicMirror/modules/MMM-MercedesMe folder to try that option.
I have the following products enabled in developer portal:
Appreciate any tips, thanks.
Matt -
@matt216 Can you check if request package is installed ? you can do so with below command
npm install request --save
-
@ashishtank ran command (added 47 packages), reloaded MM, same issue :(
Appreciate the help
-
@matt216 did you set the
vehicleType
correctly in config. is the config variable in correct case ?switch (config.vehicleType.toLowerCase()) { <--- error on this line. case 'diesel': vehicleStatus = 'fuelstatus'; }
-
@ashishtank my vehicle is electric, so I didn’t include that in the config as it’s the default.
I just tried addingvehicleType: 'Electric'
but nothing changed.
Any advice on logs I can check? I feel a bit unhelpful here… :)
Matt