Problem with RouterOS is that it does not follow any standard time format. I have made a script that convert date/time to epoc that can be used to calculate time difference. This is some that MT should add as a standard.
Auto delete hotspot users that’s unused (not logged in) for 1 week or 7 days.
The script will only work on unused hotspot users.
The auto delete hotspot user script will stop and proceed to the current script that deletes the hotspot user when the hotspot user maxed out his uptime or auto deletes the hotspot user 2 days from the date and time he logged in regardless of his uptime remaining.
Yes it is possible…for User that will be deleted a certain time used or unused > User Profile > On Login "schedule the user upon First Log-in, to be check at a certain time (7 days) interval, and will remove the user at hotspot user and hotspot active, and last will delete the user schedule.
while for the timed up users create schedule that will check users every X interval if the uptime is equal to limit-uptime, and if true remove user in hotspot user.
I use this method on my Vifi Wifi Vendo routine.
ok nvm, solved my problem. I just made my Arduino not only generate hotspot user but also make a schedule for that hotspot user.
then when logged in, proceed to delete the schedule for the hotspot user that is tied being used and proceed to the standard script I’ve posted.