Skip to main content

REPL to stream music from a Subsonic server to a chromecast

Project description

CastMe

CastMe is a simple Python REPL that allows you to cast music from a Subsonic server to a Chromecast device.

NOTE: The subsonic server must expose a URL over HTTPS. And since the chromecast will be the one connecting to the server, the certificate need to be trusted. This project is tested against Navidrome only.

It's pretty bare-bone for now, but as I am using it more and more I will add the features that I need.

Installation

  • Clone the repository
  • Install the required dependencies using Poetry or the install target:
make install
  • Copy the config file template "castme.toml.template" to one of the supported directory and update the values inside
    • "castme.toml"
    • "~/.config/castme.toml"
    • "/etc/castme.toml"

Usage

  • Run the script, a REPL will appear:
> poetry run castme
Loading config from /home/blizarre/.config/castme.toml
Finding chromecast
Waiting for cast to be ready
Chromecast ready
CastMe

>> play Harold enItal
Playing song Harold in the mountains (Adagio - Allegro) / Harold en Italie by Hector Berlioz
>> queue
 0 The Pilgrim's Procession (Allegretto) / Harold en Italie by Hector Berlioz
 1 Serenade of an Abruzzian highlander (Allegro assai) / Harold en Italie by Hector Berlioz
 2 The Robbers' orgies (Allegro frenetico) / Harold en Italie by Hector Berlioz
>> playpause
>> playpause
>> quit

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

castme-0.1.0.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

castme-0.1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file castme-0.1.0.tar.gz.

File metadata

  • Download URL: castme-0.1.0.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.10.5-1-clear

File hashes

Hashes for castme-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b4655643a7a84597ebd2fee2087c42548714c6fff77ea63a3721d6aa5675db7
MD5 e5fd06004647ca90618f883195f87817
BLAKE2b-256 cd43290e6d8930dcd5cedaaa22c25cb5b9d48551a58b83704bb17baa93e97f36

See more details on using hashes here.

File details

Details for the file castme-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: castme-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.10.5-1-clear

File hashes

Hashes for castme-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f52d8caa4198dad17f52a6104933a23ca16565f4de0383f726c36bffb803be6
MD5 854ff8ab786fc588f26be6f2c0b18196
BLAKE2b-256 62a769d0470f89bbb8ffa5a1fed5324d1b67419802ccf19c57d81d35527b86c8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page