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

Uploaded Source

Built Distribution

castme-0.1.5-py3-none-any.whl (18.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: castme-0.1.5.tar.gz
  • Upload date:
  • Size: 17.3 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.5.tar.gz
Algorithm Hash digest
SHA256 9e77f2ae6ab5d4d174e605b2046204a5c95cad9223d958360efd8fdec61a266c
MD5 d54c49d750e568ecefcf3d9117142c15
BLAKE2b-256 0fe3cdf76292f5c5b1b96a5773d36d8c00090b0a675739916e2f72e9d242065e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: castme-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 18.9 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0e805ff9cc4480881c74146bf84ef87516af556c14ab1957961f5cf8a08b8dcc
MD5 270c1bdb1725d1c03bdce8c00f78889a
BLAKE2b-256 e0afd40139f98c82edd13c8e2d097b6ed945c86c994949268672da686851bf59

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