Skip to main content

chromecast plugin for ovos

Project description

ovos-media-plugin-chromecast

chromecast plugin for ovos-audio and ovos-media

Install

pip install ovos-media-plugin-chromecast

MPRIS

This plugin only allows you to initiate playback in a chromecast, if you want to control your chromecasts when playback is initiated externally, you can install cast_control on your system to provide a MPRIS interface

imagem

ovos-media will then be able to seamlessly integrate with your chromecast at all times

Configuration

The easiest way is to use the provided ovos-chromecast-autoconfigure command

$ ovos-chromecast-autoconfigure
This script will auto configure chromecast devices under your mycroft.conf
Make sure your devices are turned on and connected to the same Wifi as you, otherwise discovery will fail

Scanning...
    - Found Chromecast: Bedroom TV - 192.168.1.17:8009

Found devices: ['Bedroom TV']

mycroft.conf updated!

# Legacy Audio Service:
{'backends': {'chromecast-bedroom-tv': {'active': True,
                                        'identifier': 'Bedroom TV',
                                        'type': 'ovos_chromecast'}}}

# ovos-media Service:
{'audio_players': {'chromecast-bedroom-tv': {'active': True,
                                             'aliases': ['Bedroom TV'],
                                             'identifier': 'Bedroom TV',
                                             'module': 'ovos-media-audio-plugin-chromecast'}}},
 'video_players': {'chromecast-bedroom-tv': {'active': True,
                                             'aliases': ['Bedroom TV'],
                                             'identifier': 'Bedroom TV',
                                             'module': 'ovos-media-video-plugin-chromecast'}}}

ovos-audio

{
  "Audio": {
    "backends": {
      "my_chromecast": {
        "type": "ovos_chromecast",
        "identifier": "device_name_in_chromecast",
        "active": true
      }
    }
  }
}

ovos-media

WARNING: `ovos-media' has not yet been released, WIP

{
 "media": {

    // PlaybackType.AUDIO handlers
    "audio_players": {
        // chromecast player uses a headless chromecast instance to handle uris
        "kitchen_chromecast": {
            // the plugin name
            "module": "ovos-media-audio-plugin-chromecast",
            
            // this needs to be the name of the chromecast device!
            "identifier": "Kitchen Chromecast",

            // users may request specific handlers in the utterance
            // using these aliases
             "aliases": ["kitchen chromecast", "kitchen"],

            // deactivate a plugin by setting to false
            "active": true
        }
    },

    // PlaybackType.VIDEO handlers
    "video_players": {
        // chromecast player uses a headless chromecast instance to handle uris
        "living_room_chromecast": {
            // the plugin name
            "module": "ovos-media-video-plugin-chromecast",

            // this needs to be the name of the chromecast device!
            "identifier": "Living Room Chromecast",
            
            // users may request specific handlers in the utterance
            // using these aliases
             "aliases": ["Living Room Chromecast", "Living Room"],

            // deactivate a plugin by setting to false
            "active": true
        }
    }
}

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

ovos_media_plugin_chromecast-0.1.4a1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ovos_media_plugin_chromecast-0.1.4a1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file ovos_media_plugin_chromecast-0.1.4a1.tar.gz.

File metadata

File hashes

Hashes for ovos_media_plugin_chromecast-0.1.4a1.tar.gz
Algorithm Hash digest
SHA256 4bf86cac6a1fd0b5c43b23f01818e9961ff081d44cf2c5a921c192506a759c4b
MD5 5284ebefe1f7897c6483ab56e72976ec
BLAKE2b-256 c989cf85e127ef9df0364dffc8a642b30bfd2a975336b4d626e3f3ce6714c2a7

See more details on using hashes here.

File details

Details for the file ovos_media_plugin_chromecast-0.1.4a1-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_media_plugin_chromecast-0.1.4a1-py3-none-any.whl
Algorithm Hash digest
SHA256 c14b990ebc9342c76aa0d2f59953c55e1502169ce45142df6023ddbad88612a6
MD5 4091d6dde25ecc9cf8c325a66f4dd9cd
BLAKE2b-256 2c5f1cf8c3279ecb050cac7525028c552ca5e8b75561ecfa448cf1a63a6ddf21

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