MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

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

    Troubleshooting
    3
    8
    1244
    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.
    • justjim1220
      justjim1220 Module Developer last edited by

      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

      Mykle1 1 Reply Last reply Reply Quote 0
      • Mykle1
        Mykle1 Project Sponsor Module Developer @justjim1220 last edited by

        @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

        justjim1220 1 Reply Last reply Reply Quote 3
        • Mykle1
          Mykle1 Project Sponsor Module Developer last edited by

          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

          cowboysdude 1 Reply Last reply Reply Quote 2
          • cowboysdude
            cowboysdude Module Developer @Mykle1 last edited by

            @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
            • justjim1220
              justjim1220 Module Developer last edited by

              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
              • justjim1220
                justjim1220 Module Developer @Mykle1 last edited by

                @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

                Mykle1 1 Reply Last reply Reply Quote 1
                • Mykle1
                  Mykle1 Project Sponsor Module Developer @justjim1220 last edited by

                  @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

                  justjim1220 1 Reply Last reply Reply Quote 0
                  • justjim1220
                    justjim1220 Module Developer @Mykle1 last edited by

                    @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
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy