Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 732 Bytes

File metadata and controls

47 lines (29 loc) · 732 Bytes

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

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
  • Scanning for devices

  • EventMachine support

  • Proper documentation

  • Tests

  • Support for more namespaces

This gem is released under the MIT License.