Do not allow playtime activities during school times

Asked by Peter

I would like to disallow running playtime activities during online school times. This means that the child should use the computer freely during online schooling so that not time accounting is done in those periods, however playtime activities should not be allowed during those periods. Is this something that can be achieved in the current implementation?

Question information

English Edit question
Timekpr-nExT Edit question
Eduards Bezverhijs Edit question
Last query:
Last reply:
Revision history for this message
Eduards Bezverhijs (mjasnik) said :

It's not possible to limit PlayTime activities at specific times as PT was designed as limit within the limit.

Probably I can implement a checkbox that PlayTime activities are not allowed during so called "freeride" hours when time is not accounted towards users limit, would this address the question?

But I need to think about it, it just gets quite complicated at the end :)

Revision history for this message
Peter (petru-severin) said :

Yes, such a checkbox would work. I am not sure if there is a better approach. Perhaps Playtime it should be possible to manage Playtime limits separately, but this probably requires more thinking.

Revision history for this message
Eduards Bezverhijs (mjasnik) said :

If all options are taken into account, this already is quite complicated not just from programming perspective, but for user too.

I'll think about the most easy to understand approach, when I'll have time.

Revision history for this message
Eduards Bezverhijs (mjasnik) said :

Feature released as beta.

Revision history for this message
Peter (petru-severin) said :

Thanks! I didn't try this feature yet as there is a school vacation. I'll try it some time later and see how it works.

Before this solution was added what I did was to set Platytime limit to 0 and then added some cron tasks that run after the school hours end and set the playtime to the desired value using "--setplaytimeleft" command line option. It works ok although this means that settings related to school times should now be maintained 2 different places.

Can you help with this problem?

Provide an answer of your own, or ask Peter for more information if necessary.

To post a message you must log in.