Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 732 Bytes

README.rdoc

File metadata and controls

47 lines (29 loc) · 732 Bytes

chromecast

A simple Ruby library you can use to monitor and control basic features of your Chromecast.

Quick start

Install the gem:

gem install chromecast

Or add it to your Gemfile:

gem "chromecast"

Generate a certificate to be used for TLS connetion:

bundle exec rake setup:certificate

Use it:

require 'chromecast'

c = Chromecast::Connection.new(CHROMECAST_IP).open
c.connection.connect

while true
  msg = c.read

  puts msg

  if msg['type'] == 'PING'
    c.heartbeat.pong
  end
end

To Do

  • Scanning for devices

  • EventMachine support

  • Proper documentation

  • Tests

  • Support for more namespaces

License

This gem is released under the MIT License.