Daily Usage Stats via Email

Suggest improvements and new features for Gargoyle.

Moderator: Moderators

BugShooter
Posts: 13
Joined: Tue Aug 21, 2018 1:45 pm
Location: United Arab Emirates

Daily Usage Stats via Email

Postby BugShooter » Tue Aug 21, 2018 2:29 pm

Gargoyle Version:1.10.0
Model:TP-Link TL-WR841N/ND v9

Hi all,
I'd like to get daily usage stats of my configured quotas and visited sites by email.any idea to get this feature by plugin.i couldnt find the email tab under system in my current version.Any help will be appreciated.
WDR4300 v1 on 1.10.x
WR841ND v7 on 1.10.x

Lantis
Moderator
Posts: 5194
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Daily Usage Stats via Email

Postby Lantis » Tue Aug 21, 2018 4:59 pm

I don’t believe your device is big enough to install plugins, so you will not be able to activate the email plugin.
You can go to the plugins tab to check
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases

BugShooter
Posts: 13
Joined: Tue Aug 21, 2018 1:45 pm
Location: United Arab Emirates

Re: Daily Usage Stats via Email

Postby BugShooter » Tue Aug 21, 2018 7:49 pm

Okey.
Ill switch to another router.
Which model should i prefer ,with "more ram" or "more flash storage"
WDR4300 v1 on 1.10.x
WR841ND v7 on 1.10.x

Lantis
Moderator
Posts: 5194
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Daily Usage Stats via Email

Postby Lantis » Tue Aug 21, 2018 7:54 pm

Both would be best.
For extended life, I would look at
8MB flash
32MB RAM
As a minimum these days.

16/64 or greater would give you a great starting point.
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases

BugShooter
Posts: 13
Joined: Tue Aug 21, 2018 1:45 pm
Location: United Arab Emirates

Re: Daily Usage Stats via Email

Postby BugShooter » Fri Aug 31, 2018 6:31 pm

Just switched to TL-WDR4300 V1 and installed email plugin with ssl support but i would like to get the usage stats of hosts seperately. I mean bandwidth quota usage instead of bandwidth usage.
Any hope ?
WDR4300 v1 on 1.10.x
WR841ND v7 on 1.10.x

Lantis
Moderator
Posts: 5194
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Daily Usage Stats via Email

Postby Lantis » Fri Aug 31, 2018 7:17 pm

Are you familiar with bash at all? The whole thing is controlled from /usr/lib/gargoyle/email.sh

In theory you can make it send whatever you want by modifying that file.
To get the quotas, the simplest method is to parse the output of “print_quotas”. Try running print_quotas on the command line. If that is what you want then sending it by email should be easy.
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases

BugShooter
Posts: 13
Joined: Tue Aug 21, 2018 1:45 pm
Location: United Arab Emirates

Re: Daily Usage Stats via Email

Postby BugShooter » Sat Sep 01, 2018 10:20 am

Thanks a lot,this is exactly what I'm looking for.
Unfortunately I'm not at all familiar with bash.
Tried running the command on my android phone using juiceSSH.
Can you guide me to implement the same using a windows pc.
WDR4300 v1 on 1.10.x
WR841ND v7 on 1.10.x

BugShooter
Posts: 13
Joined: Tue Aug 21, 2018 1:45 pm
Location: United Arab Emirates

Re: Daily Usage Stats via Email

Postby BugShooter » Sat Sep 01, 2018 3:48 pm

Tried SFTP and SCP protocols using andFTP android application.
Now i can browse to the directory /usr/lib/gargoyle/ but email.sh seems to be an empty folder instead of a file and its showing "cannot change directory"
WDR4300 v1 on 1.10.x
WR841ND v7 on 1.10.x

Rog66
Posts: 206
Joined: Fri Jan 04, 2013 4:53 pm

Re: Daily Usage Stats via Email

Postby Rog66 » Sat Sep 01, 2018 4:02 pm

I just installed the email plugin and email.sh is full of stuff.
Not sure what software youre using but I find winscp the easiest for editing stuff on the router. Set up an SCP connection and you can use it just like windows file mangage to move around and edit stuff.

Lantis
Moderator
Posts: 5194
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Daily Usage Stats via Email

Postby Lantis » Sat Sep 01, 2018 6:52 pm

Here’s the guide for using PuTTY and WinSCP on Windows
viewtopic.php?f=8&t=8505

Without any bash know how you might struggle a bit but see how you go.
There’s already 4-5 examples in the file so just copy one and see where you get to. If you get stuck we’ll figure it out
Routers: Various ar71xx/mvebu/x86-64
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases


Return to “Feature Requests”

Who is online

Users browsing this forum: No registered users and 1 guest