Page 1 of 1
how to show total time left in hotspot status page
Posted: Thu May 11, 2017 3:15 pm
by khalilA
Hello
I want to show the total time left for my hotspot users in a status page
I tried many things and it not work
anyone know please help
thanks
Re: how to show total time left in hotspot status page
Posted: Fri May 12, 2017 4:59 am
by ahmedalmi
this code for total time left $(session-time-left)
but if you used this code and you have problem , this mean you are using user manager and there a problem
just tell me
Re: how to show total time left in hotspot status page
Posted: Fri May 12, 2017 6:14 am
by khalilA
Thank you sir
yes I use user manager on one board and many hotspot servers on other boards different locations and I want to show the total time left like 15d-5h-10m-2s from user manager
thanks for help
Re: how to show total time left in hotspot status page
Posted: Fri May 12, 2017 10:33 pm
by ahmedalmi
so try this rule in newterminal just paste it.
/tool user-manager router set use-coa=no [find];
Re: how to show total time left in hotspot status page
Posted: Sat May 13, 2017 10:51 am
by khalilA
Thank you sir
I'm tried $(session-time-left) in my page from beginning but no value was shown
and what the command do in your last answer (I checked coa support it disabled)
in addition in winbox ip hotspot active the session time left blank no value for active users
Re: how to show total time left in hotspot status page
Posted: Sat May 13, 2017 11:13 pm
by ahmedalmi
you didn't set uptime limit in user manager profile limitiation.
chack about that.
i'm sure it will shown in your page status hotspot. and active hotspot
Re: how to show total time left in hotspot status page
Posted: Sat May 13, 2017 11:38 pm
by khalilA
Thank you sir
but I use transfer limit in my limitations and I really don't use uptime
please give me example
one of my profiles is 100m for 1w how to use uptime with it
Re: how to show total time left in hotspot status page
Posted: Sun May 14, 2017 12:08 am
by ahmedalmi
ok use uptime also,
in limitation set uptime like 1w or 10h for example
Re: how to show total time left in hotspot status page
Posted: Sun May 14, 2017 12:12 am
by khalilA
Thanks alot I will try it and reply the result to you
Do you have a whatsapp
Re: how to show total time left in hotspot status page
Posted: Sun May 14, 2017 1:04 am
by ahmedalmi
Thanks alot I will try it and reply the result to you
Do you have a whatsapp
you welcome,
+967 735135459
Re: how to show total time left in hotspot status page
Posted: Sun May 14, 2017 12:47 pm
by khalilA
Thank you sir
It's work but in uptime I add duration same as the validty of the profile
Thats okay????? or different value