Coder Social home page Coder Social logo

denon4j's Introduction

denon4j Java API

Build Status

Maven Central

The denon4j project provides a higher level Java API for communicating with a Denon audio video receiver (currently only AVR1912 is tested) via TCP/IP. It hides the complexity of the network receiver and provides generic controls that can be used with every Denon receiver.

The project is intended to be easily extended for those who want to write an API for their own AVR model.

Contributions are welcome!

Prerequisites

  • Java 8
  • Maven 3.2+ (only for building)
  • You must be connected to the same network as your AV receiver
  • Your receiver must be either turned on or you have to enable the network standby feature

Basic API Usage

Avr1912 avr = new Avr1912(192.168.0.102, 23);
avr.connect(1000);
Slider masterVolume = avr.masterVolume();
masterVolume.slideUp();
avr.disconnect();

Take a look at the class Demo.java in the test directory to view a complete example.

Command line usage

java -jar denon4j-[version]-cli.jar 192.168.0.12 23
Enter a command ('?' for help, 'q' for quit):
> ?

The following options are available:

?			Prints this help
q			Quits the program
<cmd>		Executes a generic command e.g. PW?
PW?			Returns the power state
PWON		Turns power on

See the Denon AVR receiver for a full list of commands.
> MU?
OFF

About the API

  • All packages which have 'internal' in their name are not intended to be used from outside
  • Changes to internal packages are made without further notice

Building

This is a maven style project so mvn needs to be on your $PATH. To build from scratch just type:

mvn clean package

License

Apache License Version 2.0, January 2004 (see LICENSE file)

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b my_plugin)
  3. Commit your changes (git commit -am "Added feature")
  4. Push to the branch (git push origin my_plugin)
  5. Create a new Issue with a link to your branch, or just make a Pull Request.
  6. Enjoy a refreshing Diet Coke and wait

Denon AVR Control Protocol Specs

denon4j's People

Contributors

stheves avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.