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.