Command line tool to get chromecast receiver status and do pause/play
This tools connects to a chromecast device, pulls the running session and joins it to control it.
git clone https://github.com/bbreukelen/mini-chromecast.git
cd mini-chromecast
npm install
To get the playing status:
./chromecast ip_address status
To start playing:
./chromecast ip_address play
To pause: ./chromecast ip_address pause
Uncommenting some code in chromecast allows you to keep it running and listening for status changes.