Page 8 of 11

Re: Email notifications plugin revisited

Posted: Fri Apr 08, 2016 3:34 pm
by dpint
Look at the first post in this thread for instructions.

Re: Email notifications plugin revisited

Posted: Fri Apr 08, 2016 4:39 pm
by ispyisail

Code: Select all

opkg update

Code: Select all

wget -O /tmp/email.ipk http://dpint.si/storage/gargoyle/plugin-gargoyle-email-notifications/plugin-gargoyle-email-notifications_2.0-2_all.ipk

Code: Select all

opkg install /tmp/email.ipk

Code: Select all

rm /tmp/email.ipk
Do you need help with SSH (putty)

Re: Email notifications plugin revisited

Posted: Mon Aug 22, 2016 5:23 pm
by rseiler
Thanks for this.

This is really minor, but let's say you set the report to happen at midnight. When midnight strikes, at that instant the day changes from, say, Aug 22 to Aug 23rd, but the bandwidth report includes bandwidth usage for the 23rd, which of course (since that day hasn't happened yet) is always 0.

How about in this case of midnight decrementing to the "previous" day?

Re: Email notifications plugin revisited

Posted: Tue Aug 23, 2016 11:32 am
by doug_porsche
Dont mean to be captain obvious, but.

What if you run the report the last minuet of the day you want, not the first minuet of the day you dont.

Run the report @ 11:59 PM, not 12:00 AM
rseiler wrote:Thanks for this.

This is really minor, but let's say you set the report to happen at midnight. When midnight strikes, at that instant the day changes from, say, Aug 22 to Aug 23rd, but the bandwidth report includes bandwidth usage for the 23rd, which of course (since that day hasn't happened yet) is always 0.

How about in this case of midnight decrementing to the "previous" day?

Re: Email notifications plugin revisited

Posted: Tue Aug 23, 2016 11:39 am
by rseiler
doug_porsche wrote:Run the report @ 11:59 PM, not 12:00 AM
The best you can do is 11:55, and that's how I have it set.

But I just wanted to point out what happens at midnight and a possible way to improve it. I'm thinking most people (anyone?) aren't going for 11:55.

One other idea: Download usage loses the decimal, which can significant. So, for example, if you actually used 2.9GB, the report will be "2GBytes." Why not just say what it is?

Re: Email notifications plugin revisited

Posted: Fri Aug 26, 2016 7:40 am
by dpint
But I just wanted to point out what happens at midnight and a possible way to improve it. I'm thinking most people (anyone?) aren't going for 11:55.
This is not really a bug. I don't think that report should show data from the previous day if the time is 00:00 as this is already a new day.
One other idea: Download usage loses the decimal, which can significant. So, for example, if you actually used 2.9GB, the report will be "2GBytes." Why not just say what it is?
Bash doesn't support floating-point numbers, but I found out it can be done using awk.

https://paste.fedoraproject.org/414268/14722112/raw/

For bandwidth decimals copy, paste and save above code to /usr/lib/gargoyle/email.sh.

Re: Email notifications plugin revisited

Posted: Sat Aug 27, 2016 11:27 am
by rseiler
Thanks for that script mod. Tested it out last night and it worked perfectly.

On that midnight thing, I didn't mean to suggest that it was a bug, just kind of a loophole in the system in that the category "Bandwidth usage" will always be zero if someone chooses midnight.

Re: Email notifications plugin revisited

Posted: Wed Sep 14, 2016 2:12 am
by rseiler
Hey dpint, a quick question on updating.

If someone has installed via the UI and wants to update, is it OK just to follow your first post but with an "opkg upgrade" instead of the install? Or should it be removed one way or another before upgrading?

Aside from the special update to the .sh file a couple posts up, I had thought that 1.9.1 via the UI would be the latest, but then I noticed that the top post had been edited recently and wasn't out-of-date. I do see at least one difference between the UI and ipk routes: email.js.

Re: Email notifications plugin revisited

Posted: Wed Sep 14, 2016 2:37 am
by Lantis
Remove then reinstall.
Preferably using the GUI for both actions.

gpkg which is a wrapper for opkg calls certain other gargoyle functions when packages are installed or removed.

Re: Email notifications plugin revisited

Posted: Wed Oct 05, 2016 12:22 pm
by dpint
rseiler wrote:Hey dpint, a quick question on updating.

If someone has installed via the UI and wants to update, is it OK just to follow your first post but with an "opkg upgrade" instead of the install? Or should it be removed one way or another before upgrading?

Aside from the special update to the .sh file a couple posts up, I had thought that 1.9.1 via the UI would be the latest, but then I noticed that the top post had been edited recently and wasn't out-of-date. I do see at least one difference between the UI and ipk routes: email.js.
Most of the time installing plugin from GUI will get you an outdated version of it, as it takes some time for packages in repository to get updated. You can always install the newest plugin version using commands on the first page. It is recommended that you remove plugin before reinstalling.