Page 1 of 2

Daily Usage Stats via Email

Posted: Tue Aug 21, 2018 2:29 pm
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.

Re: Daily Usage Stats via Email

Posted: Tue Aug 21, 2018 4:59 pm
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

Re: Daily Usage Stats via Email

Posted: Tue Aug 21, 2018 7:49 pm
by BugShooter
Okey.
Ill switch to another router.
Which model should i prefer ,with "more ram" or "more flash storage"

Re: Daily Usage Stats via Email

Posted: Tue Aug 21, 2018 7:54 pm
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.

Re: Daily Usage Stats via Email

Posted: Fri Aug 31, 2018 6:31 pm
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 ?

Re: Daily Usage Stats via Email

Posted: Fri Aug 31, 2018 7:17 pm
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.

Re: Daily Usage Stats via Email

Posted: Sat Sep 01, 2018 10:20 am
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.

Re: Daily Usage Stats via Email

Posted: Sat Sep 01, 2018 3:48 pm
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"

Re: Daily Usage Stats via Email

Posted: Sat Sep 01, 2018 4:02 pm
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.

Re: Daily Usage Stats via Email

Posted: Sat Sep 01, 2018 6:52 pm
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