This page last changed on Jun 24, 2015 by .matt..

I have been using OR to control my home cinema setup pretty succesfully for a while. Most things are controlled just by sending individual button press commands over TCP.

For Kodi I have been using jsonrpc commands as described:

Here: http://kodi.wiki/view/JSON-RPC_API

Here: http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+Control+XBMC

Full list of commands here: http://kodi.wiki/view/JSON-RPC_API/v6

This works ok but the user interface is not great. One of the main problems is that long pressing on the navigation arrows does not produce rapid, smooth scrolling. In fact it is faster to repeatedly tap the button. However, when I repeatedly tap the button (perhaps I miss occasionally) this frequently causes the android app to crash.

I think I am right in saying that jsonrpc provides no means of long pressing for navigation in Kodi. An alternative would be to use Kodi's eventserver.

Details here: http://kodi.wiki/view/EventServer

Example python library here: https://github.com/xbmc/xbmc/blob/master/tools/EventClients/lib/python/xbmcclient.py

If I understand the code correctly this allows for button_down and button_up commands which would make the user interface much better. This must be the implementation that is used in many of the Kodi remote apps available in the app store as they all provide decent navigation.

Unfortunately the event server requires regular pings to keep the connection open, handshake packets etc. In short it is far more complicated than simply sending single commands.

The question is; is it possible to implement this type of code into openremote?

I have read on this forum that there were previous efforts made in this direction. Is this still ongoing or has it been abandoned? I'd like to encourage further effort on this as I'm sure there are many other instances where this type of user interaction could be beneficial - i.e. for volume controls etc.

Hi

I'd second this function request as the Velbus protocol also has the functionality for Long_Press & Release functions.

Or, Press & Release.

Adding this function would give nice dimming results as well as momentary relay control.

Cheers
Stuart

Posted by mdar at Jul 10, 2015 15:04
Document generated by Confluence on Jun 05, 2016 09:30