I had a few features in mind for this photo frame. Primarily I wanted it to display random photos, but I also wanted it to show time and if possible the weather. I also wanted it to be wireless (WiFi) and accessible via Windows and OS X. In addition, I wanted it to switch off at night and back on in the mornings. I was able to achieve all of these. Here's how.
This post is pretty much a follow-on from the DisplayLink monitor post from the link above, so I won't be covering OS installation or configuration on the most part, except the additional packages I've had to install and set up.
Before getting into the details, here's the end result...
Now the very first thing I set up was file sharing. I needed to have both AFP and SMB working, so I installed the following packages: netatalk, samba, samba-common-bin.
AFP configuration was next:
To allow guest users to connect via AFP, some extra config was required. The default parameters were replaced with the below (in the /etc/netatalk/afpd.conf file):
I also created a directory to store my photos as /photos and set up a share like so (guest access allowed):
Now it was a matter of restarting AFP related services and the share was available to my Mac.
Once AFP was set up, setting up Samba was next. This is considerably easier, just add a share and restart.
That's it for the file sharing. Next was a very important feature to set up: disabling screen blanking and power save options. For this a number of files are edited:
and...
While on the power options, I set up the photo frame to turn off at 22:00 every evening and then turn back on at 6:00 every morning. This was done using cron, the jobs were set up as follows:
I measured the power consumption of this setup with the screen both on and off, this turned out to be 8.5 and 4.7 Watts. This is around $20 a year to run for me.
That's it for this part, tune in soon to read more about setting up the scripts that do the work to make the monitor look like an actual photo frame.
Part two is posted now, check it out here: https://www.igorkromin.net/index.php/2015/04/07/raspberrypi-and-a-usb-monitor-combined-to-make-a-photo-frame-part-2/.
-i