|Colin Murphy 6ab44ae2bb||4 months ago|
|.gitignore||4 months ago|
|README.md||4 months ago|
|onkyo.py||4 months ago|
|test.py||4 months ago|
A python library (and later, utility) for controlling an Onkyo or Integra stereo receiver using the Onkyo RS232 protocol. So far it has only been tested on the Integra DTM-5.9 receiver, but it should work to an extent on all Onkyo/Integra models.
For a general overview of usage, see
Sends a raw command to the receiver. Omit the
!1 from the command.
# turns on the receiver onkyo.sendRawCMD('PWR01')
Turns on the receiver.
Turns off the receiver.
Sets volume to the desired level. Range is from 0 to 80.
Set volume to 10:
Increases the volume by 1.
Decreases the volume by 1.
Changes the input on the receiver to the desired input.
Each receiver model has different inputs that are supported. If the input does not exist, it will not change inputs and will remain on the current input.
Tunes to the specified frequency. You must specify the band (AM, FM, and in the near future XM and Sirius) and the frequency.
To tune to 93.3 MHz, do
tuneFreq('fm', 93.3). Meanwhile, to tune to 540 KHz, do
Tunes to a specific saved preset. The preset range is from 1 to 40.
To tune to preset 1, do
Turns on or off the 12V triggers on Integra receivers.
To turn 12V trigger A to ON:
Dims the display on the receiver.
To dim the screen,
Closes the serial connection to the receiver.