My son is staying up very late at night to watch appleTV. I once thought it was disabled after 12pm because I shutdown the internet via our router. Turns out this doesn't prevent viewing of local content. Is there way of preventing local traffic to the appleTV via home sharing?
In previous os's I wrote a python script that was run as a daemon, it ran the command "killall TV" @ 12pm to be sure home sharing was shutdown. In Big Sur it seems home sharing doesn't rely on the TV app running so killing the TV app doesn't stop home sharing. I have found that I can kill "mediasharingd" but in order to start it back up again I have to log out of home sharing and back in which is a pain to do.
Can anyone think of an automated way to disable all content on appleTV after hours via scripting or otherwise?
Thanks!
In previous os's I wrote a python script that was run as a daemon, it ran the command "killall TV" @ 12pm to be sure home sharing was shutdown. In Big Sur it seems home sharing doesn't rely on the TV app running so killing the TV app doesn't stop home sharing. I have found that I can kill "mediasharingd" but in order to start it back up again I have to log out of home sharing and back in which is a pain to do.
Can anyone think of an automated way to disable all content on appleTV after hours via scripting or otherwise?
Thanks!