Skip to content

Short script to get histogram of networks in Wi-Fi channel, written in Python

Notifications You must be signed in to change notification settings

kivanccakmak/channel_graph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

#channel_graph

This repository is created to observe histogram of active networks in Wi-Fi band. Script is written in python.

##Dependencies

sudo apt-get install python-matplotlib

Usage:

python channel_graph.py <frequency>

Examples:

python channel_graph.py 2GHz
python channel_graph.py 5GHz

In order to observe networks in detail, I used iwlist wlan0 scan command with Python's subprocess library. Then, parsed this information via grep command and remained script in channel_graph.py

cmd = 'iwlist wlan0 scan | grep -w "(Channel"'
proc = subprocess.Popen([cmd], stdout=subprocess.PIPE, shell=True)

Consequently, I used pyplot framework to plot histogram, which uses same syntax with MATLAB.

##Screenshot

About

Short script to get histogram of networks in Wi-Fi channel, written in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages