Skip to main content

Python library to interact with Fohhn Speakers

Project description

pyfohhn

Python library to interact with Fohhn Speakers

Pyfohhn uses either FDCP (Fohhn DSP control protocol - binary format - the native format Fohhn Audio Soft is using) or a UDP Text protocol with limited commands.

FDCP can be used with either a serial connection (com port / RS485) or UDP.

Installation

The package can be simply installed from PyPi:

pip install pyfohhn

Example

from pyfohhn import PyFohhnDevice

# Open connection to a device that has ID=1 via UDP
dev = PyFohhnDevice(id=1, ip_address="192.168.0.164")

# Read and print device class and version
dev_class, ver_major, ver_minor, ver_micro = dev.get_info()
print(f"{dev_class:04x}, {ver_major}.{ver_minor}.{ver_micro}")

# Change volume settings of channel 1
dev.set_volume(1, -5, True, False)

# Get and print current volume settings of channel 1
print(dev.get_volume(1))

The functions are quite self explaining - just check the docstrings.

License

pyfohhn is licensed under the MIT License, see LICENSE for more information.

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

pyfohhn-1.2.2.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

pyfohhn-1.2.2-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file pyfohhn-1.2.2.tar.gz.

File metadata

  • Download URL: pyfohhn-1.2.2.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyfohhn-1.2.2.tar.gz
Algorithm Hash digest
SHA256 892949aee1c4434fa051d791b2a0f3aea2413aeba5c4a63fd58f0079e4d39fdd
MD5 d65a8d3ad81c61df12d141028daff1b3
BLAKE2b-256 cf594b19dc7c3131e07beb91b582c65a0562c131f25078c1e00bab6753d08f52

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfohhn-1.2.2.tar.gz:

Publisher: publish.yml on Fohhn/pyfohhn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfohhn-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: pyfohhn-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pyfohhn-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 72a55c9186f0ff21f51079068ebe63281e6a259f6255cf6f630849d99d4d661d
MD5 fc0ba8a50675ab4e339e4ddd1605800d
BLAKE2b-256 3835f5375a32e1a5fe505f3dffdcfa13de80ea8dcbb49ef444f174b6de5ffb79

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfohhn-1.2.2-py3-none-any.whl:

Publisher: publish.yml on Fohhn/pyfohhn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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