MagicMirror² v2.5.0 is available! For more information about this release, check out this topic.

Needing testers and feedback... and possibly an answer or 2!



  • OK, major question…

    Can someone, anyone, explain how I can be running the exact same OS on 2 different devices and they have a different outcome with certain coding…???

    I have the latest version of Windows 10 fully updated on 2 different pc’s.

    My test machine is an older Lenovo Thinkcentre SFF desktop with a Quad Core CPU and maxed at 4gb Ram.

    My main device is an Asus Laptop with the latest generation Core i7 CPU and 16gb Ram.

    My RandomYouTubePlayer module, https://github.com/justjim1220/MMM-RandomYouTubePlayer, works fairly decent on my older desktop PC in the sense that it will play the first video of the playlist, then shuffle/random play the following videos in the playlist. Pretty close to what I was trying to achieve.

    But, on my newer Asus Laptop, it won’t shuffle at all.

    I can be using the exact same module and placed in the exact same place in the config.js. And the 2 Mirrors will have a slightly different outcome.

    I was hoping someone could enlighten me on how this works, and why.

    And if anyone out there feels up to it, or has time, could I get some testers to install it on the various other devices and let me know the outcome. I don’t currently have access to a Raspberry Pi or a Linux-based OS. I will be able to try it on an Ubuntu PC later. But I would like some feedback on how it works on other devices and OS’s.

    Thanks in advance!!!


  • Module Developer

    @justjim1220

    @justjim1220

    I can’t help you with the issue you’re having but I will test my ubuntu dev machine.

    First, the config entry in your repo has the module name misspelled.

    module: "MMM-RandomYoutubePlayer",

    needs to be

    module: "MMM-RandomYouTubePlayer",

    And the closing } needs a comma. I only mention this because a new user might not notice this.

    After correcting these, the module works fine on my ubuntu dev machine. It’s going through the playlist. However, there is one error in the dev console.

    Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('http://localhost:8080').


  • Module Developer

    I just googled the entire error message and received plenty of results. Looks like a good place to start jimbo



  • @mykle1 said in Needing testers and feedback... and possibly an answer or 2!:

    I just googled the entire error message and received plenty of results. Looks like a good place to start jimbo

    Ok great let us know when you have it figured out LOL



  • UPDATE…

    It is now working as I originally wanted to an extent…

    YouTube API only allows a max of 200 videos to load into the player at a time… So what this module will do is pick 200 random videos out of a shuffled playlist (my playlist has almost 1300 videos), load them and play them in the order it randomly chose.

    I think that MAYBE I can handle that for now!

    Thanks to all those who have helped me get this figured out!!! Much Appreciated!!!

    Not sure what I did, But this error disappeared after the module started to work the way I was wanting it to!



  • @mykle1

    Not sure what I did, But this error disappeared after the module started to work the way I was wanting it to!


  • Module Developer

    @justjim1220 said in Needing testers and feedback... and possibly an answer or 2!:

    Not sure what I did, But this error disappeared after the module started to work the way I was wanting it to!

    Never look a gift horse in the mouth!

    That is weird, though. Nice work sorting it out. 🙂



  • @mykle1 Yeah, it is still working, but there are times when I refresh or reload after making a change to the mirror, that it doesn’t work. it’s really weird!!!