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-XboxFriends - Using Puppeteer to retrieve your xbox friends list and their status

    Scheduled Pinned Locked Moved Utilities
    11 Posts 3 Posters 3.1k Views 3 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.
    • K Offline
      kfyfeg
      last edited by

      Hi,

      this is my first module so please, if you’re interested, try it and tell me what you think!

      Download and instructions on GitHub.

      Example
      alt text

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        steve8384 @kfyfeg
        last edited by

        @kfyfeg Hello there ! I love this concept and thanks for taking the time out to do this. I can get as far as Login OK when running MMM-XboxFriends but then it doesnt show anything. I used option 2 for setting login credentials… any idea on what the issue is ?

        Steve -

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          kfyfeg @steve8384
          last edited by kfyfeg

          @steve8384 hi! Thanks for trying this module!

          Can you try using debug:true and copy what appears in the console?

          You can also try with showBrowser: false and see where it get stuck

          1 Reply Last reply Reply Quote 0
          • S Offline
            steve8384
            last edited by

            Hello - this is what I get from the debug console.

            [2020-09-05 15:52:31.772] [LOG] Core start
            [2020-09-05 15:52:31.774] [LOG] Core getDom
            [2020-09-05 15:52:31.776] [LOG] loaded: false
            [2020-09-05 15:52:31.778] [LOG] Helper notification CONFIG
            [2020-09-05 15:52:31.784] [LOG] Launching puppeteer…
            [2020-09-05 15:52:31.787] [LOG] loginCache:
            [2020-09-05 15:52:31.789] [LOG] loginFinal: true
            [2020-09-05 15:52:31.790] [LOG] already logged in
            [2020-09-05 15:52:31.928] [LOG] Core getDom
            [2020-09-05 15:52:31.932] [LOG] loaded: false
            [2020-09-05 15:52:33.853] [INFO] Newsfeed-Fetcher: Broadcasting 59 items.
            [2020-09-05 15:52:37.803] [LOG] userdata: /home/pi/MagicMirror/modules/MMM-XboxFriends/myUserDataDir/
            [2020-09-05 15:52:44.476] [LOG] loginCache:
            [2020-09-05 15:52:44.481] [LOG] Login OK…
            [2020-09-05 15:52:44.493] [LOG] Searching list…
            [2020-09-05 15:52:44.580] [LOG] XXX core socketNotificationReceived: LOGIN_OK
            [2020-09-05 15:52:44.592] [LOG] Core getDom
            [2020-09-05 15:52:44.608] [LOG] loaded: false
            [2020-09-05 15:52:54.522] [LOG] List not found, refreshing…
            [2020-09-05 15:52:59.743] [LOG] Num. amigos: 0
            [2020-09-05 15:52:59.748] [LOG] []
            [2020-09-05 15:52:59.751] [LOG] largo array: 0
            [2020-09-05 15:52:59.794] [LOG] XXX core socketNotificationReceived: INFO_OK
            [2020-09-05 15:52:59.803] [LOG] Core getDom
            [2020-09-05 15:52:59.813] [LOG] loaded: true
            [2020-09-05 15:52:59.830] [LOG] largo array: 0
            [2020-09-05 15:52:59.837] [LOG] config.maxEntries: 7
            [2020-09-05 15:52:59.843] [LOG] config.offline: true
            [2020-09-05 15:52:59.848] [LOG] config.fadePoint: 0.5
            [2020-09-05 15:53:00.933] [LOG] Puppeteer closed…

            K 1 Reply Last reply Reply Quote 0
            • K Offline
              kfyfeg @steve8384
              last edited by

              @steve8384 hi! I’ll review the code to try to find the bug.

              You can also try showBrowser: true to see if puppeteer can access your friend list or some problem appears in between

              1 Reply Last reply Reply Quote 0
              • C Offline
                Commander
                last edited by

                Big Thanks for this Plugin,
                I have a Problem after use node generateLogin.js.

                node generateLogin.js
                Are you already logged in?
                No, please login
                user OK
                pass OK
                TimeoutError: waiting for selector #primaryArea > core-area > core-region-pivot > section > section > header > a.f-active failed: timeout 40000ms exceeded
                at new WaitTask (/home/pi/MagicMirror/modules/MMM-Xboxfriends/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:526:34)
                at DOMWorld.waitForSelectorInPage (/home/pi/MagicMirror/modules/MMM-Xboxfriends/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:430:26)
                at Object.internalHandler.waitFor (/home/pi/MagicMirror/modules/MMM-Xboxfriends/node_modules/puppeteer/lib/cjs/puppeteer/common/QueryHandler.js:31:77)
                at DOMWorld.waitForSelector (/home/pi/MagicMirror/modules/MMM-Xboxfriends/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:321:29)
                at Frame.waitForSelector (/home/pi/MagicMirror/modules/MMM-Xboxfriends/node_modules/puppeteer/lib/cjs/puppeteer/common/FrameManager.js:925:51)
                at Page.waitForSelector (/home/pi/MagicMirror/modules/MMM-Xboxfriends/node_modules/puppeteer/lib/cjs/puppeteer/common/Page.js:2359:33)
                at /home/pi/MagicMirror/modules/MMM-Xboxfriends/generateLogin.js:46:14
                at processTicksAndRejections (internal/process/task_queues.js:95:5)

                I hope you can help :-)

                K 1 Reply Last reply Reply Quote 0
                • K Offline
                  kfyfeg @Commander
                  last edited by

                  @commander Hi! Thanks for trying this module!

                  Because I’m using Puppeteer, a little change in the site structure may result in an error. As soon as I can I’ll review the code to find a solution. I’ll let you know

                  Cheers!

                  C 2 Replies Last reply Reply Quote 0
                  • C Offline
                    Commander @kfyfeg
                    last edited by

                    @kfyfeg Big Thanks this would be great.
                    Did MagicMirro use the same Browser as puppeteer?

                    K 1 Reply Last reply Reply Quote 0
                    • K Offline
                      kfyfeg @Commander
                      last edited by

                      @commander I understand that it use the same browser but a different instance/session

                      C 1 Reply Last reply Reply Quote 0
                      • C Offline
                        Commander @kfyfeg
                        last edited by

                        @kfyfeg
                        Did you run the Plugin at the moment on your MM?
                        You wrote at GitHub this:

                        Option 1: Manual login

                        Go to MMM-XboxFriends folder
                        cd ~/MagicMirror/modules/MMM-GooglePhotos
                        node generateLogin.js

                        Its an Misstake with MMM-GooglePhotos? You mean MMM-XboxFriends?

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          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