grover66 / kidtimer

Script to manage computer usage by time and schedule.
18 stars 23 forks source link

add a weekly limit #22

Open nicopiot opened 7 years ago

nicopiot commented 7 years ago

Hello, I found your program and installed it for my 7 years old child. thanks for this great work that I couldn't find on the web. My initial purpose was to limit the weekly usage, because 1h a day makes already 7h a week, but 1h is not enough to watch a 1,5h movie for example. So it would be great to limit also the weekly max usage. I don't know if you still maintain this, or if you are interested to do so; I could give it a go but I am not a programmer so it will probably take me 2-3 months to get it to work, while you knowing it well already can maybe do it quite simply.

The way I was thinking to do it is: in the schedule, last line is weekdays, weekends, and add to that weekly_total. in the time folder, have the user-daily.ttl and create a user-weekly.ttl

in the kidtimer program, add a test for the weekly limit, and reset it on sunday at midnight.

Please let me know if you could do it, otherwise, I will give it a go and send you my update when it's done if I manage to get it to work.

Thanks

Nicolas PIOT