mendhak / waveshare-epaper-display

At-a-glance dashboard for Raspberry Pi with a Waveshare ePaper 7.5 Inch HAT. Date/Time, Weather, Alerts, Google/Outlook Calendar
https://code.mendhak.com/raspberrypi-epaper-dashboard/
438 stars 65 forks source link

Added Privacy Mode #66

Closed RutschC closed 7 months ago

RutschC commented 10 months ago

A calendar is nice to have, but sometimes visits happen. You may don't want to display your proctologist-meeting to your friends or visitors. Change the PRIVACY-MODE variable to 1 in env.sh to display a xkcd-comic instead.

mendhak commented 10 months ago

Ha I like this idea. I think I'm able to follow it mostly, I'll add some comments to the code. I see some unrelated changes which I'd not like to include as part of this.

mendhak commented 7 months ago

Modified to just use requests to download the image, so wget wasn't needed.

I did some testing without numpy to see if it made a difference and the image seemed to display just fine, so I removed it, because the numpy install was hanging for a very long time.

Added some file staleness checks so that the script doesn't attempt a redownload more than once an hour, and the display doesn't refresh.