Hi guys .. 

<br>

Big props for a fantastic program! &nbsp;I'm investigating using the remote API for my own purposes -- basically trying to use Bome's Midi Translator to convert Ableton Midi messages into strings for the remote API (possibly through a batch file with a bunch of parameters).

<br>

I've got some of the basics figured out like '/api/controller/live/next' but have been trying to figure out how to use '/api/controller/live/set' or 'api/service/set'. &nbsp;They seem to want a query string (ie. something like '/api/controller/live/set?data=x' where 'x' is the number of the slide/song that you're trying to set) but I can't seem to get the syntax right.

<br>Can anyone point me in the right direction on how to use this part of the API?

<br>

I'll happily share my hack and slash MIDI control of OpenLP if/once I get it up and running.

<br>

Thanks!

<br>

Shaun

Thanks, Tgc!

<br>

I was just digging through the Jquery files, so I didn't see the descriptions. &nbsp;Appreciate the link. &nbsp;Will dig further!

<br>

Shaun

<font face="Arial, Verdana" size="2">Hi TGC et al ..&nbsp;</font>

<br>

Unfortunately my minimal python/js skill have me a bit stumped. &nbsp;I'm trying to figure out how to properly lay out the url request to set, for example a slide number. &nbsp;I've tried something like:

<br>

<font face="Arial, Verdana" size="2">http://[192.168.1.102:4316]/api/controller/live/set?data={request:{id:5}}</font><br>

<font face="Arial, Verdana" size="2"><br></font>

<font face="Arial, Verdana" size="2">as it seems like it is looking for a query string and then the json data. &nbsp;I've also tried URLencoding the Json request but haven't had any luck.</font>

<font face="Arial, Verdana" size="2"><br></font>

<font face="Arial, Verdana" size="2">Does anyone know how to properly structure the 'set' urls?</font>

<font face="Arial, Verdana" size="2"><br>Thanks!</font>

<font face="Arial, Verdana" size="2"><br></font>

<font face="Arial, Verdana" size="2">Shaun</font>

<font face="Arial, Verdana" size="2">Hi Shaun</font>

<br>

You have to url-encode the json, so {"request": {"id": 5}}&nbsp;becomes:

<font face="Arial, Verdana" size="2">%7B%22request%22%3A%20%7B%22id%22%3A%205%7D%7D</font><br>

<br>

Thanks again, TGC! ..&nbsp;

<br>

So for anyone who's curious about the same you can jump to a slide # or song # with the following url:

<br>

http://[your-remote-url]:[port]/api/controller/live/set?data=[request string]

<br>

where the request string is a urlencoded&nbsp;json string like :&nbsp;{"request": {"id": 8}}

<br>

which, as TGC said above would be urlencoded to :&nbsp;%7B%22request%22%3A%20%7B%22id%22%3A%208%7D%7D

<br>

I'm going to set up a php script to connect Ableton &gt; Bome's Midi Translator &gt; PHP (CLI on Windows) &gt; OpenLP so I can run the lot on one laptop. &nbsp;The 'easy' option would be to just have a 2nd computer running Bome's and OpenLP only so I could use the Midi to Keystroke functionality of Bome's but I'm a glutton for punishment ;).

<br>

Will update once I have a working script in place in case its useful for anyone else. &nbsp;Thanks again for your help, TGC!

<br>

Shaun

13 days later

Why not use Python instead of PHP? It's more suited to the task, and it's a lot more powerful than PHP.<br>

Just down to my lack of Python knowledge .. PHP no prob ;). &nbsp;

<br>

I've broken down and resorted to a 2nd lappy for the moment, but looking forward to running it all on one system when I have the time.

<br>

Thanks

<br>Shaun

4 days later

Shaun, that was my excuse for a long time. Once I started, I realised it was a really terrible excuse ;-)<br>

6 years later