I have a problem with mikrotik hotspot that I still can't solve (I google a lot, there are many people who have the same problem as me and they don't have a solution yet)
I am using mikrotik hotspot to limit user data quota (for example user1 has a total upload and download of 5GB per month). There are 2 authentication methods:
1. Use hotspot-user and set the value for "Limit Bytes Total"; use a script to reset the counter every first day of the month. Users can see the total remaining bytes through the variable $(remain-bytes-total-nice) on the status page.
The problem with this method is: there is no feature to set interim-update for hotspot, so hotspot does not record the number of bytes used by users periodically, it only records when they log out. This causes errors when users do not log out when it comes to the counters reset cycle, or use another wifi, or are out of wifi coverage...
Is there any way to set interim-update for hotspot users?
2. Using user-manager: Create limitations and set value for "Transfer Limit" along with reset counter interval. then create profile limitations, profile, user profile... to apply transfer-limit for users. (interim-update can be set in radius menu)
The problem with this solution is: users, and managers do not know how much remaining capacity of users to have appropriate internet usage plan. There is no variable in status page that can display it. (maybe because of the way radius works, radius server does not pass this parameter to radius clients); when I use user-manager web (http://mikrotik_ip/um), there is also no information about remaining total bytes. I tried reading information in database (sqlite file) but failed.
Is there any way for users, and managers to know this parameter?