Ahh, that would be my manager script that contains functions for displaying images on the dashboard, clearing it, and setting up a Cron job to repeatedly update the display. See below:
Code:
from crontab import CronTabimport syssys.path.append("../")from waveshare_epd import epd7in5_V2def set_tempus_job(timer=10):command = "cd ~/tempus-db/ && python main.py"cron = CronTab(user=True)tempus_jobs = cron.remove_all(command=command)job = cron.new(command=command, comment="tempus")job.minute.every(timer)cron.write()return len(cron) > 0def clear_jobs():cron = CronTab(user=True)cron.remove_all()cron.write()return len(cron) == 0def clear_tempus_jobs():cron = CronTab(user=True)tempus_jobs = cron.find_comment('tempus')for job in tempus_jobs:cron.remove(job)cron.write()tempus_jobs = cron.find_comment('tempus')jobcount = sum(1 for _ in tempus_jobs)return jobcount == 0def disable_tempus_jobs():cron = CronTab(user=True)for job in cron:if job.comment == "tempus":job.enable(False)return "disabled"def enable_tempus_jobs():cron = CronTab(user=True)for job in cron:if job.comment == "tempus":job.enable()return "enabled"def clear_display():# initialize epd = epd7in5_V2.EPD()epd.init()# clear and sleepepd.Clear()epd.sleep()return TrueStatistics: Posted by cealpha — Mon Sep 01, 2025 3:10 am