User Tools

Site Tools


oas:api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
oas:api [11.02.2019 12:54] adminoas:api [23.04.2020 22:33] admin
Line 1: Line 1:
-#### OnAirScreen API / UDP Commands +#### OnAirScreen API / UDP / HTTP Commands 
-OnAirScreen can receive API commands via UDP port 3310\\ +OnAirScreen can receive API commands via UDP default port 3310 or HTTP default port 8010\\ 
-Here is an easy example on how to control a local OnAirScreen instance on a linux system.+Here is an easy UDP example on how to control a local OnAirScreen instance on a linux system.
  
 Set LED1 Text to "FOO" and switch LED1 on: Set LED1 Text to "FOO" and switch LED1 on:
Line 14: Line 14:
 oas_send.exe --ip 192.168.23.5 "LED1:ON" oas_send.exe --ip 192.168.23.5 "LED1:ON"
 ``` ```
 +
 +##### HTTP API
 +You can also pass commands to OAS via HTTP. Strings need to be urlencoded.
 +
 +```
 +curl http://127.0.0.1:8010/?cmd=LED1:ON
 +curl http://127.0.0.1:8010/?cmd=NOW:You%20are%20listening%20to%20Queen%20-%20Show%20must%20go%20on
 +```
 +
  
 ##### API Commands ##### API Commands
oas/api.txt · Last modified: 30.01.2023 17:41 by admin