• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-MercedesMe

Scheduled Pinned Locked Moved Transport
52 Posts 9 Posters 16.9k Views 8 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    pyrophoenix @ashishtank
    last edited by Apr 8, 2021, 11:43 AM

    @ashishtank Thanks for the reply!

    I have erased token and reboot it with Diesel…Still the same issue but this time it goes to the correct URL

    [08.04.2021 13:38.22.939] [LOG]   Handle OAuth request
    [08.04.2021 13:38.22.946] [LOG]   https://id.mercedes-benz.com/as/authorization.oauth2?response_type=code&client_id=c****************4a&&redirect_uri=http://localhost:8080/MMM-MercedesMe/callback&scope=mb:vehicle:mbdata:vehiclestatus offline_access&state=d*************************e
    [08.04.2021 13:38.25.124] [INFO]  Newsfeed-Fetcher: Broadcasting 66 items.
    [08.04.2021 13:38.26.049] [LOG]   Handle OAuth callback
    [08.04.2021 13:38.26.982] [LOG]   OAuth callback Success
    [08.04.2021 13:38.34.388] [LOG]   Vehicle data url https://api.mercedes-benz.com/vehicledata/v2/vehicles/W1****************9/containers/fuelstatus
    [08.04.2021 13:38.35.647] [LOG]   403 - Forbidden
    

    It is still saying error 403

    A 1 Reply Last reply Apr 8, 2021, 3:37 PM Reply Quote 0
    • A Offline
      ashishtank Module Developer @pyrophoenix
      last edited by Apr 8, 2021, 3:37 PM

      @pyrophoenix did you followed the step 3 correctly ? did you linked fuel status scope with app ? as shown in image below you should see
      Fuel Status BYOCAR

      12999928-2260-4d66-98d6-d9334b7d61d8-image.png

      1 Reply Last reply Reply Quote 0
      • P Offline
        pyrophoenix
        last edited by Apr 8, 2021, 8:45 PM

        Thanks! Great that YOU point it out! I cheated a bit and directly put the “fuel” on the URL as so

        https://developer.mercedes-benz.com/products/fuel_status/get_access?pm=free

        I just added it and I’ll try now.

        1 Reply Last reply Reply Quote 0
        • P Offline
          pyrophoenix
          last edited by Apr 8, 2021, 9:33 PM

          Not working…But it seems that the Bearer is not generated properly. If I try the test curl provided by the Mercedes Dev, it does work…

          A 1 Reply Last reply Apr 9, 2021, 3:48 PM Reply Quote 0
          • A Offline
            ashishtank Module Developer @pyrophoenix
            last edited by Apr 9, 2021, 3:48 PM

            @pyrophoenix Can you delete the app in Mercedes dev portal and create new one with correct scope ? also delete tokens.json file and restart the mirror. I think it is some caching issue.

            P 1 Reply Last reply Apr 9, 2021, 10:35 PM Reply Quote 0
            • P Offline
              pyrophoenix @ashishtank
              last edited by Apr 9, 2021, 10:35 PM

              @ashishtank Remove and did a brand new app on console. Removed tokens.json and reboot…Same problem

              There is one thing that is on your step (Right from step 1) saying:

              AUTH CALLBACK URL: http://localhost

              Where that needs to be introduced?

              1 Reply Last reply Reply Quote 0
              • P Offline
                pyrophoenix
                last edited by Apr 9, 2021, 10:37 PM

                Details.PNG image url)

                A 2 Replies Last reply Apr 12, 2021, 11:09 AM Reply Quote 0
                • A Offline
                  ashishtank Module Developer @pyrophoenix
                  last edited by Apr 12, 2021, 11:09 AM

                  @pyrophoenix things looks correct, http://localhost:8080/MMM_MercedesMe/callback is important other localhost urls in callback are optional. I have sent you PM what we can do next.

                  1 Reply Last reply Reply Quote 0
                  • A Offline
                    ashishtank Module Developer @pyrophoenix
                    last edited by Apr 14, 2021, 4:29 PM

                    @pyrophoenix Let me know if changing the scope solves the issue. I will update the documentation accordingly.

                    P 1 Reply Last reply Apr 17, 2021, 4:21 PM Reply Quote 0
                    • P Offline
                      pyrophoenix @ashishtank
                      last edited by Apr 17, 2021, 4:21 PM

                      @ashishtank Hi! Unfortunatly it didn’t :/ Mercedes are looking at this matter and they will get back to me normally on Monday.

                      Thanks again for your help and I’ll keep you informed!

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 4 / 6
                      4 / 6
                      • First post
                        33/52
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy