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.4.0.tar.gz (18.6 kB view hashes)

Uploaded Source

Built Distribution

arcam_fmj-1.4.0-py3-none-any.whl (20.3 kB view hashes)

Uploaded Python 3

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