arcam-fmj-1.3.0
توضیحات
A python library for speaking to Arcam receivers
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | arcam-fmj-1.3.0 |
| نام | arcam-fmj |
| نسخه کتابخانه | 1.3.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Joakim Plate |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/elupus/arcam_fmj |
| آدرس اینترنتی | https://pypi.org/project/arcam-fmj/ |
| مجوز | MIT |
********************************
Arcam IP Control
********************************
This module support controlling an arcam fmj received over it's network.
It's built mainly for use with home-assistant project, but should work
for other projects as well.
Status
______
.. image:: https://github.com/elupus/arcam_fmj/actions/workflows/python-package.yml/badge.svg
:target: https://github.com/elupus/arcam_fmj/actions
Module
======
Code to set volume and source using library.
.. code-block:: python
async def run():
host = '192.168.0.2'
port = '50000'
zone = 1
volume = 50
source = SourceCodes.PVR
client = Client(host, port)
async with ClientContext(client):
state = State(client, zone)
await state.set_volume(volume)
await state.set_source(source)
loop = asyncio.get_event_loop()
loop.run_until_complete (run())
Console
=======
The module contains a commandline utility to test and request data from
called ``arcam-fmj``.
Code to set volume and source using console.
.. code-block:: bash
arcam-fmj state --host 192.168.0.2 --port 50000 --source 5 --volume 50
نیازمندی
| مقدار | نام |
|---|---|
| >18.1 | attrs |
| >3.6.4 | pytest |
| - | pytest-asyncio |
| >=1.0.0 | pytest-aiohttp |
| >=3.0.0 | pytest-cov |
| - | coveralls |
| - | pytest-mock |
| - | aiohttp |
| - | defusedxml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl arcam-fmj-1.3.0:
pip install arcam-fmj-1.3.0.whl
نصب پکیج tar.gz arcam-fmj-1.3.0:
pip install arcam-fmj-1.3.0.tar.gz