MagicMirror² v2.4.1 is available! For more information about this release, check out this topic.
Please read the release notes carefully since this update requires adjustments to your Raspberry Pi configuration!

Custom video module need help debugging

  • I wrote a module to display a random video based on the successful evaluation of the FacialRecognition module… It executes without any obvious errors but only the following output appears on the mirror.

    // helloworld

    I modified the hellowworld module as follows

    #!/usr/bin/env python
            import os, random
            def rndvid ():
            randomfile = random.choice(os.listdir("/home/pi/Videos"))
            file = ' /home/pi/Videos/'+ randomfile
            os.system ('omxplayer' + file)
             rndvid ()


    I would love som help