change speed after certain download

Hello,
I have Mikrotik RouterOS v4.5.

I have hotspot account with users with diffrent speed. How can I change the speed of the user if exceed certain download in a month.

For example if the user’s speed is 512kb/s and he download exceeds 5GB, his or her speed change to 128kbps.

What service does your hotspot authorization? Local users in “/ip hotspot user”? User Manager? FreeRADIUS?

It is HttP chap.

Are you using FreeRADIUS for your user database then?

no

OK, question #3 of the “twenty questions” game…
Are you using User Manager?

To be more specific, show me
/radius print



Flags: X - disabled 
 #   SERVICE          CALLED-ID       DOMAIN       ADDRESS         SECRET

Then you are using the local database on the router. You will probably need to use a script to do what you want. I would try changing the user’s group (profile) and logging them off (or change the dynamic simple queue setting?) when they exceed the maximum totals. When they log in again, they will get the lower bandwidth. Then at a specific time each day, change them back to the original group (profile).

Maybe someone else has a better solution.