Remote API/Calls

I've been using an app on my Android called unified remote (https://www.unifiedremote.com/).  It has the ability to create custom remotes for Windows, Mac and Linux computers.  One of the things I love with it is that I can create my own custom Widgets with controls from multiple things.  I'd like to build an OpenLP remote with it, but not sure where to find a reference to how to do so.   The Android app is great, but I'd like to create a more customized one that I can add a few other windows buttons to (volume controls, etc).  

Comments

  • OpenLP doesn't currently expose a way to control the volume remotely. Also, from an initial poke at UnifiedRemote for VLC, it just focuses the VLC window and presses keys and shortcuts -- hardly any real integration happening there.
  • edited January 22
    I know OPenLP doesn't allow that, but Unified Remote does.  And it can handle more than key presses and short cuts, among the things it can handle are HTTP requests, which I presumed was how OpenLP's remotes communicate with the program.  What I'm hoping to do is create a server in Unifed Remote to work with OpenLP by passing the commands to OpenLP, so I can create a custom remote on my control android that does multiple things.  Right now I have one that works, but only if OpenLP is the active window (using key press sends).  If I could use HTTP requests instead, then it wouldn't have to be the active window.  

  • If you have the web remote enabled you can control all sorts such as:
    /api/display/desktop;; (desktop/blank/show)
    /api/service/previous
    /api/service/next
    /api/controller/live/previous
    /api/controller/live/next

    From an old scirpt you can see here how I set a particular page or service item:

    set_track() {
    curl -s --get "http://openlp:password@host:4316/api/service/set" --data 'data={"request":{"id":'$(($1-1))'}}'
    }

    set_page() {
    echo SET $1
    curl -s --get "http://openlp:password@host:4316/api/controller/live/set" --data 'data={"request":{"id":'$(($1-1))'}}'
    }


    If you run Node-Red I can paste some NR nodes that we use.







Sign In or Register to comment.