Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxjoehnk/yamaha-avr-rs
A Cli for yamaha avrs written in Rust
https://github.com/maxjoehnk/yamaha-avr-rs
rust yamaha-avr
Last synced: 12 days ago
JSON representation
A Cli for yamaha avrs written in Rust
- Host: GitHub
- URL: https://github.com/maxjoehnk/yamaha-avr-rs
- Owner: maxjoehnk
- License: gpl-3.0
- Created: 2017-10-04T20:34:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:09:12.000Z (11 months ago)
- Last Synced: 2024-03-15T08:06:30.602Z (8 months ago)
- Topics: rust, yamaha-avr
- Language: Rust
- Size: 32.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`:
```toml
[dependencies]
yamaha_avr = "0.2"
```Next add this to your crate root:
```rust
extern crate yamaha_avr;
```Now you are able to connect to your avr via
```rust
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
```rust
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 informationOPTIONS:
--ip Set the AVR IpSUBCOMMANDS:
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```