Using System.Exec in remote.xml
#1
Using LibreELEC 7.0.2, which has kodi 16.1.

I want to use my kodi remote to control my Marantz AVR volume. I can turn the volume up by doing this from command line (from the LE box or my laptop):

Code:
curl http://192.168.20.36/MainZone/index.put.asp?cmd0=PutMasterVolumeBtn%2F%3E

So I put a line in ~/.kodi/userdata/keymaps/remote.xml like:

Code:
<volumeplus>System.Exec("/usr/bin/curl 'http://192.168.20.36/MainZone/index.put.asp?cmd0=PutMasterVolumeBtn%2F%3E'"</volumeplus>

I have tried various quote mark variations.

When I start with a debug log I get this line in kodi.log:

Code:
16:58:47 T:139734793168960   ERROR: Keymapping error: no such action 'system.exec("/usr/bin/curl 'http://192.168.20.36/mainzone/index.put.asp?cmd0=putmastervolumebtn%2f%3e'"' defined

Sorry pastebinit is giving an error, I'll post a full log later.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#2
Ahh progress, sorta

I noticed the lack of a closing ) in the remote.xml line. Fixed that and the file now loads, now kodi crashes and restarts when I hit vol up on the remote. (Just kodi not the whole OS).
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply

Logout Mark Read Team Forum Stats Members Help
Using System.Exec in remote.xml0