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://travis-ci.org/elupus/arcam_fmj.svg?branch=master https://coveralls.io/repos/github/elupus/arcam_fmj/badge.svg?branch=master

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

Uploaded Source

Built Distribution

arcam_fmj-0.7.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: arcam-fmj-0.7.0.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for arcam-fmj-0.7.0.tar.gz
Algorithm Hash digest
SHA256 dd2422feb482b6fc9f6b35378ff3d810f6598b11a52010423ecc75f776d6f6c5
MD5 95afd3a48e8a1fe790949d0c0fbbaee2
BLAKE2b-256 b1364294d61ffd84f16e6215961b7c180084915c47ea7bbbbb11f963e2382680

See more details on using hashes here.

File details

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

File metadata

  • Download URL: arcam_fmj-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for arcam_fmj-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1cf61a3b72a5a4f39e73b563850b519298dd4608707bbc5f86cd029c4b318404
MD5 14c6bbb62a58f8bfce3b84f47759277c
BLAKE2b-256 4bc7826b9d71fbb191eb9a21330037cbbf1423595ef7d68a94a40bce66d2a3bf

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