I made a small modification to my script because the renewal hour of the monthly (28 days) quota is uncertain. The last day before renewal I limit the daily quota to a fixed value of QUOTA / RENEWAL DAYS.
Hi,
Do you mind if i contact you on PM Please?
I would surely use a help from you based on what you have posted. I am not an expert in scripting and i am facing some challenges with having the quota work properly. I already posted a new message but still under approval
I faced a similar problem as the OP, but with multiple users:
A fixed quota should be distributed for multiple users over time such that they are not able to use there own quota in the first days and cannot use the whole quota such that the internet is throttled for everyone for the remaining month..
In addition the script is capping the free quota each user can accumulate and redistributes the remaining one, such that power user can use more of the overall data plan
Hi Maxx,
Thanks for the tips. This is ver close to what I need.
Can you help with the command to convert bw_get output to CSV file? What would also be great as well if it can be exactly in the "bandwidth.csv" format with the columns?
Thanks
ABza
I have tried to set the quota on the gargoyle but some how doesn't work.
I wanted to set 50gb day time, from 6:00 to 24:00
and
from 24:00 to 6:00 60gb
the problem is that it doesn't take the 24 hour clock, so I'm not sure how it can be done.
Now on searching have found this, not sure how a script like this is used and how to use it as monthly, because I see the date to be changed, amount of days (problem the months dont have the same quantity of days) and the quota that I believe as been set to 5 times, (total 640 megabytes)
Can some one please make it clear to a newbie
poveiro wrote:I have tried to set the quota on the gargoyle but some how doesn't work.
I wanted to set 50gb day time, from 6:00 to 24:00
and
from 24:00 to 6:00 60gb
the problem is that it doesn't take the 24 hour clock, so I'm not sure how it can be done.
Now on searching have found this, not sure how a script like this is used and how to use it as monthly, because I see the date to be changed, amount of days (problem the months dont have the same quantity of days) and the quota that I believe as been set to 5 times, (total 640 megabytes)
Can some one please make it clear to a newbie
got it working on the gargoyle, it had to be 00:00 instead of 24:00
But would be nice to learn the script.
Hello, nice work!
In my country a recent law has established that telecom companies have to invoice on the same day for each month, instead of every 28 days as in the past. Therefore, each month the renewal duration is different because if I initially pay on the 13th for example I get the renewal every 13th of the month.
Do you have any suggestion in order to set the renewal date as the Nth day of the month?
Thank you
What do you mean? A supported router or a router bought from Gargoyle?
Anyway I solved the problem (and I'm testing it) by creating a cron script that sums the values of bw_get total5-download-day-365 and total5-upload-day-365 and updates firewall.quota_1.combined_limit.
If somebody is interested I can clean the code and post it.
bye
maxx
Good day, I am interested to know how you solved this problem. I run a lodge and would like to have the ability to give each of my guest data quotas and limit bandwidth once quotas have been depleted.