Using Macro to trigger URL

This is a place for people to chare the custom macros they have written.

Moderator: Moderators

mynameisyz
Posts: 3
Joined: 07 Aug 2019, 16:30

Using Macro to trigger URL

Postby mynameisyz » 07 Aug 2019, 16:44

This one is for the masters ...

Currently, I have a sapphire touch on Titan 11 and an networked video board that has exposed APIs (similar to Avolites Web API). The video board API can be simply triggered by sending a HTTP GET request to the IP address.

It will be something like this: sending a HTTP GET to http://192.168.1.100:5000/API/myfunction, where 192.168.1.100 is the IP address of the video board in the LAN.

So my plan is, connect both Sapphire and the video board using a router, and using a custom coded macro to trigger the URL.

Question: is this possible? Is there a particular macro function that lets me send a generic HTTP GET request to the specified URL?

For those who like a challenge!

Cheers!
icke_siegen
Posts: 1083
Joined: 02 Jul 2010, 10:29
Location: Siegen, Germany
Contact:

Re: Using Macro to trigger URL

Postby icke_siegen » 08 Aug 2019, 11:02

Hi,

no, as far as I can see this isn't possible with macros or the web API - the API is a server which reacts to commands, and very rarely sends a reply - but it will never issue a HTTP GET request itself. I fear you may need to program something for this yourself, basically an Artnet or sACN receiver which upon special levels issues this request.

I am rather sure you could do something like this with Ai (it would involve lots of Salvation patching). But this would be kind of an overkill for such a thing I'd say.

Out of interest, what kind of video board are you talking about?

Best, Sebastian

Who is online

Users browsing this forum: No registered users and 3 guests