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

Playtime on a weekly basis #160

Open
klimacht opened this issue Dec 20, 2021 · 1 comment
Open

Playtime on a weekly basis #160

klimacht opened this issue Dec 20, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@klimacht
Copy link

Hi,

thanks for the project. I would like to grant my kids a certain playtime per week, and they would than use/distribute it on their own.

Im wondering if it would be possible to use the optional Time but on a weekly basis? As far as i can tell from the code the dailystatistic handles this right now but each day has his own statistic.

Where would i start when i would like to implement something like an accounting for personal playtime? In my mind they would have a daily amount like it is at the moment and additionally an weekly/monthly amount that they can spend.

Cheers
Thomas

@marcus67 marcus67 added the enhancement New feature or request label Dec 20, 2021
@marcus67
Copy link
Owner

marcus67 commented Dec 20, 2021

Hi Thomas,

having weekly (or monthly) time budgets is probably an interesting add-on to LittleBrother. However, the current time-extension is not well suited to cover this requirement, for two reasons: a) The time spent on time-extension is not extra time but only time extending the current session deactivating all other restriction such as time of day. b) If the normal time is spent it is difficult to login even if time extension is still available.

What is the best way to start? Without really having thought about it sufficiently, I would assume that it would be necessary to add a second aggregation method which aggregates over all days of the week (analog to class DayStatistics in process_statistics.py). The configuration of the user would contain an extra field for the maximum time budget per week. If this value is empty the logic would fall back to the status quo. If it is filled the extra weekly aggregation would be called and used as a limit.

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

No branches or pull requests

2 participants