Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harperreed/chromecast-control
Control a chromecast with python
https://github.com/harperreed/chromecast-control
Last synced: 11 days ago
JSON representation
Control a chromecast with python
- Host: GitHub
- URL: https://github.com/harperreed/chromecast-control
- Owner: harperreed
- License: mit
- Archived: true
- Created: 2013-08-23T17:25:55.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-02-27T19:33:13.000Z (9 months ago)
- Last Synced: 2024-08-02T14:12:22.264Z (4 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 46
- Watchers: 8
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chromecast-control
## Control a chromecast with pythonWe got chromecasts at [ltc](http://ltc.io) and I immediately wanted to use them to power our [dashing](http://shopify.github.io/dashing/) dashboards. It is the cheapest route and being that it is just a chrome browser, makes the most sense.
This script will start, stop get info on a particular appid and a target chromecast (ip).
## REST
Turns out that interacting with the chromecast is just rest.
You do REST operations on the appid url: `http://CHROMECAST_IP:8008/apps/APPID`
You stop it by DELETING to the appid URL. You also start by POSTING to it.
## More interesting
There are other URLS that show up when you sniff traffic:
* http://CHROMECAST_IP:8008/ssdp/device-desc.xml
* http://CHROMECAST_IP:8008/apps/ChromeCast
* http://CHROMECAST_IP:8008/apps/No idea what this does:
POST `http://CHROMECAST_IP:8008/connection/ChromeCast`
{
"channel": 0,
"senderId": {
"appName": "ChromeCast",
"senderId": ""
}
}
### Youtube
#### Start:POST `http://CHROMECAST_IP:8008/apps/YouTube`
pairingCode: No idea
v: awMIbA34MT8#### Stop:
DELETE `http://CHROMECAST_IP:8008/apps/YouTube`
# Please help
There is a lot of work to do (discovery, etc) that would make this useful. The chromecast is very powerful, but it is wrapped in an annoying interaction model (browser extension, etc).