/pyo2box

Derive information from an O2 router

Primary LanguagePythonMIT LicenseMIT

pyo2box

Provides an API to derive information from a O2 Box 1421. Tested with Python 3.

get_wireless_devices
Returns a list of namedtuples with the currently connected devices. The entries contain the link_rate, mac ip, signal and when available, the hostname.

try_login
Returns true when login was successful, otherwise false.

Dependencies

requests

o2box = O2Box('192.168.1.1', 'yourpassword')

for dev in o2box.get_wireless_devices():
    print(dev)

Supported routers