[PLUGIN] Onkyo Controller

Discuss, contribute and orient Volumio development!

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.

[PLUGIN] Onkyo Controller

Postby orderoftheflame » Wed May 23 2018 11:39

Onkyo Controller

A simple plugin that is able to turn an Onkyo receiver on the network on and off when playback begins and ends using eISCP.

Features:
  • Automatically or manually detect compatible Onkyo receivers on the network .
  • Send a power on or power off command to an Onkyo receiver when Volumio playback begins or ends.
  • Set the volume on the receiver to a set value when Volumio playback begins.
  • Set the receiver channel on playback beginning.
  • Delay the power off command to the receiver (to allow for pausing music without shutting down).

Platform: Raspberry Pi; tested on 2 and Zero W. It should be platform agnostic though.

Tested with an Onkyo CR-N755 receiver, but should be fine with any receiver that can use the Onkyo remote app.

Installable through volumio plugins menu, or see Github for manual installation.

Author: Orderoftheflame

Status: stable

Github project : https://github.com/orderoftheflame/volu ... yo_control
Last edited by orderoftheflame on Fri Jun 22 2018 12:10, edited 6 times in total.
Random avatar
orderoftheflame
Sunday DIYer
Sunday DIYer
 
Posts: 27
Joined: Tue May 16 2017 06:41
Location: Newbury, UK

Ads helps Volumio remain Free and Open Source. Please consider donating to help us continue to serve you.


[PLUGIN] Onkyo Controller

Postby orderoftheflame » Wed May 23 2018 11:57

Just some information for anyone interested.

I started this plugin ages ago when Spotify support was dropped from my Onkyo amp.

I wanted to keep using my amp and spotify, so I got a Raspberry Pi Zero W and IQaudio DAC, and installed volumio and volspotconnect2. This worked perfectly, but I now had to use a variety of apps to turn on the amp and control the music. The idea behind this was to automate the control of the amp, based on the change of state within volumio.

I recently went back to working on it and got it stable with all the base features I wanted from it. So I figured I'd share it here for anyone else with an Onkyo Amp to use. There are some other features I may look to add in the future, such as automatically switching to the correct input channel, but at the moment it's not something I need personally.

I've created a pull request for the main plugin repo, so hopefully anyone else that might find it useful can use it. :)

https://github.com/volumio/volumio-plugins/pull/214

This is my first plugin, so I'm more than happy with any feedback. :)
Last edited by orderoftheflame on Thu May 24 2018 14:10, edited 2 times in total.
Random avatar
orderoftheflame
Sunday DIYer
Sunday DIYer
 
Posts: 27
Joined: Tue May 16 2017 06:41
Location: Newbury, UK


[PLUGIN] Onkyo Controller

Postby chsims1 » Thu May 24 2018 09:25

Well done for the plugin. I've added it to the list volumio-plugins-collection-t6251.html.

Your link to the zip file wants altering though ... it gives a 404 error.
New to Volumio? Please read the Quick Start Guide to get your system up and running :). FAQs? Docs?
User avatar
chsims1
Moderator
 
Posts: 1806
Joined: Sat Aug 02 2014 10:44
Location: East Yorkshire, UK


[PLUGIN] Onkyo Controller

Postby orderoftheflame » Thu May 24 2018 13:04

chsims1 wrote:Well done for the plugin. I've added it to the list volumio-plugins-collection-t6251.html.

Your link to the zip file wants altering though ... it gives a 404 error.


Thanks! :) I missed that the zip has been removed now.

I've removed the link as it's installable through the UI since being merged in. I'll update my readme for anyone that wants to install from source to allow that.
Random avatar
orderoftheflame
Sunday DIYer
Sunday DIYer
 
Posts: 27
Joined: Tue May 16 2017 06:41
Location: Newbury, UK


[PLUGIN] Onkyo Controller

Postby Saiyato » Thu May 24 2018 14:29

Unfortunately my Onkyo is too old, but nice work! ;)

Am I correct in saying that you're not installing any packages? If so, you might want to comment out the apt-get update/install part in install.sh, since it's not doing anything. This will speed up installation.
Just.Love.Music.
User avatar
Saiyato
Golden Ear
Golden Ear
 
