Skip to main content

A python library for speaking to Arcam receivers

Project description

This module supports controlling an Arcam FMJ receiver (as well as JBL and AudioControl processors) over the network. It’s built mainly for use with the 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.5.1.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

arcam_fmj-1.5.1-py3-none-any.whl (20.7 kB view details)

Uploaded Python 3

File details

Details for the file arcam_fmj-1.5.1.tar.gz.

File metadata

  • Download URL: arcam_fmj-1.5.1.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for arcam_fmj-1.5.1.tar.gz
Algorithm Hash digest
SHA256 6794b67b363853b25a90a20973641f23a4a40ebbe88dab4ae764fbfb4d3c5f34
MD5 0d45e5fa382f137c58be94ac2a1f189d
BLAKE2b-256 b6ce00df9cc987ceeef18582ac6309a5cbc2643d0da5287429bff0d93d2e5442

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arcam_fmj-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 20.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for arcam_fmj-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de89ebf8a0207afb023f93de566fd6f5f9e759ee2d3cd3294025dc7946c152f3
MD5 3d81b4811822c8e660314896b38ec3dd
BLAKE2b-256 95da8d52adf380f53eabc52ba66e0e6638c464484d879fdc2d2da372214192e4

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