Skip to content

epipheus/chromecast-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A simple Ruby lib for Chromecast

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages