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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arcam_fmj-2.1.1-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arcam_fmj-2.1.1.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for arcam_fmj-2.1.1.tar.gz
Algorithm Hash digest
SHA256 bcd7421a3ceead08a897e20999d151630f4b6be0135ae6f39005157483a897a0
MD5 d36161b5ea2ffeb37fb077aa865c3503
BLAKE2b-256 dea01ceff30cf7424a3d19278a675a7be6bac3d0a7932fffb86e7fe422314cd4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arcam_fmj-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for arcam_fmj-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9e84e95f58a1cdc223396e7f52fdf9e533c590b686d90b3141f3442522b2540
MD5 bd400a86c89ef57879fda7d908f60f9a
BLAKE2b-256 41901eb9414e41a8f38490f8a3acd84ce198dce9c60407e32b212f82f42a59b8

See more details on using hashes here.

Supported by

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