Posts: 575
Joined: Wed Dec 23 2015 07:58
Location: Woudenberg, Netherlands


[PLUGIN] Onkyo Controller

Postby orderoftheflame » Fri May 25 2018 08:53

Saiyato wrote:Unfortunately my Onkyo is too old, but nice work! ;)

Am I correct in saying that you're not installing any packages? If so, you might want to comment out the apt-get update/install part in install.sh, since it's not doing anything. This will speed up installation.


That's a great point. Thanks very much for the advice. :)

I've noticed a few things I want to clean up since my pull request was accepted (mostly in documentation). So I'm going to tidy all of that up before submitting it again.
Random avatar
orderoftheflame
Sunday DIYer
Sunday DIYer
 
Posts: 27
Joined: Tue May 16 2017 06:41
Location: Newbury, UK


[PLUGIN] Onkyo Controller

Postby SonosKiller » Fri May 25 2018 17:01

Works fine with mine TX-NR676E, would be a nice feature if you can control default source, now it starts with the last used source
Random avatar
SonosKiller
Objectivist
Objectivist
 
Posts: 242
Joined: Sun Jun 26 2016 11:41


[PLUGIN] Onkyo Controller

Postby orderoftheflame » Mon Jun 11 2018 10:29

SonosKiller wrote:Works fine with mine TX-NR676E, would be a nice feature if you can control default source, now it starts with the last used source


Thanks for testing. :)

Setting the input source is definitely next on my list of things to do. Unfortunately my development time is a bit sparse at the moment. I will be looking into it when I get a chance though.
Random avatar
orderoftheflame
Sunday DIYer
Sunday DIYer
 
Posts: 27
Joined: Tue May 16 2017 06:41
Location: Newbury, UK


[PLUGIN] Onkyo Controller

Postby orderoftheflame » Tue Jun 12 2018 21:17

SonosKiller wrote:Works fine with mine TX-NR676E, would be a nice feature if you can control default source, now it starts with the last used source


I found a bit of time this evening to take a look at this, and it's come together reasonably easily. You can now pick from a list of sources in settings and it'll set the receiver to it at the same time it sets the volume.

Unfortunately, the list of available channels isn't specific to the receiver it's connected to annoyingly, it's a list of all the channels that the eISCP library that I'm using is aware of, which I'm not sure is up to date. I've had to fork the library to add in the channels on my receiver manually. Hopefully most of the ones that people would use are listed though, but at least it is possible to add new ones.

If you wanted to try it out, there's instructions for installing manually on the github page linked in the first post of this thread.

Or, I've created a pull request for the main plugins repository, and hopefully it'll be accepted soon. :)

https://github.com/volumio/volumio-plugins/pull/224
Random avatar
orderoftheflame
Sunday DIYer
Sunday DIYer
 
Posts: 27
Joined: Tue May 16 2017 06:41
Location: Newbury, UK


[PLUGIN] Onkyo Controller

Postby orderoftheflame » Thu Jun 21 2018 06:55

orderoftheflame wrote:
SonosKiller wrote:Works fine with mine TX-NR676E, would be a nice feature if you can control default source, now it starts with the last used source


I found a bit of time this evening to take a look at this, and it's come together reasonably easily. You can now pick from a list of sources in settings and it'll set the receiver to it at the same time it sets the volume.

Unfortunately, the list of available channels isn't specific to the receiver it's connected to annoyingly, it's a list of all the channels that the eISCP library that I'm using is aware of, which I'm not sure is up to date. I've had to fork the library to add in the channels on my receiver manually. Hopefully most of the ones that people would use are listed though, but at least it is possible to add new ones.

If you wanted to try it out, there's instructions for installing manually on the github page linked in the first post of this thread.

Or, I've created a pull request for the main plugins repository, and hopefully it'll be accepted soon. :)

https://github.com/volumio/volumio-plugins/pull/224


The pull request was accepted. So this should be available without manually installing through SSH now. :)
Random avatar
orderoftheflame
Sunday DIYer
Sunday DIYer
 
Posts: 27
Joined: Tue May 16 2017 06:41
Location: Newbury, UK

Next

Return to Development talks

Who is online

Users browsing this forum: No registered users and 0 guests