<commit_before># homestar-denon-avr

Connect and control Denon AVR(s) with HomeStar and IOTDB.

See <a href="samples/">the samples</a> for details how to add to your project,
particularly <code>model.js</code> and <code>iotdb.js</code>.

# Quick Start

Set the TV to channel 3 (see the examples for more! really!)

	$ npm install -g homestar ## with 'sudo' if error
	$ homestar setup
	$ homestar install homestar-denon-avr
	$ node
	>>> iotdb = require('iotdb')
	>>> iot = iotdb.iot()
	>>> things = iot.connect("DenonAVR")
	>>> things.set(":volume", 0.5)

## About

This bridge will allow you to:

* set volume, band, sound mode, and on (power)
* get same
* connect to Denon AVR using specified host
* connect to Denon AVR by mDNS / Bounjour discovery (default)

## Parameters

If you want to add more controls, it should be fairly
straight forward. See the <a href="docs">docs</a> folder.

* <code>volume</code>: number between 0 and 1
* <code>band</code>: Denon AVR "Select Input" band (see below)
* <code>sound_mode</code>: Denon AVR Sound Mode (see below)
* <code>on</code>: true or false
  
e.g.

    {
        "volume": 0.18,
        "band": "MEDIA",
		"sound_mode": "MCH STEREO",
        "on": true
    }

### Bands

Not all Denon AVRs support all these bands. Future
versions of this bridge will support some sort of
standardized value like <code>iot-attribute:band.phono</code>, etc..<commit_msg>Fixing tab issue<commit_after># homestar-denon-avr

Connect and control Denon AVR(s) with HomeStar and IOTDB.

See <a href="samples/">the samples</a> for details how to add to your project,
particularly <code>model.js</code> and <code>iotdb.js</code>.

# Quick Start

Set the TV to channel 3 (see the examples for more! really!)

	$ npm install -g homestar ## with 'sudo' if error
	$ homestar setup
	$ homestar install homestar-denon-avr
	$ node
	>>> iotdb = require('iotdb')
	>>> iot = iotdb.iot()
	>>> things = iot.connect("DenonAVR")
	>>> things.set(":volume", 0.5)

## About

This bridge will allow you to:

* set volume, band, sound mode, and on (power)
* get same
* connect to Denon AVR using specified host
* connect to Denon AVR by mDNS / Bounjour discovery (default)

## Parameters

If you want to add more controls, it should be fairly
straight forward. See the <a href="docs">docs</a> folder.

* <code>volume</code>: number between 0 and 1
* <code>band</code>: Denon AVR "Select Input" band (see below)
* <code>sound_mode</code>: Denon AVR Sound Mode (see below)
* <code>on</code>: true or false
  
e.g.

    {
        "volume": 0.18,
        "band": "MEDIA",
        "sound_mode": "MCH STEREO",
        "on": true
    }

### Bands

Not all Denon AVRs support all these bands. Future
versions of this bridge will support some sort of
standardized value like <code>iot-attribute:band.phono</code>, etc..
{'fraction_non_alphanumeric': 0.1306354277600284, 'fraction_numerical': 0.0056798012069577564, 'mean_word_length': 3.7361344537815127, 'pattern_counts': {'":': 10, '<': 39, '<?xml version=': 0, '>': 63, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2290914', 'n_tokens_mistral': 981, 'n_tokens_neox': 951, 'n_words': 349}