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

Post by BugShooter »

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: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Daily Usage Stats via Email

Post by Lantis »

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
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

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

Re: Daily Usage Stats via Email

Post by BugShooter »

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: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Daily Usage Stats via Email

Post by Lantis »

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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

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

Re: Daily Usage Stats via Email

Post by BugShooter »

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: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Daily Usage Stats via Email

Post by Lantis »

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.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

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

Re: Daily Usage Stats via Email

Post by BugShooter »

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

Post by BugShooter »

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

Post by Rog66 »

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: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Daily Usage Stats via Email

Post by Lantis »

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
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply