• 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.

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

Scheduled Pinned Locked Moved Unsolved Troubleshooting
8 Posts 3 Posters 2.0k Views 2 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.
  • J Offline
    justjim1220 Module Developer
    last edited by Jun 20, 2018, 11:25 PM

    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!!!

    "Life's Too Short To Dance With Ugly People"
    Jim Hallock - 1995

    M 1 Reply Last reply Jun 21, 2018, 2:16 AM Reply Quote 0
    • M Offline
      Mykle1 Project Sponsor Module Developer @justjim1220
      last edited by Jun 21, 2018, 2:16 AM

      @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').

      Create a working config
      How to add modules

      J 1 Reply Last reply Jun 23, 2018, 3:09 AM Reply Quote 3
      • M Offline
        Mykle1 Project Sponsor Module Developer
        last edited by Jun 22, 2018, 11:34 AM

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

        Create a working config
        How to add modules

        C 1 Reply Last reply Jun 22, 2018, 11:52 AM Reply Quote 2
        • C Offline
          cowboysdude Module Developer @Mykle1
          last edited by Jun 22, 2018, 11:52 AM

          @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

          1 Reply Last reply Reply Quote 2
          • J Offline
            justjim1220 Module Developer
            last edited by Jun 23, 2018, 3:09 AM

            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!

            "Life's Too Short To Dance With Ugly People"
            Jim Hallock - 1995

            1 Reply Last reply Reply Quote 0
            • J Offline
              justjim1220 Module Developer @Mykle1
              last edited by Jun 23, 2018, 3:09 AM

              @mykle1

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

              "Life's Too Short To Dance With Ugly People"
              Jim Hallock - 1995

              M 1 Reply Last reply Jun 24, 2018, 12:37 AM Reply Quote 1
              • M Offline
                Mykle1 Project Sponsor Module Developer @justjim1220
                last edited by Jun 24, 2018, 12:37 AM

                @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. :-)

                Create a working config
                How to add modules

                J 1 Reply Last reply Jun 24, 2018, 7:27 PM Reply Quote 0
                • J Offline
                  justjim1220 Module Developer @Mykle1
                  last edited by Jun 24, 2018, 7:27 PM

                  @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!!!

                  "Life's Too Short To Dance With Ugly People"
                  Jim Hallock - 1995

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