Skip to content

asuswrt done through ssh/telnet

License

Notifications You must be signed in to change notification settings

upsuper-forks/aioasuswrt

 
 

Repository files navigation

AioAsusWRT

Moving

I have come to the decision that I do not want to use github for my projects going forward, there is just to much corporate (closed source) AI going on. I will prepare a move and as soon as I am done I will update with links and more information.

Python package Upload Python Package

Small wrapper for asuswrt.

Setup

pipenv install --dev
pre-commit install

Run lint/tests

pre-commit run --all-files
pytest .

Credits:

@mvn23 @halkeye @maweki @quarcko @wdullaer

Info

There are many different versions of asuswrt and sometimes they just dont work in current implementation. If you have a problem with your specific router open an issue, but please add as much info as you can and atleast:

  • Version of router
  • Version of Asuswrt

Known issues

Bugs

You can always create an issue in this tracker. To test and give us the information needed you should run:

#!/usr/bin/env python
import asyncio
import logging

import sys

from aioasuswrt.asuswrt import AsusWrt

component = AsusWrt('192.168.1.1', 22, username='****', password='****')
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)
logger = logging.getLogger(__name__)


async def print_data():
    dev = {}
    await component.async_get_wl(dev)
    await component.async_get_arp(dev)
    dev.update(await component.async_get_neigh(dev))
    dev.update(await component.async_get_leases(dev))
    dev.update(await component.async_filter_dev_list(dev))
    await component.async_get_connected_devices(dev)
    __import__("pprint").pprint(dev)

    i = 0
    while True:
        print(await component.async_current_transfer_human_readable())
        await asyncio.sleep(10)
        i += 1
        if i > 6:
            break



loop = asyncio.get_event_loop()

loop.run_until_complete(print_data())
loop.close()

About

asuswrt done through ssh/telnet

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 100.0%