Marantz

Ruby client that uses Marantz web interface as an API.

Supported versions

  • Ruby 1.9.3, 2.0.0, 2.1.1

Install

Put this line in your Gemfile:

gem 'marantz'

Then bundle:

$ bundle

Usage

General configuration options

You need to configure the gem to fit your needs:

# Default values
Marantz.configure do |config|
  config.host = '127.0.0.1'
  config.max_volume = 50
end

Initiating client

avr = Marantz::Client.new

Power on/off

avr.on
avr.off

Change source

Currently the following sources are switchable: SAT/CBL, Internet Radio, Spotify

avr.source = :satellite
avr.source = :iradio

Volume

avr.volume = 35 # dB
avr.mute
avr.unmute

Build Status <img src=“”/>

Questions, Feedback

Feel free to message me on Github (stoffus).

Copyright © 2014 Christopher Svensson.