How to Use wifi-linux to detect AP signal strength
As a Python geek, I like to explore new Python tools for Linux users on github. Today I found a tool written in Python for detecting AP signal strength: wifi-linux.
I have been experimenting on wifi-linux for about two hours and it works well, but I hope to see some unit tests from the author in the near future, because the command plot cannot work on my computer, it may cause some problems.
What is wifi-linux?
According to the official readme. md file of the author's account on github, wifi-linux is a python script that collects the received signal strength (BPS) of the AP around you. It also draws an activity image of the received signal strength (BPS.
The author says that you can use the plot command in this program to draw the active image of the image. However, unfortunately, this is not feasible for me. Wifi-linux also supports other commands, such as bp to add a breakpoint, print will print some statistics and start switch.
The wifi-linux program has the following dependencies:
- Objective-python
- Gnuplot-py
First, we need to install all the package dependencies so that they can run on our linux machine.
Install the package required by wifi-linux
I tried to use python package management tool pip to install python-plugin but failed, because pip will find setup. py, but it does not exist in python-plugin. Therefore, the following command does not work.
pip install dbus-python
You can try the following errors on the terminal.
IOError:[Errno2]No such file or directory:'/tmp/pip_build_oltjano/dbus-python/setup.py'
How can I solve this problem? The following command is used to install Python packages.
sudo apt-get install python-dbus
The preceding command can only be used on machines with apt-get Package Manager, such as Debian and Ubuntu.
The second dependency we want to install is gnuplot-py. Download and decompress the package with tar, and then run setup. py to install the package.
The first step is to download gnuplot-py.
wget http://prdownloads.sourceforge.net/gnuplot-py/gnuplot-py-1.8.tar.gz
Decompress the package using the tar tool.
tar xvf gnuplot-py-1.8.tar.gz
Then run the cd command to change the directory.
cd gnuplot-py-1.8
Run the following command to install gnuplot-py in your system.
sudo setup.py install
After the installation is complete, you can run wifi-linux in your system. Download and run the script with the following command.
Run the following command to download wifi-linux to your machine.
wget https://github.com/dixel/wifi-linux/archive/master.zip
Decompress master.zip and run the list_rsssi.py script using the following command.
python list_rssi.py
The following describes how wifi-linux is working.
Command bp is used to add a breakpoint as below.
The command print can be used to display the status of your machine on the terminal. The following is an example.
This article permanently updates the link address: