Skip to main content

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

Debian

Add this repository to your system: https://deb.rkslot.nl/

Then run apt install raphson-music-headless

pipx

pipx install raphson-music-headless[mpv]

or

pipx install raphson-music-headless[vlc]

Run: raphson-music-headless

git

Install the dependencies python3-aiohttp and python3-mpv using your distribution's package manager or using pip in a venv.

Install music-client-python in a venv.

git clone https://codeberg.org/raphson/music-headless
cd music-headless
python3 -m raphson_music_headless

Usage

  1. Create a config.json file with credentials (see config.json.example).
  2. Run raphson-music-headless --config config.json

By default, the program looks for a configuration file at /etc/raphson-music-headless.json.

Players

Either MPV or VLC can be used as audio player backend. Respectively, python-mpv or python-vlc should be installed. Configure player accordingly in config.json.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

raphson_music_headless-1.2.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

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

raphson_music_headless-1.2.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file raphson_music_headless-1.2.0.tar.gz.

File metadata

  • Download URL: raphson_music_headless-1.2.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for raphson_music_headless-1.2.0.tar.gz
Algorithm Hash digest
SHA256 827bf142bf82b9a99249817e4b1fb8027f8b6cd3018b666f05332b0c683db01a
MD5 d5c8af37640eb66d470d9776d191cdfd
BLAKE2b-256 7063f7c4089d11340b69e05fd84dd2c11479fbb4494e91e75905ecf3afdbbe64

See more details on using hashes here.

File details

Details for the file raphson_music_headless-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for raphson_music_headless-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92d9c0e585a111d209584b8bc0b02ee82977f0921006b661d52cd66753b43443
MD5 a302bfe138b0e2e06b07b495d77b88ba
BLAKE2b-256 974377a81ba1d3299c91a05acdd137fe7dcdb69169ef8edc230851e92f8e3ef0

See more details on using hashes here.

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