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-Podcast2 just shows undefined

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    8 Posts 2 Posters 940 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.
    • O Offline
      oggo
      last edited by oggo

      Hi all,

      I’m using MM V2.19.0 on Raspbian Buster and try to get MMM-Podcast2 up and running.

      Some time ago I asked for help here regarding the missing request package. Since that I hadn’t found the time to work on my MM since now … I started with a fresh MM installation again.

      After the insatllation of MMM-Podcast2 I installed the request package as mentioned in https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later. Now I stuck an moule output that says “UNDEFINED”.

      I tried to do a bit of research. In the Console Output from developer tools it says, that within the main function updateModuleContent the first parameter newcontent isn’t of the type Node. So I made a log output with that parameter. But now I’m kind of stucked with my abilities of trying to understand what is happening. Does anyone has an idea why the content is “undefined” or what I could do to further check where is the reason of the error?

      3da20925-ba1e-40d1-b57a-10142ef82598-grafik.png

      88187f4b-e69d-46d7-bdb8-f1e98d567df2-grafik.png

      7daa2001-31e3-4fe2-b66c-4ac1f2d5ead9-grafik.png

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @oggo
        last edited by sdetweil

        @oggo newContent is passed as a parameter to this function so the function caller failed to provide a good pointer
        this looks like the module didn’t return something from it’s getDom() function which is required. even if it’s an empty div

        yep, no return

        getDom: function() {
        		
        	},
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        O 1 Reply Last reply Reply Quote 0
        • O Offline
          oggo @sdetweil
          last edited by

          @sdetweil Thanks for the hint! I came across this part in the https://github.com/Ax-LED/MMM-Podcast2/blob/master/MMM-Podcast2.js already and was not sure, if this function is filled within MMM-Podcast in another way.

          S 2 Replies Last reply Reply Quote 0
          • S Offline
            sdetweil @oggo
            last edited by sdetweil

            @oggo

            make it like this

            getDom: function(){
                    return document.createElement('div')
            }
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @oggo
              last edited by

              @oggo this only fixes this one error. no idea on the rest of the module

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              O 1 Reply Last reply Reply Quote 0
              • O Offline
                oggo @sdetweil
                last edited by

                @sdetweil Thanks for your quick help. The error is gone. The Video isn’t playing yet. I will investigate further …

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @oggo
                  last edited by sdetweil

                  @oggo the code is launching omxplayer to play

                  but I don’t think that works anymore

                  Screenshot_20220522-084027_Chrome.jpg

                  maybe

                  https://youtu.be/u0oElW3lrFI

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  O 1 Reply Last reply Reply Quote 0
                  • O Offline
                    oggo @sdetweil
                    last edited by

                    @sdetweil Thank you very much for your effort!
                    The commands of the youtube video didn’t help in my case.

                    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 Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy