Raspberry Pi Desktop Background Generator
![Raspberry Pi Desktop Background Generator Screenshot](/projects/raspberry-pi-desktop-background-generator/raspberry-pi-desktop-background_hu8dead2482d3fbb3cad2708fb9f373ea7_2138745_610x0_resize_q95_bgffffff_box_3.jpg)
Stack
- Puppeteer
- Express.js
- EJS
- Docker
This Raspberry Pi OS project automatically generates and updates a background image that displays the number of days remaining until a list of events occur. I built this project during the pandemic to track how many days I had left until I received my second vaccination and when I would be considered fully vaccinated. The project enables you to configure your own countdown events.
This project uses Docker Compose to build a Node.js container that runs Puppeteer, Express.js, EJS and Luxon to generate the images. Scheduling for the image generation is done on the host Pi using crontab
. The Node script makes heavy use of async/await with few abstractions to allow the script to be as linear as possible.