Page 1 of 1

[App] Parent control timer B series

Posted: Sat Nov 29, 2014 10:10 am
by juusso
I made this script for my personal use, but maybe someone will find it useful. Based on sectroyer`s getsetcurrenttimefromtv patch. Read here: https://forum.samygo.tv/viewtopic.php?f=12&t=7415

Requirements:
  • script and patch for exeDSP
  • All required files for B series - are inside attached archive. Other series have to use series-related getsetcurrenttimefromtv versions.
How it works
If TV is powered on during given time interval, it will suddenly power off in ~5 sec.
Log file: /mtd_down/SHUTDOWN.log

How to set up
Edit script (use notepad++, but do not use notepad, winword, wordpad...) and change FROM_TIME, TO_TIME values in CHANGE ME section.
In example TV will shutdown from 00:05 to 06:59. This prevent`s my kids from watching TV at the night... :)

Code: Select all

#### CHANGE ME START! Set time interval here! ###

FROM_TIME="00:05"
TO_TIME="06:59" 

#### CHANGE ME END! ###
Issue-free time interval is from 00:00 to same day any hour. Day-overlaping is not implemented (e.g. you can`t set time from 22:00 to 07:00, it won`t work).

EMERGENCY STOP
place to root of USB file, named STOP and script will be skipped. Be careful: do not start this script to early (do not change number of script name).
If USB is not yet mounted, STOP will not work and you get bootloop!

Have fun! :)
p.s. script can be used with other series as well, not checked yet. Time set could be achieved by ntpclient, but getsetcurrenttimefromtv patch looks for me more robust way...

Re: [App] Parent control timer B series

Posted: Sat Nov 29, 2014 10:51 am
by sectroyer
juuso wrote: p.s. script can be used with other series as well, not checked yet. Time set could be achieved by ntpclient, but getsetcurrenttimefromtv patch looks for me more robust way...
I explained it hundred times - changing system time is a bad idea!!!!! it's much better to use getsetcurrenttimefromtv inside the script to just get the time and compare. Changing system time WILL break a lot of stuff which may includ: other apps, samygo scripts, pvr, etc.

Re: [App] Parent control timer B series

Posted: Tue Apr 21, 2015 8:12 pm
by juusso
Updated, more robust version of parent control: libLockTV B/D/E/F/H - Parental Lock.

Topic locked, this version will be not updated/supported anymore.