How to Use wifi-linux to detect AP signal strength

Source: Internet
Author: User

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.

  1. pip install dbus-python

You can try the following errors on the terminal.

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

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

  1. wget http://prdownloads.sourceforge.net/gnuplot-py/gnuplot-py-1.8.tar.gz

Decompress the package using the tar tool.

  1. tar xvf gnuplot-py-1.8.tar.gz

Then run the cd command to change the directory.

  1. cd gnuplot-py-1.8

Run the following command to install gnuplot-py in your system.

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

  1. wget https://github.com/dixel/wifi-linux/archive/master.zip

Decompress master.zip and run the list_rsssi.py script using the following command.

  1. 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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.