Remotely turn on/off a connected TV

Hi, I’m just getting back on this - I’m still new to Docker, please could you show me how to how to use Celery in setting up the task of turning on and off the TVs.

This is my current setup:

#Install cec-client

$ apt-get install libcec3 cec-utils

#Install cron

$sudo apt-get update

$sudo apt-get install cron

Cron Script

#Turn off at 5:55pm

55 1 * * * echo ‘standby 0’ | cec-client -s -d 1 >/dev/null 2>&1

#Off during weekdays

55 0 * * 1-5 echo ‘standby 0’ | cec-client -s -d 1 >/dev/null 2>&1

#on during weekdays

55 13 * * 1-5 echo ‘on 0’ | cec-client -s -d 1 >/dev/null 2>&1

Also, how would one go about adding the feature to the UI to set when the screens are trigger on and Off.

Thanks!