Skip to content

adarshX/Network-DataUsage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

  • 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.

Requirements

  • Python3 is required with matplotlib installed on your device.
  • Download these files data_today.py3 and data_24hrs.py3 and to use below commands.
  • vnstat is required and can be installed from here

How to Use

  • In your terminal use the below commands
    • To get type of interface to monitor data usage

      vnstat
      
    • For obatining hourly usage today with plot

      vnstat -h -i wlo1 > d.txt | python3 data_today.py3 
      
    • For 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"

About

A CLI based application for data usage in ubuntu

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages