[Python] Display Recipe with MMM-EasyPix and CUPs
Do you want to send images to your Magic Mirror and display them for guests or maybe you want to see that famous chocolate chip cookie recipe displayed in glorious 8000K resolution? Well now you can with my super hacky method of combining MMM-EasyPix and CUPs (Virtual Printer).
Originally this idea was to try and display recipes on screen. However, there didn’t seem to be an easy way to find a recipe and send it to the MagicMirror (or maybe there is and I can’t find it). My loss is your gain! Now you can easily send not one, not two, but 3 pages to display on your magic mirror at the same.
This involves the following:
- Access to contab
- Setting up CUPS and CUPs-PDF
- Some slight coding
*Python 3 (sorry not 2.7)
- Recipe Filter by Seansoft (chrome extension)
General how to:
Print Recipe (or Image) to Raspberry PI via virtual printer. This saves it as PDF.
Python Script picks up PDF and converts it into an image.
MMM-EasyPix picks up image from folder and displays it on screen.
To get rid of the image you print a done.pdf to the PI and it will remove the images from the screen.
I don’t have any formal guide put together but if there is enough interest, then I can go ahead and create one.