

The folder structure below matches the paths in the script to access the images and videos. The player used is OMXPlayer and while it does support pausing there is no command line command that I could call in Python to pause and play without implementing something like DBuscontrol which would overly complicate the project.

To display the initial image I used the Linux FBI (framebuffer imageviewer). The advantage to this is that when OMXPlayer exited the loaded still would still be in the framebuffer and be on screen. It would be simpler to display a still of the first frame and then when motion is detected fire up OMXPlayer to play the appropriate video file. I could load the video and then pause it on the first frame and then when there is motion make it continue playing and when complete reset and start all over again. The first hurdle was to get the video to play when there was motion detected not just loop constantly on the screen. I used three of the Unliving Portrait videos from AtmosFX in my project. The picture frame attaches to the LCD frame and leaves all the electronics accessible from the back.Īfter staining the picture frame and letting it dry I used a brad nailer to attach the picture frame to the LCD frame. I cut 4 pieces that when framed together would be the exact size of my LCD and mounted the LCD into the frame and made the LCD flush with the LCD frame. I built a wood frame using 1" x 2" wood that would have an inner dimension of 17" x 11", that would hold the LCD. I used this online tool to figure out measuring my frame cuts to fit my LCD panel.
#Mos project halloween code
The code I am presenting is mostly from their example but I made several modifications to it to suit my needs.Īfter disassembling the LCD monitor and removing the LCD panel and electronics I measure the exact size of the display 17 X 11, in portrait orientation.
#Mos project halloween software
I found an old article By Arc Software that demonstrated a similar project. I didn't want to write the PIR code from scratch so I search the web for examples of accessing the PIR with Python.
