This project has been archived by its maintainers, and is no longer receiving any updates.
Πηααος [1] (Hippasos) plays preconfigured sound files upon reception of predefined mqtt messages.
Pelops Overview
Hippasos is part of the collection of mqtt based microservices pelops. An overview on the microservice architecture and examples can be found at (http://gitlab.com/pelops/pelops).
For Users
Installation Core-Functionality
Prerequisites for the core functionality are:
sudo apt install python3 python3-pip python3-pygame sudo pip3 install paho-mqtt pyyaml pygame pelops
Install via pip:
sudo pip3 install epidaurus
To update to the latest version add --upgrade as prefix to the pip3 line above.
Install via gitlab (might need additional packages):
git clone git@gitlab.com:pelops/hippasos.git cd hippasos sudo python3 setup.py install
This will install the following shell scripts: * hippasoss
The script cli arguments are: * ‘-c’/’–config’ - config file (mandatory) * ‘-v’ - verbose output (optional) * ‘–version’ - show the version number and exit
YAML-Config
mqtt:
mqtt-address: localhost
mqtt-port: 1883
credentials-file: ~/credentials.yaml
log-level: WARNING
logger:
log-level: DEBUG
log-file: hippasos.log
sound-mappings:
- name: bell_building # unique name for sound event
sound-file: ../resources/church_bell.ogg # uri to sound file. must be ogg or wav.
topic-sub: /test/button1 # react to published values on this channel
message-value: PRESSED # react to this message content
volume: 0.1 # 0..1 - volume relative to system volume
active: True # entry ignored if set to False
systemd
add systemd example.
For Developers
Getting Started
The project consists of two main modules: * soundservice - Creates, starts and stops sound events. * soundevent - Subscribes to a topic and plays a sound file upon reception of a specific message.
Todos
Make maximum number of parallel playable sound configurable.
…
Misc
The code is written for python3 (and tested with python 3.5 on an Raspberry Pi Zero with Raspbian Stretch).
Merge requests / bug reports are always welcome.
Release files for Hippasos 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Hippasos-0.1.7.tar.gz | 5.4 kB | Details |
Release files / Hippasos-0.1.7.tar.gz
| Download URL | Hippasos-0.1.7.tar.gz |
|---|---|
| Size | 5.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
66e7c0aead60b7d3f0eb619ea94db81c5cde3d3c84a475bdc837c1e557d1b050
|
|
BLAKE2b-256 checksum How to use checksums |
bde1c32fbc4cc6c495b901ba559d0dffbb941e9ef09c44c29868054f8e85ab88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|