Digital Picture Frame

Website showing random photo from NAS

Problem

My family has a ton of photos stored on a NAS, but they just sit there like forgotten books on a dusty library shelf.

Solution

To solve this I wanted to build a digital picture frame that could pull photos from the NAS and display them on any screen through a website.

The first version was a Node.JS webserver sending base64 encoded images with websockets. This was run out of a docker container started, stopped, and updated using a series of bash scripts executed at specific times using cron.

Before this project I had never used Node.js, or Docker, but I thought it would be interesting to learn.

But after some difficultly ignoring images that were corrupted, and one other bug that caused images to not load that I could never solve with Node.js, I rewrote it in python using flask.

An image served up by the website