Headless music player server for the Raphson music player
Project description
Headless playback server for Raphson Music
Client for the Raphson Music server that can be controlled remotely via a simple web interface or Home Assistant.
Installation
Using pipx (recommended)
pipx install raphson-music-headless
Run: raphson-music-headless
Using distribution packages
- Debian:
apt install python3-aiohttp python3-vlc
- Fedora:
dnf install python3-aiohttp python3-vlc
Then install the rest from PyPi: pip install --user raphson-music-headless
From Git
git clone https://codeberg.org/raphson/music-headless
cd music-headless
python3 -m raphson_music_headless
To install:
pip install --user .
Usage
- Create a
config.json
file with credentials (seeconfig.json.example
). - Run
raphson-music-headless
API
See API.md
Temporary files
The server writes music to temporary files so VLC can access them. On Linux, the /tmp
directory is used for this purpose. It is strongly recommended to mount tmpfs
on /tmp
to avoid unnecessary writes to your disk, especially when using a Raspberry Pi with sd card.
Check if it is the case by running mount | grep /tmp
. It should show something like: tmpfs on /tmp type tmpfs ...
Cache size
The cache_size
setting determines the number of cached tracks for each playlist. These tracks are kept in memory, consuming roughly 3 - 6MB per track including cover image. Say cache_size
is set to 4 and you use a maximum of 10 playlists, you will need around 200MiB of memory.
Bugs
When playing mono audio (like news), sound may only be played on the left channel. This appears to be an issue with PipeWire.
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
File details
Details for the file raphson_music_headless-1.0.0.tar.gz
.
File metadata
- Download URL: raphson_music_headless-1.0.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40941ccf3efcd7aa4707f6fceefe4480648dfc133062591d7da5ad8e8b1f4b90 |
|
MD5 | 15b2a8075ba06b040fe307b4fe1440f9 |
|
BLAKE2b-256 | 3ae7afed7ac2d5fd7c58f7efc0e5df588509d4ba805ac6e588003f82104ad6cd |
File details
Details for the file raphson_music_headless-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: raphson_music_headless-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a044b191ba39d0f8349297b051b3996511fe4ac822d6a2acc9486f96d1ab222 |
|
MD5 | ec1749f1922c0a7472ec834f15546892 |
|
BLAKE2b-256 | 072892cd2b6c2fe9807be51b82234bba216626a4bb831a2b1eccd694de6044b9 |