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

Uploaded Source

Built Distribution

arcam_fmj-1.2.1-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arcam-fmj-1.2.1.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for arcam-fmj-1.2.1.tar.gz
Algorithm Hash digest
SHA256 042940dc42b9836ef1ce72dc59718ce976a451839729f6122712975d0f77a6d4
MD5 cac7deaf5f4880ce4fe5aae63a49b5f7
BLAKE2b-256 d014a2bdebe25bed183d6b95f7775f61734d4565e00c3c8a6a4c24a93b788059

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arcam_fmj-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for arcam_fmj-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f6082ecf3fb172bd3cca54fd5b229a241b7a3148a60aeead1fd6b1d00c4999ef
MD5 3d9c315b2f020a8389860015b2d8370f
BLAKE2b-256 c8d3c59adb843cb98405f447f2f46c2c71b49d038d737caa683fe434c1582c6e

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