Inputs - project-owner/PeppyMeter.doc GitHub Wiki
Different audio players can serve as data sources for PeppyMeter. They should use peppyalsa plugin as output device.
If you are using HiFiBerry Amp+ amplifier with one of these audio players then the maximum system volume level can be defined by using amixer command. For example to set maximum system level 70%:
amixer sset Master 70%
If you are using HiFiBerry Amp2 amplifier the maximum system volume level can be defined by using alsamixer command. For example to set maximum system level 50% start alsamixer:
alsamixer
and define 50% for the Digital volume using arrow up/down keys on the keyboard:
HTTP requests
Besides the signal from audio players running on the same machine as PeppyMeter it can also receive and display volume data from remote machines using HTTP requests. The Tornado Web Server which receives and handles those HTTP requests can be installed this way:
pip3 install tornado
To enable HTTP data source the corresponding property should be specified in the configuration file config.txt:
[data.source]
type = http
The data should be sent to the following URL (use your own IP address): http://localhost:8001/vumeter The port should be specified in another property of the config.txt:
[web.server]
http.port = 8001
The data should be sent as a Json payload:
{
left: 12,
right: 14,
mono: 13
}
The PeppyMeter working as HTTP source can be used for sending HTTP requests to the PeppyMeter working as HTTP target/receiver.