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