Portal CEC Integration

Got a feature request? Great! Post your ideas here!
pafer
Posts: 60
youtube meble na wymiar Warszawa
Joined: Tue Apr 28, 2015 6:13 am

Portal CEC Integration

Post by pafer »

I use my AS5002T all the time as a media centre (making good use of Kodi and the HDMI output).

I have a Pulse Eight CEC adapter which works very well with the setup (notwithstanding when updates mess it up).

The one thing that's missing is the ability to switch Kodi on from the Portal screen using my TV remote.


Asustor, can you please integrate CEC functionality within Portal?


Thanks.
Shawn.S@AST
Posts: 181
Joined: Fri May 25, 2012 3:10 pm

Re: Portal CEC Integration

Post by Shawn.S@AST »

Hi Pafer,

I have already feedback your idea to our product development team! Let us see if the possibility and the resource available are there!
Shawn.S@AST
Posts: 181
Joined: Fri May 25, 2012 3:10 pm

Re: Portal CEC Integration

Post by Shawn.S@AST »

Hi Pafer,

I have got initial feedback from product development team. The CEC control of Portal is doable but it will take a lot of efforts. Also, the CEC control you need should be more than just switch Kodi on, right? If CEC can control Portal left and right, enter, then the same should work for the other apps in the Portal such as Chrome Browser, Youtube etc..It is a even bigger task. As currently, we are working on the Media Index for Looksgood, Kodi 16, Chrome video playback etc., we do not have the resources to do it yet. Please kindly understand.

One workaround is that can you set the default app of Portal to be Kodi first? You can set it in ADM Asustor Portal/General Setting/Default App or directly in the TV Asustor Portal setting.
pafer
Posts: 60
Joined: Tue Apr 28, 2015 6:13 am

Re: Portal CEC Integration

Post by pafer »

Hi Shawn,

Thanks for your response - I do understand.
If it's something they can look at in the future, that would be great.

By the way, thanks for the workaround suggestion; I already do this, but there are times that Kodi is switched off whilst the server is still running, so it needs to be switched back on again manually which is where my suggestion has come from.
User avatar
mafredri
Posts: 371
Joined: Sat Mar 22, 2014 8:41 am

Re: Portal CEC Integration

Post by mafredri »

pafer, if you're interested in doing this yourself you can have a look at my old CEC scripts (I used to use these on an AS-6 running XBMC, the daemon script was capable of controlling both Portal and XBMC (Asustor didn't compile XBMC with CEC support back in the day). Now to make any of this work properly with your current setup you would need to:
  • Compile the python-cec module for the current asustor python (I can do this for you if you're interested)
  • Create a python script that listens to cec commands and sends keyboard commands (this can be based of my daemon script)
  • Start the python script when Portal start
  • Quit the python script when portal exits (to release CEC for Kodi to take control)
Hi, I'm new here. Looking to be active in the community and help with development :).
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)
pafer
Posts: 60
Joined: Tue Apr 28, 2015 6:13 am

Re: Portal CEC Integration

Post by pafer »

mafredri wrote:pafer, if you're interested in doing this yourself...
mafredri, thanks!

I am very much interested in making this work.
I must admit to not knowing much about doing this stuff myself because I haven't really had the need to in the past, but I am more than willing to look into it and give it a go.
I've been meaning to get involved and build my understanding anyway, so this may be a good opportunity to do that.

Thanks for the tips to get me going.

If you wouldn't mind compiling the python-cec module for the current asustor python, that would be much appreciated.
In the meantime, I'll look into making the rest happen.

Thanks!
User avatar
mafredri
Posts: 371
Joined: Sat Mar 22, 2014 8:41 am

Re: Portal CEC Integration

Post by mafredri »

pafer wrote:
mafredri wrote:pafer, if you're interested in doing this yourself...
mafredri, thanks!

I am very much interested in making this work.
I must admit to not knowing much about doing this stuff myself because I haven't really had the need to in the past, but I am more than willing to look into it and give it a go.
I've been meaning to get involved and build my understanding anyway, so this may be a good opportunity to do that.

Thanks for the tips to get me going.

If you wouldn't mind compiling the python-cec module for the current asustor python, that would be much appreciated.
In the meantime, I'll look into making the rest happen.

Thanks!
Awesome! And actually, it seems that libcec now-a-days includes python bindings, so I'll see if I get those working for the Asustor Python. That way python-cec (which hasn't been updated in a long time) wouldn't be needed. I'll get back to you on this.
Hi, I'm new here. Looking to be active in the community and help with development :).
Storage: AS-604T with 3GB RAM (Kingston KVR1333D3S8S9/2G)