Skip to main content

RPiMusic

Get AMQP message, play URL (via mpv, currently). This script creates an exchange and a queue in the specified AMQP vhost. Only ssl-enabled AMQP connections are supported. The exchange is named "Xall", type direct. The queue is named "RPiMusic_uuid", with uuid being the uuid from the config file.

Example rpimusic.conf

{ 
  "amqp_url": "amqp://user:password@amqp.example.com/examplevhost",
  "fallback_playlist_url": "http://radio.example.com/playlist.m3u",
  "url_cache_file": "/var/lib/rpimusic/playlistcache.json",
  "uuid": "c788176f2e4747f3ae2fe15083d97dce"
}

Example systemd unit file

[Unit]
Description=Listens for AMQP messages containing URLs and plays them via mpv
Wants=network-online.target
After=network-online.target

[Service]
Type=simple
User=rpimusic
ExecStart=/opt/venv/bin/rpimusicd --config /etc/rpimusic.conf
Restart=on-failure
RestartSec=30
RestartPreventExitStatus=255

[Install]
WantedBy=multi-user.target

Metadata

Release files for RPiMusic 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RPiMusic 0.0.8
File Size Uploaded Provenance Actions
RPiMusic-0.0.8.tar.gz 3.7 kB Without provenance Details for RPiMusic-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for RPiMusic 0.0.8
File Interpreter ABI Platform Actions
RPiMusic-0.0.8-py3-none-any.whl Python 3 none any Details for RPiMusic-0.0.8-py3-none-any.whl

Total release size: 8.1 kB

Release files / RPiMusic-0.0.8.tar.gz

Download URL RPiMusic-0.0.8.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0f81121d8b563819accfe5d194e8016cbdf60cce5cad1dc5af5cea1381992a96
BLAKE2b-256 checksum
How to use checksums
12180d5dec5f8b78e3762d4794795a6935014f137eca5204782ad6e0e241f8ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

Release files / RPiMusic-0.0.8-py3-none-any.whl

Download URL RPiMusic-0.0.8-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c0902598b16b4df68b44ed8f28ad68c5e6c409de40866ceff13bc8c5a82ebad
BLAKE2b-256 checksum
How to use checksums
5eccbbf64daddd7206236ca2cae6e095429aa1f5227b8d9fc06d625e6586e173
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

Security for RPiMusic 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page