de-vnull / vnstat-on-merlin

vnstat-on-merlin
GNU General Public License v3.0
35 stars 3 forks source link

vnstat-on-merlin - Release - R1 and R2

README

See changelog for details

What is this repository for?

Acknowledgements

Notes about data use, units and monitoring

Versions

How do I get set up?

Minimum requirements

Install script - full (UI-enabled) version

UI-full

Menu

Email_html

Email_text

Upgrade from a manual install or alpha or beta 1 - R1 (Legacy) branch only

Miscellaneous notes

Non-UI configuration steps - vnStat command line only

If you're running the div-email.sh script with the non-UI version of vnstat, add this line to the services-start and the service-event scripts in the /jffs/scripts directory:

cru a vnstat_daily "59 23 * * * /opt/bin/vnstat -u && sh /jffs/scripts/vnstat-stats.sh && sh /jffs/scripts/div-email.sh Vnstat-stats /home/root/vnstat.txt"

If you're running the send-vnstat.sh script, add this line to the services-start and the service-event scripts in the /jffs/scripts directory:

cru a vnstat_daily "59 23 * * * /opt/bin/vnstat -u && sh /jffs/scripts/vnstat-stats.sh && sh /jffs/scripts/send-vnstat.sh"

CLI

Returning the default theme and rate columns - R1 only

To restore the default vnstat colors and rate columns, edit vnstat.conf (via the dn-vnstat script), make the following changes.

To restore the colors, make these changes:

# image colors
CBackground     "FFFFFF"
CEdge           "AEAEAE"
CHeader         "606060"
CHeaderTitle    "FFFFFF"
CHeaderDate     "FFFFFF"
CText           "000000"
CLine           "B0B0B0"
CLineL          "-"
CRx             "92CF00"
CTx             "606060"
CRxD            "-"
CTxD            "-"

To add the 'rate' columns back:

# output style
# 0 = minimal & narrow, 1 = bar column visible
# 2 = same as 1 except rate in summary and weekly
# 3 = rate column visible
OutputStyle 1

# show hours with rate (1 = enabled, 0 = disabled)
HourlyRate 1

# show rate in summary (1 = enabled, 0 = disabled)
SummaryRate 1

See here for default view: https://imgur.com/a/ufMQgeA

Legal and licensing

Who do I contact with comments or questions?

#

Donations