### Install aiosysbus from GitHub Source: https://github.com/cyr-ius/aiosysbus/blob/master/README.md Manually download and install the latest version of aiosysbus from GitHub. ```bash git clone https://github.com/cyr-ius/aiosysbus.git python setup.py install ``` -------------------------------- ### Install aiosysbus using pip Source: https://github.com/cyr-ius/aiosysbus/blob/master/README.md Install the aiosysbus library using the PIP package manager. ```bash pip install aiosysbus ``` -------------------------------- ### Reboot Livebox (aiosysbus < 1.0.0) Source: https://github.com/cyr-ius/aiosysbus/blob/master/README.md Instantiate and connect to the Livebox to perform actions like rebooting using older versions of the library. ```python # Import the aiosysbus package. from aiosysbus import AIOSysbus async def reboot() # Instantiate the Sysbus class using default options. lvbx = AIOSysbus('192.168.1.1','80','xxxxxx') # Connect to the livebox with default options. lvbx.connect() # Do something useful, rebooting your livebox for example. lvbx.system.reboot() # Properly close the session. lvbx.close() ``` -------------------------------- ### Query Livebox Devices (aiosysbus >= 1.0.0) Source: https://github.com/cyr-ius/aiosysbus/blob/master/README.md Connect to the Livebox and query device information using the asynchronous API introduced in version 1.0.0. ```python import asyncio import logging async def async_main() -> None: # Instantiate the Sysbus class using default options. api = AIOSysbus(username=xxxx, password=xxxx, host=HOST) # Connect to the livebox. await api.async_connect() # Query example parameters = {"parameters": {"expression": {"wifi": "wifi && .Active==False"}}} devices = await api.devices.async_get_devices(parameters) await api.async_close() if __name__ == "__main__": loop = asyncio.get_event_loop() loop.run_until_complete(async_main()) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.