#avr #api-bindings #yamaha

bin+lib yamaha_avr

A Library and CLI Tool for interaction with Yamaha AVRs

3 releases (breaking)

Uses old Rust 2015

0.2.0 Oct 6, 2017
0.1.0 Oct 5, 2017
0.0.1 Oct 5, 2017

#32 in #avr

28 downloads per month

GPL-3.0 license

24KB
491 lines

yamaha-avr-rs

yamaha-avr-rs provides a Library and a CLI for interaction with Yamaha AVRs.

Library

Usage

Add this to your Cargo.toml:

[dependencies]
yamaha_avr = "0.2"

Next add this to your crate root:

extern crate yamaha_avr;

Now you are able to connect to your avr via

yamaha::connect("ip".to_owned()); // connect takes a String instead of a str

Soon you will also be able to discover your local AVRs via

yamaha::discover();

which will return a List of found Receivers.

CLI

Installation

Using cargo

Requires Rust

cargo install yamaha_avr

Usage

USAGE:
    yamaha-avr [OPTIONS] [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --ip <ip>    Set the AVR Ip

SUBCOMMANDS:
    help      Prints this message or the help of the given subcommand(s)
    inputs    Get available Inputs
    mute      Mute/Unmute
    power     Get/Set Power
    select    Select Input
    volume    Get/set the volume

Dependencies

~13MB
~227K SLoC