ovos-media-plugin-chromecast


Nameovos-media-plugin-chromecast JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/OpenVoiceOS/ovos-media-plugin-chromecast
Summarychromecast plugin for ovos
upload_time2024-09-11 03:17:58
maintainerNone
docs_urlNone
authorJarbasAi
requires_pythonNone
licenseApache-2.0
keywords ovos audio video ocp plugin
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ovos-media-plugin-chromecast

chromecast plugin for [ovos-audio](https://github.com/OpenVoiceOS/ovos-audio) and [ovos-media](https://github.com/OpenVoiceOS/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](https://github.com/alexdelorenzo/cast_control) on your system to provide a MPRIS interface

![imagem](https://github.com/OpenVoiceOS/ovos-media-plugin-chromecast/assets/33701864/b1c7de47-750c-478a-9ebe-15d4076eb71c)

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

```bash
$ 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

```javascript
{
  "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

```javascript
{
 "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
        }
    }
}
```



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OpenVoiceOS/ovos-media-plugin-chromecast",
    "name": "ovos-media-plugin-chromecast",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "ovos audio video OCP plugin",
    "author": "JarbasAi",
    "author_email": "jarbasai@mailfence.com",
    "download_url": "https://files.pythonhosted.org/packages/10/6b/e5a66de9058c2d928134574c56d12788fa82913c18206bdbddd2b13d1bc9/ovos-media-plugin-chromecast-0.1.0.tar.gz",
    "platform": null,
    "description": "# ovos-media-plugin-chromecast\n\nchromecast plugin for [ovos-audio](https://github.com/OpenVoiceOS/ovos-audio) and [ovos-media](https://github.com/OpenVoiceOS/ovos-media)\n\n## Install\n\n`pip install ovos-media-plugin-chromecast`\n\n## MPRIS\n\nThis 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](https://github.com/alexdelorenzo/cast_control) on your system to provide a MPRIS interface\n\n![imagem](https://github.com/OpenVoiceOS/ovos-media-plugin-chromecast/assets/33701864/b1c7de47-750c-478a-9ebe-15d4076eb71c)\n\novos-media will then be able to seamlessly integrate with your chromecast at all times\n\n## Configuration\n\nThe easiest way is to use the provided `ovos-chromecast-autoconfigure` command\n\n```bash\n$ ovos-chromecast-autoconfigure\nThis script will auto configure chromecast devices under your mycroft.conf\nMake sure your devices are turned on and connected to the same Wifi as you, otherwise discovery will fail\n\nScanning...\n    - Found Chromecast: Bedroom TV - 192.168.1.17:8009\n\nFound devices: ['Bedroom TV']\n\nmycroft.conf updated!\n\n# Legacy Audio Service:\n{'backends': {'chromecast-bedroom-tv': {'active': True,\n                                        'identifier': 'Bedroom TV',\n                                        'type': 'ovos_chromecast'}}}\n\n# ovos-media Service:\n{'audio_players': {'chromecast-bedroom-tv': {'active': True,\n                                             'aliases': ['Bedroom TV'],\n                                             'identifier': 'Bedroom TV',\n                                             'module': 'ovos-media-audio-plugin-chromecast'}}},\n 'video_players': {'chromecast-bedroom-tv': {'active': True,\n                                             'aliases': ['Bedroom TV'],\n                                             'identifier': 'Bedroom TV',\n                                             'module': 'ovos-media-video-plugin-chromecast'}}}\n```\n\n### ovos-audio\n\n```javascript\n{\n  \"Audio\": {\n    \"backends\": {\n      \"my_chromecast\": {\n        \"type\": \"ovos_chromecast\",\n        \"identifier\": \"device_name_in_chromecast\",\n        \"active\": true\n      }\n    }\n  }\n}\n```\n\n\n### ovos-media\n\n> **WARNING**: `ovos-media' has not yet been released, WIP\n\n```javascript\n{\n \"media\": {\n\n    // PlaybackType.AUDIO handlers\n    \"audio_players\": {\n        // chromecast player uses a headless chromecast instance to handle uris\n        \"kitchen_chromecast\": {\n            // the plugin name\n            \"module\": \"ovos-media-audio-plugin-chromecast\",\n\n            // this needs to be the name of the chromecast device!\n            \"identifier\": \"Kitchen Chromecast\",\n\n            // users may request specific handlers in the utterance\n            // using these aliases\n             \"aliases\": [\"kitchen chromecast\", \"kitchen\"],\n\n            // deactivate a plugin by setting to false\n            \"active\": true\n        }\n    },\n\n    // PlaybackType.VIDEO handlers\n    \"video_players\": {\n        // chromecast player uses a headless chromecast instance to handle uris\n        \"living_room_chromecast\": {\n            // the plugin name\n            \"module\": \"ovos-media-video-plugin-chromecast\",\n\n            // this needs to be the name of the chromecast device!\n            \"identifier\": \"Living Room Chromecast\",\n\n            // users may request specific handlers in the utterance\n            // using these aliases\n             \"aliases\": [\"Living Room Chromecast\", \"Living Room\"],\n\n            // deactivate a plugin by setting to false\n            \"active\": true\n        }\n    }\n}\n```\n\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "chromecast plugin for ovos",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/OpenVoiceOS/ovos-media-plugin-chromecast"
    },
    "split_keywords": [
        "ovos",
        "audio",
        "video",
        "ocp",
        "plugin"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5570bcb8b18983c2a638883d7018b8b47c26d63c088bea94684642e85c38386e",
                "md5": "fb6299019f9a575811e1657362162e43",
                "sha256": "e4666d16d96bdec6d5f762445824c454589189e7bff93388d8c60a890bc32fa0"
            },
            "downloads": -1,
            "filename": "ovos_media_plugin_chromecast-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fb6299019f9a575811e1657362162e43",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 13928,
            "upload_time": "2024-09-11T03:17:57",
            "upload_time_iso_8601": "2024-09-11T03:17:57.772699Z",
            "url": "https://files.pythonhosted.org/packages/55/70/bcb8b18983c2a638883d7018b8b47c26d63c088bea94684642e85c38386e/ovos_media_plugin_chromecast-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "106be5a66de9058c2d928134574c56d12788fa82913c18206bdbddd2b13d1bc9",
                "md5": "864df431588f67d0c88c1dd10d850476",
                "sha256": "fd93dc26182ab5ea27332d58e1af658e6386340caa2fd945e2835f2912637911"
            },
            "downloads": -1,
            "filename": "ovos-media-plugin-chromecast-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "864df431588f67d0c88c1dd10d850476",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 12856,
            "upload_time": "2024-09-11T03:17:58",
            "upload_time_iso_8601": "2024-09-11T03:17:58.553775Z",
            "url": "https://files.pythonhosted.org/packages/10/6b/e5a66de9058c2d928134574c56d12788fa82913c18206bdbddd2b13d1bc9/ovos-media-plugin-chromecast-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-11 03:17:58",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OpenVoiceOS",
    "github_project": "ovos-media-plugin-chromecast",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "ovos-media-plugin-chromecast"
}
        
Elapsed time: 0.67123s