MikroTik default hotspot profiles (1 profile for all rates)
User profile menu is used for common HotSpot client settings. Profiles are like User groups with the same set of settings, rate-limit, filter chain name, etc.
for more details visit wiki.mikrotik
common user profiles
1 hour
2 hours
3 hours
5 hours
1 day and so on...
but for these sample video one default user profiles covered all rates or user profiles
sample implementation of hotspot using default user profile but attached with on-login script. and using Mikhmon as our Voucher Code Generator https://laksa19.github.io/ you may use other voucher code generator . What important on the voucher code generator are QUANTITY and TIME LIMIT
{
:local hsname $user;
:local mac $"mac-address";
:local hsadd $"address";
:local timer "$[/ip hotspot user get [find name=$hsname] limit-uptime ]"
:if ([/system schedule find name=$hsname]="") do={
/ip hotspot user set mac-address=$mac [find where name=$hsname]
/ip hotspot user set address=$hsadd [find where name=$hsname]
/system schedule add interval=$timer name=$hsname on-event="/ip hotspot active remove [find user=$hsname]
/ip hotspot user remove [find name=$hsname]
/system schedule remove [find name=$hsname]" start-date=$date start-time=$time
}
}
script get the hotspot username, ip address and mac address to imprint on the logged in user. then add to a scheduler for removal of the user on hotspot active and scheduler once it reached the subscribed packages or plan.
script is also compatible or applicable with piso wifi or wifi vendo script (import script method)