From dab143f6fdc0b459101b727458943ca0d30c2dde Mon Sep 17 00:00:00 2001
From: Matt <927830+mattmattmatt@users.noreply.github.com>
Date: Sun, 3 Feb 2019 15:05:36 -0800
Subject: [PATCH] feat: add more channels to input map
Closes https://github.com/mattmattmatt/node-red-contrib-avr-pioneer/issues/2. Closes #2.
---
README.md | 6 +++---
pioneer-avr-out.html | 2 +-
src/PioneerAvrOut.js | 43 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 47 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index d841264..900aa82 100644
--- a/README.md
+++ b/README.md
@@ -21,9 +21,9 @@ npm i node-red-contrib-avr-pioneer -S
## Usage
-Provides two palette nodes – one to send control commands to a Pioneer AVR, and one to receive messages when receiver's state changes.
+Currently provides one palette node – one to send control commands to a Pioneer AVR.
-![](https://github.com/mattmattmatt/node-red-contrib-avr-pioneer/blob/master/tooling/nodes.png?raw=true)
+![](https://cldup.com/T5692bE_OT.png)
### Output node
@@ -37,7 +37,7 @@ Sets the state of the receiver.
| `on` | Sets the `on` state where the value is `true` or `false` |
| `muted` | Sets the `muted` state where the value is `true` or `false` |
| `volume` | Sets the volume from `0` to `74`, or whatever your receiver's maximum is |
-| `channel` | Sets the active input channel, must be one of `CD`, `TUNER`, `DVD`, `TV`, `SAT/CBL`, `VIDEO`, `DVR/BDR`, `IPOD/USB`, `BD`, `ADAPTER`, `NETRADIO`, `MEDIA SERVER`, `FAVORITE`, `GAME` |
+| `channel` | Sets the active input channel, must be one of `PHONO`, `CD`, `TUNER`, `TAPE`, `DVD`, `TV`, `SAT/CBL`, `SAT`, `CBL`, `CABLE`, `VIDEO`, `MULTI CH IN`, `USB-DAC`, `VIDEO2`, `DVR/BDR`, `DVR`, `BDR`, `IPOD/USB`, `USB`, `IPOD`, `XM RADIO`, `HDMI1`, `HDMI2`, `HDMI3`, `HDMI4`, `HDMI5`, `HDMI6`, `BD`, `MEDIA GALLERY`, `SIRIUS`, `HDMI CYCLE`, `ADAPTER`, `HDMI7`, `HDMI8`, `NETRADIO`, `SIRIUSXM`, `PANDORA`, `MEDIA SERVER`, `MEDIA`, `FAVORITE`, `MHL`, `GAME`, `SPOTIFY`.
[See source](https://github.com/mattmattmatt/node-red-contrib-avr-pioneer/blob/master/src/PioneerAvrOut.js#L5) for more info on input codes. |
#### Example payloads
diff --git a/pioneer-avr-out.html b/pioneer-avr-out.html
index dcc15d7..bb7857f 100644
--- a/pioneer-avr-out.html
+++ b/pioneer-avr-out.html
@@ -52,7 +52,7 @@
CD
, TUNER
, DVD
, TV
, SAT/CBL
, VIDEO
, DVR/BDR
, IPOD/USB
, BD
, ADAPTER
, NETRADIO
, MEDIA SERVER
, FAVORITE
, GAME
PHONO
, CD
, TUNER
, TAPE
, DVD
, TV
, SAT/CBL
, SAT
, CBL
, CABLE
, VIDEO
, MULTI CH IN
, USB-DAC
, VIDEO2
, DVR/BDR
, DVR
, BDR
, IPOD/USB
, USB
, IPOD
, XM RADIO
, HDMI1
, HDMI2
, HDMI3
, HDMI4
, HDMI5
, HDMI6
, BD
, MEDIA GALLERY
, SIRIUS
, HDMI CYCLE
, ADAPTER
, HDMI7
, HDMI8
, NETRADIO
, SIRIUSXM
, PANDORA
, MEDIA SERVER
, MEDIA
, FAVORITE
, MHL
, GAME
, SPOTIFY