Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 610 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 610 Bytes

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