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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyfohhn-1.1.0.tar.gz.
File metadata
- Download URL: pyfohhn-1.1.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73bfd8da5cd9e0d63590783073a2bd0f5cf1ae1961e629f2f7df77d5922289f9
|
|
| MD5 |
7a3e28ca9c732482fdee4d2502864cb0
|
|
| BLAKE2b-256 |
5cd1f5e3cffb12dfa85bb43cc261c10b62afce52eab94d6e09e5bc33c5b15e03
|
Provenance
The following attestation bundles were made for pyfohhn-1.1.0.tar.gz:
Publisher:
publish.yml on Fohhn/pyfohhn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfohhn-1.1.0.tar.gz -
Subject digest:
73bfd8da5cd9e0d63590783073a2bd0f5cf1ae1961e629f2f7df77d5922289f9 - Sigstore transparency entry: 188936851
- Sigstore integration time:
-
Permalink:
Fohhn/pyfohhn@dceae930e4cfba24e14765111bef142cb88a2f4a -
Branch / Tag:
refs/tags/1.1.0 - Owner: https://github.com/Fohhn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dceae930e4cfba24e14765111bef142cb88a2f4a -
Trigger Event:
push
-
Statement type:
File details
Details for the file pyfohhn-1.1.0-py3-none-any.whl.
File metadata
- Download URL: pyfohhn-1.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b17fb39b8bb1eb68aa46bd6b3d19649d720be190dd8527c737acd9565e3d883
|
|
| MD5 |
f4ba438d5b5004f2af5654751c90fa7b
|
|
| BLAKE2b-256 |
78da6071a606f07360f2a65d51928c5f7502b254ef4e50e75167088db5051a80
|
Provenance
The following attestation bundles were made for pyfohhn-1.1.0-py3-none-any.whl:
Publisher:
publish.yml on Fohhn/pyfohhn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pyfohhn-1.1.0-py3-none-any.whl -
Subject digest:
8b17fb39b8bb1eb68aa46bd6b3d19649d720be190dd8527c737acd9565e3d883 - Sigstore transparency entry: 188936852
- Sigstore integration time:
-
Permalink:
Fohhn/pyfohhn@dceae930e4cfba24e14765111bef142cb88a2f4a -
Branch / Tag:
refs/tags/1.1.0 - Owner: https://github.com/Fohhn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dceae930e4cfba24e14765111bef142cb88a2f4a -
Trigger Event:
push
-
Statement type: