ntfy support
Added ntfy support
This commit is contained in:
parent
1417d71d7c
commit
d39f56dafc
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Requires vnstat to be running on target system
|
# Requires vnstat to be running on target system
|
||||||
|
|
||||||
# initial values
|
# initial values
|
||||||
|
@ -7,7 +6,7 @@ mtotal=1000 # monthly total in GB for high end cut off
|
||||||
dmax=40 # daily max usage value
|
dmax=40 # daily max usage value
|
||||||
md=`date +%d` # day of the month numerically
|
md=`date +%d` # day of the month numerically
|
||||||
cmd=$(($dmax * $md)) # computed max daily
|
cmd=$(($dmax * $md)) # computed max daily
|
||||||
wif="eth1.2"
|
wif="wan"
|
||||||
|
|
||||||
# now vnstat stuff, some of this is specific to openwrt
|
# now vnstat stuff, some of this is specific to openwrt
|
||||||
|
|
||||||
|
@ -16,3 +15,4 @@ vnmonthly=`vnstat -i $wif -d -s --oneline | awk -F\; '{print $11}'` # daily tota
|
||||||
|
|
||||||
|
|
||||||
logger "dom $md cm $cmd vnhourly $vnhourly vnmonthly $vnmonthly";
|
logger "dom $md cm $cmd vnhourly $vnhourly vnmonthly $vnmonthly";
|
||||||
|
curl -d "dom $md cm $cmd vnhourly $vnhourly vnmonthly $vnmonthly" 192.168.1.168:83/bandmon
|
Loading…
Add table
Add a link
Reference in a new issue