now hotspot user can see balance data from status page

now hotspot user can see balance data from status page.
Contact: AKM Jahangir +8801819231755, jahan@bijoy.net, skype: jahan_bijoy
next login.png
log off.png
status.png

Nice !
Which version of ROS is you using ?
Can you share with us code for status page ?

for all version
mail me: jahan@bijoy.net for the solution
or add me with your skype: jahan_bijoy

time left = $(session-time-left)
Balance Byte = $(remain-bytes-out) / $(remain-bytes-in)

or you can use as below

idle-timeout - idle timeout (“20m” or “” if none)
idle-timeout-secs - idle timeout in seconds (“88” or “0” if there is such timeout)
limit-bytes-in - byte limit for send (“1000000” or “—” if there is no limit)
limit-bytes-out - byte limit for receive (“1000000” or “—” if there is no limit)
refresh-timeout - status page refresh timeout (“1m30s” or “” if none)
refresh-timeout-secs - status page refresh timeout in seconds (“90s” or “0” if none)
session-timeout - session time left for the user (“5h” or “” if none)
session-timeout-secs - session time left for the user, in seconds (“3475” or “0” if there is such timeout)
session-time-left - session time left for the user (“5h” or “” if none)
session-time-left-secs - session time left for the user, in seconds (“3475” or “0” if there is such timeout)
uptime - current session uptime (“10h2m33s”)
uptime-secs - current session uptime in seconds (“125”)

bytes-in - number of bytes received from the user (“15423”)
bytes-in-nice - user-friendly form of number of bytes received from the user (“15423”)
bytes-out - number of bytes sent to the user (“11352”)
bytes-out-nice - user-friendly form of number of bytes sent to the user (“11352”)
packets-in - number of packets received from the user (“251”)
packets-out - number of packets sent to the user (“211”)
remain-bytes-in - remaining bytes until limit-bytes-in will be reached (“337465” or “—” if there is no limit)
remain-bytes-out - remaining bytes until limit-bytes-out will be reached (“124455” or “—” if there is no limit)

session-id - value of ‘session-id’ parameter in the last request
var - value of ‘var’ parameter in the last request
error - error message, if something failed (“invalid username or password”)
error-orig - original error message (without translations retrieved from errors.txt), if something failed (“invalid username or password”)
chap-id - value of chap ID (“\371”)
chap-challenge - value of chap challenge (“\357\015\330\013\021\234\145\245\303\253\142\246\133\175\375\316”)
popup - whether to pop-up checkbox (“true” or “false”)
advert-pending - whether an advertisement is pending to be displayed (“yes” or “no”)
http-status - allows to set http status code and message
http-header - allows to add http header

here is script to popup

some content, which will always be displayed
$(if username == john)
Hey, your username is john
$(elif username == dizzy)
Hello, Dizzy! How are you? Your administrator.
$(elif ip == 10.1.2.3)
You are sitting at that crappy computer, which is damn slow…
$(elif mac == 00:01:02:03:04:05)
This is an ethernet card, which was stolen few months ago…
$(else)
I don’t know who you are, so lets live in peace.
$(endif)
other content, which will always be displayed

Mistry Samir,
Thank you for your script.

hi
my client in network have limit on using internet they should buy some amount of gigabytes each time for using internet. I want they could see how much gigabyte remain for them in their status page?

$(remain-bytes-total) or $(remain-bytes-total-nice)

Tested on 6.30 → 6.35

hotspot user can see balance reming data from status page
y.png

Yes, Now it is possible Real IP will be auto UP via another Back ISP ( without BGP) !!!
Mail me for the solution … jahan@bijoy.net

HTTPS web log possible without web-proxy !!!
can received from remote PC with any syslog like kiwi syslog

Basic and Advance Mikrotik Training new batch From 1st week of January2017
bijoy.net/jahan/

Mikrotik Tutorial Basic and Advance
Mikrotik Online Training
Mikrotik Basic and advance Lab Training and practice.
www.bijoy.net/jahan/