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

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

  1. Create a config.json file with credentials (see config.json.example).
  2. 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


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.0.1.tar.gz (9.0 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.0.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: raphson_music_headless-1.0.1.tar.gz
  • Upload date:
  • Size: 9.0 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.0.1.tar.gz
Algorithm Hash digest
SHA256 b6bf8ffcfdbebc9b3bd9506db4da9eee2d8d309ab0e9555660c4de6b7e67e163
MD5 a334eed80fab788943d36950d820992f
BLAKE2b-256 b42ebeb6f1b144431338b07bf957b2d5d415ef1bcfe3d1e420ae6ca5d171cd23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for raphson_music_headless-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 846761e1c3261f61d49485a62eb5545a7c8322c7e5a2638a3e694a88bc6b2a9a
MD5 4ace69883a4071bd231640e3c0bdce4c
BLAKE2b-256 6d455135bf44be78516714e016866c1eda31a0fe501a1d9092a45a2e2392ab65

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