Skip to main content

PyAirview is a very simple Python library for the Ubiquiti Airview2 2.4GHz spectrum analyzer, which has an undocumented device API.

Project description

License Supported Python versions Development Status https://travis-ci.org/infincia/pyairview.svg?branch=master

PyAirview is a very simple Python library for the Ubiquiti Airview2 2.4GHz spectrum analyzer, which has an undocumented device API.

PyAirview allows the Airview device to be used by 3rd party applications.

The library works pretty well for the intended purpose :)

Once I have the basics written and documented I may port it to C for use in other languages and so that there is a common low level library available, but it’s simple enough that even a high level port to Ruby or C# would probably take no more than a day.

Usage

from __future__ import print_function

import libairview

# open the proper serial port
libairview.connect(port="/dev/ttyACM0")

# initialize the device
libairview.initialize()

# retrieve device-specific information like RF frequency range and channel size
device_info = libairview.get_device_info()

"""
    start RSSI scanning in a background thread. callback should take a parameter
    named 'rssi_list', which will be a list of rssi values. Use information
    obtained in device_info to interpret the RSSI values and pair them with
    exact frequencies.

"""
def scan_callback(rssi_list=None):
    print('RSSI levels received: %s', rssi_list)

libairview.start_background_scan(callback=scan_callback)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyairview, version 0.1a0
Filename, size File type Python version Upload date Hashes
Filename, size pyairview-0.1a0-py2-none-any.whl (9.5 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size pyairview-0.1a0.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page