Community discussions

MikroTik App
 
akmjahangir
newbie
Topic Author
Posts: 48
Joined: Sun Aug 10, 2008 8:27 pm
Location: Dhaka, Bangladesh
Contact:

now hotspot user can see balance data from status page

Sat Apr 13, 2013 10:23 am

now hotspot user can see balance data from status page.
Contact: AKM Jahangir +8801819231755, jahan@bijoy.net, skype: jahan_bijoy
You do not have the required permissions to view the files attached to this post.
 
User avatar
bax
Member Candidate
Member Candidate
Posts: 268
Joined: Mon Dec 20, 2004 8:45 pm
Location: Croatia

Re: now hotspot user can see balance data from status page

Sun Apr 14, 2013 11:54 am

Nice !
Which version of ROS is you using ?
Can you share with us code for status page ?
 
akmjahangir
newbie
Topic Author
Posts: 48
Joined: Sun Aug 10, 2008 8:27 pm
Location: Dhaka, Bangladesh
Contact:

Re: now hotspot user can see balance data from status page

Mon Apr 22, 2013 12:43 pm

for all version
mail me: jahan@bijoy.net for the solution
or add me with your skype: jahan_bijoy
 
User avatar
samir494
Member Candidate
Member Candidate
Posts: 236
Joined: Thu Aug 06, 2009 11:27 am
Location: India

Re: now hotspot user can see balance data from status page

Tue Aug 06, 2013 12:17 pm

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
 
User avatar
asaleh75
Trainer
Trainer
Posts: 193
Joined: Thu Nov 17, 2011 2:51 pm
Location: Dhaka, Bangladesh
Contact:

Re: now hotspot user can see balance data from status page

Mon Sep 16, 2013 1:39 am

Mistry Samir,
Thank you for your script.
 
akhibing
just joined
Posts: 1
Joined: Sun Apr 24, 2016 4:48 pm

Re: now hotspot user can see balance data from status page

Sun Apr 24, 2016 4:59 pm

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?
 
Miracle
Member Candidate
Member Candidate
Posts: 106
Joined: Fri Sep 11, 2015 9:04 am

Re: now hotspot user can see balance data from status page

Mon Apr 25, 2016 4:04 am

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
 
chshahzadnasir
newbie
Posts: 27
Joined: Sat Nov 05, 2016 8:26 pm
Location: Pakistan
Contact:

Re: now hotspot user can see balance data from status page

Fri Dec 09, 2016 1:29 pm

hotspot user can see balance reming data from status page
You do not have the required permissions to view the files attached to this post.
 
akmjahangir
newbie
Topic Author
Posts: 48
Joined: Sun Aug 10, 2008 8:27 pm
Location: Dhaka, Bangladesh
Contact:

Real IP redundancy is possible with any other ISP without BGP !!!

Thu Dec 15, 2016 9:38 am

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
 
akmjahangir
newbie
Topic Author
Posts: 48
Joined: Sun Aug 10, 2008 8:27 pm
Location: Dhaka, Bangladesh
Contact:

HTTPS web log possible without web-proxy !!!

Thu Dec 15, 2016 9:41 am

HTTPS web log possible without web-proxy !!!
can received from remote PC with any syslog like kiwi syslog
 
akmjahangir
newbie
Topic Author
Posts: 48
Joined: Sun Aug 10, 2008 8:27 pm
Location: Dhaka, Bangladesh
Contact:

Mikrotik Training at Dhaka

Thu Dec 15, 2016 9:51 am

Basic and Advance Mikrotik Training new batch From 1st week of January2017
bijoy.net/jahan/
 
akmjahangir
newbie
Topic Author
Posts: 48
Joined: Sun Aug 10, 2008 8:27 pm
Location: Dhaka, Bangladesh
Contact:

Mikrotik Tutorial

Thu Dec 15, 2016 9:56 am

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

Who is online

Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Neon278, zendra and 80 guests