معرفی شرکت ها


aiowebostv-0.3.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Library to control webOS based LG TV devices
ویژگی مقدار
سیستم عامل -
نام فایل aiowebostv-0.3.2
نام aiowebostv
نسخه کتابخانه 0.3.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Home Assistant Team
ایمیل نویسنده hello@home-assistant.io
آدرس صفحه اصلی https://github.com/home-assistant-libs/aiowebostv
آدرس اینترنتی https://pypi.org/project/aiowebostv/
مجوز -
# aiowebostv Python library to control LG webOS based TV devices. Based on: - `aiopylgtv` library at https://github.com/bendavid/aiopylgtv - `bscpylgtv` library at https://github.com/chros73/bscpylgtv ## Requirements - Python >= 3.9 ## Install ```bash pip install aiowebostv ``` ## Install from Source Run the following command inside this folder ```bash pip install --upgrade . ``` ## Examples ### Basic Example: ```python import asyncio from aiowebostv import WebOsClient HOST = "192.168.1.39" # For first time pairing set key to None CLIENT_KEY = "140cce792ae045920e14da4daa414582" async def main(): """Basic webOS client example.""" client = WebOsClient(HOST, CLIENT_KEY) await client.connect() # Store this key for future use print(f"Client key: {client.client_key}") apps = await client.get_apps_all() for app in apps: print(app) await client.disconnect() if __name__ == "__main__": asyncio.run(main()) ``` ### Subscribed State Updates Example: ```python import asyncio from aiowebostv import WebOsClient HOST = "192.168.1.39" # For first time pairing set key to None CLIENT_KEY = "140cce792ae045920e14da4daa414582" async def on_state_change(client): """State changed callback.""" print("State changed:") print(f"System info: {client.system_info}") print(f"Software info: {client.software_info}") print(f"Hello info: {client.hello_info}") print(f"Channel info: {client.channel_info}") print(f"Apps: {client.apps}") print(f"Inputs: {client.inputs}") print(f"Powered on: {client.power_state}") print(f"App Id: {client.current_app_id}") print(f"Channels: {client.channels}") print(f"Current channel: {client.current_channel}") print(f"Muted: {client.muted}") print(f"Volume: {client.volume}") print(f"Sound output: {client.sound_output}") async def main(): """Subscribed State Updates Example.""" client = WebOsClient(HOST, CLIENT_KEY) await client.register_state_update_callback(on_state_change) await client.connect() # Store this key for future use print(f"Client key: {client.client_key}") # Change something using the remote during sleep period to get updates await asyncio.sleep(30) await client.disconnect() if __name__ == "__main__": asyncio.run(main()) ``` Examples can be found in the `examples` folder


نیازمندی

مقدار نام
>=10.3 websockets


زبان مورد نیاز

مقدار نام
>=3.9 Python


نحوه نصب


نصب پکیج whl aiowebostv-0.3.2:

    pip install aiowebostv-0.3.2.whl


نصب پکیج tar.gz aiowebostv-0.3.2:

    pip install aiowebostv-0.3.2.tar.gz