(2015-04-22 13:06)lubitsch_fan Wrote: Hello peprasetya,
with the http api disappearing from the recent releases of XBMC/Kodi, the wTouch web addon was not working lately.
I did a small update to it, so it can work exclusively with jsonrpc
Here is the changelog :
Quote:Changes to make wTouch compatible with newer versions of XBMC/Kodi, that do not support HTTP API anymore:
- changed the way actions are sent (jsonrpc input.action() instead of http sendkey)
- added the recently mandatory Content-Type header to the jsonrpc requests
- changed the soft keyboard behaviour : send the full text field when return is pressed, instead of individual keystrokes (doesn't seem possible with jsonrpc)
There is still one call left to the HTTP API (in browseLibrary() ), but everything seems to work anyway
You'll find the modified index.html on my github account :
Raw file : https://raw.githubusercontent.com/RedjV/...index.html
I changed the addon.xml and changelog.txt accordingly (made a bump to 0.4.2), and made a pull request to what
appears as the original repo on github (https://github.com/amoose/wtouch-web-xbmc) - not sure if it is managed by you.
I'm really sorry that I'm not make any update to this add-ons.
Actually I had working one with gotham, and just today make some rebranding from XBMC to Kodi.
I'm not sure if the rebranding may work as it is, as the add-ons.xml is not tested yet.
The github by amoose is not mine, but seem amoose just make a backup.
I'm just created a new repository under my account:
Then changes is about like the same as you did, change from http sendkey to json, content-type issue with new JSON, and same send full text input.
But I'm adding WebSocket too, to let it have faster communication especially on control.
Please take a look, if you interested.
Anyway in future, I may remove the browse function, as now Kodi/XBMC Gotham already support multiple webinterface addons. While primarily I made wTouch just for control, and were adding the media browse because XBMC was only support 1 addons.
Further, please expect the development much much slower if not said no progress, because right now, primarily I use Raspberry-Pi with HDMI CEC. So I even very rarely use my own wTouch to control Kodi