Page 1 of 2

Time Quota

Posted: Sun Apr 17, 2022 1:38 am
by ispyisail
Hi all

My son is requesting a time quota.

At the moment I restrict my kids internet time based on time of the day restriction rules.

He wants a time/day quota rather than data quota?

I suspect most plans these days are unlimited so data plans are not so important?

Re: Time Quota

Posted: Sun Apr 17, 2022 7:09 pm
by Lantis
I think this one is really hard to do. Particularly difficult to measure accurately.

Re: Time Quota

Posted: Sun Apr 17, 2022 7:20 pm
by ispyisail
Now that you point it out......how would you know the start and stop time.

Thanks

Re: Time Quota

Posted: Mon Apr 18, 2022 3:08 am
by heilbronn
I had sort of a similar requirement with my kids:
I started a timer (plus the guest Wifi network) from my home automation. The kids could be given a button to be pressed (In my case I used a certain 5-digit number to be called on the internal phone). Upon timer expiration the network was turned off again. This was possible until a daily maximum was reached.

PS: A really ugly shell script to support some remote management on Gluon nodes (OpenWrt, too) is on github: … / sheilbronn/Manage-Gluon-MQTT .
I might adapt it for Gargoyle if possible/helpful… ?!
Integration with MQTT is not a must, runs fine with remote login on the OpenWRT node, too.

Re: Time Quota

Posted: Mon Apr 18, 2022 3:49 am
by Lantis
A defined start/stop action is the most accurate. Implementing that is easy. Making it work on all devices is a crapshoot at best. Unless you’re happy for some devices to be managed by another device (e.g. whenever I want to play the PlayStation, I use the PC to start its session)

I think back to when I went to the US and had a prepaid internet card. I had to login on a PC and press a start button. After 15 minutes it would take me back to that page and I could click to extend or it would log off. I could also log off at any time.
How do you make that work on a PlayStation for example? It’s got an inbuilt browser, ok maybe, but your game isn’t going to be happy when it’s net traffic gets suddenly routed to a time check page.
And devices without interfaces (IoT) are even worse.

A few years ago I started writing a copy of the gargoyle bandwidth module to do time monitoring and time quotas. When I sent the idea to Eric, he said “great, but how do you factor in the chatty nature of devices?”. Should I subtract a minute from the quota every time your device phones google or apple or Microsoft to check it is alive or look for updates? Every time it checks an NTP server for the time? Every time it does a DNS query?

I’m convinced there’s no good way of determining time without asking the user. If someone comes up with something clever, let me know. I think it would be a great feature.

Re: Time Quota

Posted: Mon Apr 18, 2022 4:38 am
by ispyisail
You wait Lantis, your time will come when your kids don't have internet and they think the world has come to an end :)

The world has gone crazy :)

Re: Time Quota

Posted: Mon Apr 18, 2022 4:52 am
by Lantis
I think I’ve got at least 3 years reprieve from that one :)

Re: Time Quota

Posted: Mon Apr 18, 2022 5:30 am
by ispyisail
Lantis wrote:
Mon Apr 18, 2022 4:52 am
I think I’ve got at least 3 years reprieve from that one :)
Its comes quicker than you think.

Re: Time Quota

Posted: Mon Apr 18, 2022 5:33 am
by heilbronn
When they get older, you'll like the information that the "party has started" = number of clients increased by three within less than 15 minutes ;)

Re: Time Quota

Posted: Sun Apr 24, 2022 2:24 am
by ispyisail
Possible solution, Captive portal?

Eric was about to impermeant a Captive portal about 10 years ago but he got busy :)