Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a weekly limit #22

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open

add a weekly limit #22

wants to merge 20 commits into from

Conversation

nicopiot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants