Read the statement by Michael Teeuw here.
MMM-MercedesMe
-
@ashishtank
Hello.
I set up my Magic Mirror again.
I’ve been working on the project for 2 weeks.
So I honestly don’t know where to find the exact logs.
I also have the debug mode on but first have to see where I can find the log.
Sorry, just start with the matter. -
@kar1507 if you start your mirror with pm2
do pm2 statusthen pm2 logs --lines=100
will show 100 lines of the logged info…
same stuff that is displayed after npm startpm2 flush to clear the logs
-
Good Morning
Thank You sdetweil
Here my log:/home/pi/.pm2/logs/MagicMirror-error.log last 100 lines: 0|MagicMir | npm ERR! code ELIFECYCLE 0|MagicMir | npm ERR! errno 1 0|MagicMir | npm ERR! magicmirror@2.14.0 start: `DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js` 0|MagicMir | npm ERR! Exit status 1 0|MagicMir | npm ERR! 0|MagicMir | npm ERR! Failed at the magicmirror@2.14.0 start script. 0|MagicMir | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|MagicMir | 0|MagicMir | npm ERR! A complete log of this run can be found in: 0|MagicMir | npm ERR! /home/pi/.npm/_logs/2021-02-11T08_58_44_432Z-debug.log 0|MagicMir | [11.02.2021 09:59.18.142] [WARN] You're using a full whitelist configuration to allow for all IPs 0|MagicMir | [11.02.2021 09:59.20.163] [WARN] (electron) The default value of app.allowRendererProcessReuse is deprecated, it is currently "false". It will change to be "true" in Electron 9. For more information please check https://github.com/electron/electron/issues/18397
0|MagicMir | [11.02.2021 09:59.18.193] [LOG] Connecting socket for: MMM-MercedesMe 0|MagicMir | [11.02.2021 09:59.18.195] [LOG] Starting node_helper for Mercedes Me 0|MagicMir | [11.02.2021 09:59.38.750] [LOG] Init token from file./modules/MMM-MercedesMe/tokens.json 0|MagicMir | [11.02.2021 09:59.38.764] [LOG] Client id 2051c078-7e58-4758-a508-cabafe8d1317 0|MagicMir | [11.02.2021 09:59.38.772] [LOG] Current token is expired or does not exists 0|MagicMir | [11.02.2021 09:59.38.945] [INFO] Checking git for module: MMM-MercedesMe 0|MagicMirror | [11.02.2021 10:01.33.024] [LOG] 0|MagicMirror | Handle OAuth request 0|MagicMirror | [11.02.2021 10:01.33.036] [LOG] https://id.mercedes-benz.com/as/authorization.oauth2?response_type=code&client_id=2051c078-7e58-4758-a508-cabafe8d1317&&redirect_uri=http://localhost:8080/MMM-MercedesMe/callback&scope=mb:vehicle:mbdata:fuelstatus&state=0ec4726f-662b-40d5-bb07-ad649bd085ec 0|MagicMirror | [11.02.2021 10:01.47.680] [LOG] 0|MagicMirror | Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/WDD247047/containers/fuelstatus 0|MagicMirror | [11.02.2021 10:01.47.685] [LOG] 0|MagicMirror | Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/WDD247047/containers/fuelstatus 0|MagicMirror | [11.02.2021 10:01.47.715] [LOG] 0|MagicMirror | Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/WDD247047/containers/fuelstatus 0|MagicMirror | [11.02.2021 10:01.47.719] [LOG] Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/WDD247047/containers/fuelstatus 0|MagicMirror | [11.02.2021 10:02.07.183] [LOG] 0|MagicMirror | Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/WDD247047/containers/fuelstatus 0|MagicMirror | [11.02.2021 10:02.07.198] [LOG] 0|MagicMirror | Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/WDD247047/containers/fuelstatus 0|MagicMirror | [11.02.2021 10:02.07.233] [LOG] 0|MagicMirror | Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/WDD247047/containers/fuelstatus 0|MagicMirror | [11.02.2021 10:02.07.241] [LOG] Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/WDD247047/containers/fuelstatus ´´´
-
Hello.
Thank you @ashishtank @sdetweil @JerryP
It works now and the data is displayed. -
@kar1507 Good to know that issues is solved, may be it was temporary issue from Mercedes Api, they have some downtime every now and then. Also I noticed that you have not included offline_access scope in config ? if you do not include that then refresh token will not be generated and thus you will need to re login again and again once the access token is expirers.
-
@kar1507
cen you post a picture of the screen??? -
@ashishtank
That explains why I always had Authenticate there. I’ve added it now. Thank you very much. -
@kar1507 Nice. that is the same as over her white the electric car.
Thanks for the screen view -
Hi,
First of all Thank you for this module. I followed the full setup and unfortunately I have no update.
Here is my setup:
{ module: 'MMM-MercedesMe', position: 'bottom_left', header: 'Mercedes Fuel', config: { client_id: '**********************************************', client_secret: '**************************************************', vehicleType: 'Petrol', scope: 'mb:vehicle:mbdata:vehiclestatus offline_access', vehicleId: 'W*****************************9', displayStyle: 'twodial', updateInterval: 300000, debug: true, maxRange: 520 }
},
On the log I do have this error:
[05.04.2021 23:33.58.329] [LOG] Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/W**************9/containers/electricvehicle
[05.04.2021 23:33.58.575] [LOG] 403 - ForbiddenDespite it says electricvehicule the setup on MercedesMe Dev is exactly as per the instruction.
I’m a bit lost at this point.
Thank you in advance for any help!
-