This repo contains the files used to monitor monthly data usage on a Ubiquiti USG Pro. If you have a crappy ISP, this will allow you to quickly see how close you are to hitting your monthly data cap.
Color of WLED LEDs will change based on how much data has been transferred over WAN port.
Visit https://tynick.com/blog/12-30-2019/internet-data-usage-monitoring-so-you-dont-hit-your-data-cap/ for full instructions on how to get everything setup.
Queries the WAN port to see how much data has been used (RX and TX) since the last time it was reset.
Sends HTTP request to WLED to change colors based on data usage.
Very simple script to reset the counters on the WAN port.
This JSON file will configure cron jobs to run the previous bash scripts at specific intervals.