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-1.0.0.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

arcam_fmj-1.0.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arcam-fmj-1.0.0.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for arcam-fmj-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a2467c328245f09b3224e4ba917bdb8a6c94b73fdc5e5b4c02f4e876b7410cca
MD5 4673113f6d513028d7f710b9f54d4c24
BLAKE2b-256 9b45018f6495e745d3e78b504814b858f361bbba7df65f2611b4eb24bfc91e60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arcam_fmj-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for arcam_fmj-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91be1077024c3683420899688533e9e17f384c2e7c220b05d87b27364ad92ba1
MD5 6a8f3dc7628830408e7221f219668567
BLAKE2b-256 fe7a1735c27cd5ad3fa0bd373b051a7606478b80a53b95fc94148aa747d10ad2

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