From d39f56dafceb2bf6f2e9570b5043690a67454be4 Mon Sep 17 00:00:00 2001 From: kake26 Date: Sat, 17 Dec 2022 00:13:34 -0600 Subject: [PATCH] ntfy support Added ntfy support --- band.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/band.bash b/band.bash index bde4b48..76c7fa6 100644 --- a/band.bash +++ b/band.bash @@ -1,5 +1,4 @@ #!/bin/bash - # Requires vnstat to be running on target system # initial values @@ -7,7 +6,7 @@ mtotal=1000 # monthly total in GB for high end cut off dmax=40 # daily max usage value md=`date +%d` # day of the month numerically cmd=$(($dmax * $md)) # computed max daily -wif="eth1.2" +wif="wan" # 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"; +curl -d "dom $md cm $cmd vnhourly $vnhourly vnmonthly $vnmonthly" 192.168.1.168:83/bandmon \ No newline at end of file