RouterOS HotSpot Status Page Variables

Hi,

Does anyone know of a way to have a friendly looking byte count of remaining quota, I can get a verbose count using $(remain-bytes-out), but I’m sure the users will go cross-eyed trying to count the decimal places.

Please assist if possible.

Thanks!

There are following variables available,

bytes-in-nice - user-friendly form of number of bytes received from the user ("15423")
bytes-out-nice - user-friendly form of number of bytes sent to the user ("11352")

Hi, thanks for the quick reply,

but is that total bytes sent to the users over all session or particular to individual sessions?

I guess it should be total sessions value.

Ok, don’t suppose there is a “normal” remaining count, i.e. user x has y left of z.

i.e.

Quota : 100M $(limit-bytes-out) is great but is the actual remainder after a session has closed, not the total assigned quota value
Quota Used : 5M $(bytes-out-nice) about as useful as the previous, session specific
Quota Remaining : 95M $(remain-bytes-out) perfect except it’s verbose, would be very nice to have a $(remain-bytes-out-nice) if you get my meaning.

any ideas?

I got it !!!

(in your status page table)

Quota Used:****

notice hows the variable is encapsulated by the java script, now we have “nice” looking values


:smiley: :smiley: :smiley:

also you may want to add $(bytes-out) bytes section for those rare users who do not have JavaScript enabled =)

Hi ,

I got it !!!

(in your status page table)

Quota Used:

notice hows the variable is encapsulated by the java script, now we have “nice” looking values

Thank you for that , but i need remin-bytes-total , i write this script and write the ( Quota Used: ) but noy work show me NaN undefine , please help me if possible ASAP …

Does you have solutin for ROS v 5.xx ?

It work under ROS v 6.9 x86…
but im have some strange errors … It was stop after 18 - 24 hours …
My temp solution is shedule reboot every day …
Does anybody have idea why is this hapening ?
I suspect on my hard disk …

work v5.26 and v6.42
thank you