Skip to main content

A python library for speaking to Arcam receivers

Project description

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

https://github.com/elupus/arcam_fmj/actions/workflows/python-package.yml/badge.svg

Module

Code to set volume and source using library.

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.

arcam-fmj state --host 192.168.0.2 --port 50000 --source 5 --volume 50

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arcam-fmj-0.11.1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

arcam_fmj-0.11.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file arcam-fmj-0.11.1.tar.gz.

File metadata

  • Download URL: arcam-fmj-0.11.1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for arcam-fmj-0.11.1.tar.gz
Algorithm Hash digest
SHA256 109ce1e53ca4b97672b6380137d0b236ad3da82d13669166c6ec38d6c5591c44
MD5 77313d6f53a1c7f42cc5d13bb25b7120
BLAKE2b-256 8872d237237bc12d7f1e89a05174b5950ea47788a8afafff94ed72bf8d0b2464

See more details on using hashes here.

File details

Details for the file arcam_fmj-0.11.1-py3-none-any.whl.

File metadata

  • Download URL: arcam_fmj-0.11.1-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6

File hashes

Hashes for arcam_fmj-0.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5acfe37c0c8945af14e5f4aecf42901729694b7295f82851d1fccb6d18922f6
MD5 dcf3d1e5cb0bada838f162e678783b92
BLAKE2b-256 e51d5c8bffd8849d009e40d008f5dbc632b5ae08b42478b11dbdaca74d7aa90d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page