Skip to main content

Python library and command line utility for controlling Onkyo receivers through the RI protocol.

Project description

onkyrimote

A python-library and command line utility for controlling Onkyo receivers that support the RI protocol.

Installation

onkyrimote can be installed via pip.

pip install onkyrimote
onkyrimote --help

You may also check-out the repository and set the PYTHONPATH=. environment variable set.

# inside the checked-out repository directory
PYTHONPATH=. onkyrimote --help

Usage

With a Raspberry Pi

onkyrimote is modular, but currently only supports pigpio meaning that your receiver has to be connected to a Raspberry Pi. Thanks to pigpiod you can run onkyrimote directly on the Pi or on another computer, if the Pi is reachable via network [1].

You’ll need the pigpio python library to continue. You can (and should) install it with your systems package manager (e.g. apt install python3-pigpio on Debian, Raspbian, and Raspberry Pi OS) or you may also use pip (pip install pigpio).

If you have successfully connected your receiver to your Raspberry Pi the following command should turn it on. In case you have a different device, this command might not work. You can look at the onkyrimote help – onkyrimote --help – for a list of supported devices. Contributions with new devices are welcome too!

onkyrimote --gpio 17 --device onkyo_txsr304 power_on

If you want use onkyrimote via the network, you can set the PIGPIO_ADDR and PIGPIO_PORT environment variables. The following command does the same as above but pigpiod is running on a host with the IP-Address 192.168.0.16 and on port 8765 (instead of the default 8.8.8.8):

PIGPIO_ADDR=192.168.0.16 PIGPIO_PORT=8765 onkyrimote --gpio 17 --device onkyo_txsr304 power_on

[1]: Many distributions start pigpiod in a way that it cannot be reached via network, but only locally. If that is the case for you, you can edit the corresponding systemd unit. Run systemctl edit pigpiod and include the following configuration in the editor that is opened:

[Service]
ExecStart=
ExecStart=/usr/bin/pigpiod

With another platform

No other backends have been implemented yet. Feel free to contribute one!

Acknowledgements

Thanks go out to the onkyo-rpi and onkyo-ri projects that have similar goals and have been used for reference!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onkyrimote-0.2.0.tar.gz (419.5 kB view details)

Uploaded Source

File details

Details for the file onkyrimote-0.2.0.tar.gz.

File metadata

  • Download URL: onkyrimote-0.2.0.tar.gz
  • Upload date:
  • Size: 419.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for onkyrimote-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7fefb8e90a7fe27ad579c4f3785d6c3b6381a945863a449a42a7b0500a6bb7e9
MD5 1155259e758485f105693a5da609e597
BLAKE2b-256 9e6e4d11ba90fc73e3f1cf17309e1baac7a16ac456c52b3db2e9133aff229b94

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page