[mythtv-users] Parental Controls -- Time of Viewing

Alistair Grant akgrant0710 at gmail.com
Wed Feb 11 21:39:35 UTC 2015


On Wed, Feb 11, 2015 at 10:31 PM, Hika van den Hoven <hikavdh at gmail.com> wrote:
> Hoi Hika,
>
> Wednesday, February 11, 2015, 10:10:28 PM, you wrote:
>
>> Hoi Mark,
>
>> Wednesday, February 11, 2015, 10:02:08 PM, you wrote:
>
>
>
>>>> On 12 Feb 2015, at 2:16 am, "George Galt" <george.galt at gmail.com> wrote:
>>>>
>>>> All:
>>>>
>>>> I've searched the wiki and the archives, but I can't seem to find how to accomplish my goal.  My goal is to prohibit viewing of recorded programs and videos during certain hours.  My problem is my son is waking up early (about 4:00 a.m.) and has discovered he can watch MythTV.
>>>>
>>>> AFAICT, the parental controls available simply limit which recording groups can be watched by kids (or without a pin).  There doesn't seem to be any ability to prohibit viewing during certain hours.  Am I missing something?
>>>>
>>>> If this capability isn't available, I'm assuming it would be reasonably easy to modify playbackbox.cpp so that when launching the player it can check the local time and return if it is within a prohibited period.  Is this the correct file to look in?
>>>>
>>>> I'm on 27.4-2 from RPMFusion.and Fedora 21 x86_64.
>>>>
>>>> Thanks,
>>>>
>>>> George
>>>> _______________________________________________
>
>>> I know I am not answering your question (I don't know the answer) -
>>> but a quick-n-dirty hack might be to run a cron job late at night to
>>> add / change the pins on the kids recording groups and then another
>>> cron job in the morning to remove the pins.
>
>>> I haven't tried it, just a thought. One of the MySQL guru's might
>>> chip in with what the command line would look like?
>>> _______________________________________________
>
>> I was thinking more in the line of stopping and starting the backend
>> service on a cronjob. If there is no backend running he can boot-up
>> any frontend, but he won't get anything!
>
> Or more strait forward, but easier to hack, put a timeclock on the
> powerfeed to the frontend machine.

Or wrap the frontend start-up in a script that won't start within the
banned hours.  If the frontend is normally running, have a cron job
kill it during the banned hours.

Cheers,
Alistair


More information about the mythtv-users mailing list