Read the statement by Michael Teeuw here.
MMM-XboxFriends - Using Puppeteer to retrieve your xbox friends list and their status
-
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

-
@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 -
-
@steve8384 hi! Thanks for trying this module!
Can you try using
debug:trueand copy what appears in the console?You can also try with
showBrowser: falseand see where it get stuck -
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… -
@steve8384 hi! I’ll review the code to try to find the bug.
You can also try
showBrowser: trueto see if puppeteer can access your friend list or some problem appears in between -
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-activefailed: 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 :-)
-
@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!
-
@kfyfeg Big Thanks this would be great.
Did MagicMirro use the same Browser as puppeteer? -
@commander I understand that it use the same browser but a different instance/session
-
@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.jsIts an Misstake with MMM-GooglePhotos? You mean MMM-XboxFriends?
-
@kfyfeg Hey did you found a solution?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login