- A CLI(Command line interface) based application for obtaining statistics of data usage in Linux based systems(Ubuntu)
- This repository consits of python source codes required to find houlry data usage and plot it.
Python3is required with matplotlib installed on your device.- Download these files data_today.py3 and data_24hrs.py3 and to use below commands.
vnstatis required and can be installed from here
- In your terminal use the below commands
To get type of interface to monitor data usage
vnstatFor obatining hourly usage today with plot
vnstat -h -i wlo1 > d.txt | python3 data_today.py3For obatining past 24 hours data with plot
vnstat -h -i wlo1 > d.txt | python3 data_24 hrs.py3
Note : Here wlo1 is your system's wireless interface network. You can also use for ethernet by changing interface name. Write your interface name in place of "wlo1"