OPNsense Forum

Archive => 16.7 Legacy Series => Topic started by: wifimasters on September 28, 2016, 04:59:55 pm

Title: Captive Portal Widget in the Dashboard
Post by: wifimasters on September 28, 2016, 04:59:55 pm
Dear Devs,

I am wondering if there's plans to add a widget for captive portal users located in the dashboard?

Cheers!
Title: Re: Captive Portal Widget in the Dashboard
Post by: franco on September 29, 2016, 07:59:21 am
Hi wifimasters,

What kind of widget are we talking about in terms of visible statistics?

Adding a widget is not hard, designing a useful widget is. :)


Cheers,
Franco
Title: Re: Captive Portal Widget in the Dashboard
Post by: wifimasters on September 29, 2016, 03:44:03 pm
Hello franco,

How are you doing? We appreciate your time in the forum.

I am looking at similar to M0w0wall & pfSense where in the Dashboard I can see who are the connected clients, their IPs, duration/time, etc.. Some useful information.

Cheers!
Title: Re: Captive Portal Widget in the Dashboard
Post by: franco on October 01, 2016, 02:08:42 pm
Connected IPs per network can be pretty big and we already have multiple CPs that need to be tied into one widget.

So I could see something like an overview per captive portal zone: name of zone, http/https active, active clients, current bandwidth statistics.

Would that be enough as a first version?


Cheers,
Franco
Title: Re: Captive Portal Widget in the Dashboard
Post by: Napapong on October 03, 2016, 05:11:48 pm
yes, it would be enough.  ;D
Title: Re: Captive Portal Widget in the Dashboard
Post by: wifimasters on December 18, 2016, 06:58:01 am
Dear Admins, do we have update on this? we are planing to run a neighborhood hot spot business and will need such feature.

thank you
Title: Re: Captive Portal Widget in the Dashboard
Post by: gertfriend on April 07, 2017, 03:26:41 pm
That would be a great feature.

Would it be possible also to integrate a statistic for the connected users, for example to see how much clients were connected yesterday at 09.00?
Title: Re: Captive Portal Widget in the Dashboard
Post by: gertfriend on April 18, 2017, 10:59:16 am
That would be a great feature.

Would it be possible also to integrate a statistic for the connected users, for example to see how much clients were connected yesterday at 09.00?

For now i solved it with the following script, witch will write date and time and the number off logged in users in the cplogins.txt and this script is scheduled every 5 minutes:

Code: [Select]
z=$(date +"%d.%m.%Y %H:%M")
l=$(configctl captiveportal list_clients 0 | grep -w "anonymous" | wc -l)
echo $z $l >> /root/cplogins.txt