adafruit / Adafruit_Learning_System_Guides

Programs and scripts to display "inline" in Adafruit Learning System guides

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't run EInk Weather Bonnet example as cron/systemd (fix proposed herein)

AKAMEDIASYSTEM opened this issue · comments

commented

Hi! I had to make a small change to this script to be able to set it up to run continuously through cron or systemd.

I think that the permissions on the folder/file here for the meteocons.ttf icon set currently prevent cron use:

icon_font = ImageFont.truetype("./meteocons.ttf", 48)

I got things working again by making a directory in /usr/share/fonts/truetype called meteocons and then copying the meteocons.ttf file there (and updating the url in the script).

I hope this helps, and thank you for making excellent example code!

AKA

Thanks, I updated the guide to include this information.