first and foremost i want to write a script which blocks one unique hotspot user. Next step should be, to enable and disable this script per scheduler.
this user should only be active 1 day a week, for example on tuesday from 07:00 till 23:00.
Do you want to disable the user from logging in, or let them log in, but have no internet connection?
If you’re OK with letting them log in, the easiest way is to set up a filter or nat rule. Condition it to match the user’s IP (which should be trivial if you’re specifying IPs explicitly per user), make it reject the connection, and (in Winbox - the Extra tab, Time section) set the time when the disabling has an effect.
If you want to also disable the user from logging in, you’ll have to use “/system scheduler”. With it, you’ll need two scripts per user - one to disable the user, and one to enable it when the disabling period ends. Make the interval be 168 hours (a week), and adjust the start times to match the first disabling and enabling. The scripts themselves are just
/ip hotspot user disable "user1"and
/ip hotspot user enable “user1”