<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Custom video module need help debugging]]></title><description><![CDATA[<p dir="auto">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.</p>
<p dir="auto">//         helloworld<br />
//module_0_helloworld</p>
<p dir="auto">I modified the hellowworld module as follows</p>
<pre><code>Module.register("helloworld",{

#!/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 ()
}
</code></pre>
<p dir="auto">});</p>
<p dir="auto">I would love som help</p>
]]></description><link>https://forum.magicmirror.builders/topic/1062/custom-video-module-need-help-debugging</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Jul 2026 14:04:09 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/1062.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 26 Nov 2016 04:11:34 GMT</pubDate><ttl>60</ttl></channel></rss>