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

commands: help list next play playpause queue quit volume

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.2.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

castme-0.1.2-py3-none-any.whl (18.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: castme-0.1.2.tar.gz
  • Upload date:
  • Size: 16.9 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.2.tar.gz
Algorithm Hash digest
SHA256 68a71729837d0aaa5ad82aeff60a2707cb4db9633fc29396491f142631f5c987
MD5 1069d8b89b3e7f85f7ace23a2f1fb9fa
BLAKE2b-256 b481df2d375665ca9c6fcdd7163d8ef28f41b3696d63263496d8965499bb74a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: castme-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 36cf672ea60408b5eae475f582643ad0e33d3caf7d8367dff82e8df8df7ec510
MD5 7bc3feef9b1ebd1c5ae6f70bbed5061b
BLAKE2b-256 7923fca6b04dba6c6a6c9613b964ab226fa83fa530f1330347b8a0badea58ac8

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