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 revision
Previous revision
oas:api [23.04.2020 22:33] adminoas:api [30.01.2023 17:41] (current) admin
Line 1: Line 1:
-#### OnAirScreen API / UDP / HTTP Commands+<markdown> 
 +# OnAirScreen API / UDP / HTTP Commands
 OnAirScreen can receive API commands via UDP default port 3310 or HTTP default port 8010\\ OnAirScreen can receive API commands via UDP default port 3310 or HTTP default port 8010\\
 Here is an easy UDP 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.
 +</markdown>
 +
 +<WRAP center round info 60%>
 +Replace the IP address with the IP address of your OnAirScreen. This will be shown in the first footer line of OnAirScreen after start.
 +</WRAP>
 +
 +<markdown>
  
 Set LED1 Text to "FOO" and switch LED1 on: Set LED1 Text to "FOO" and switch LED1 on:
Line 17: Line 25:
 ##### HTTP API ##### HTTP API
 You can also pass commands to OAS via HTTP. Strings need to be urlencoded. You can also pass commands to OAS via HTTP. Strings need to be urlencoded.
 +
  
 ``` ```
Line 22: Line 31:
 curl http://127.0.0.1:8010/?cmd=NOW:You%20are%20listening%20to%20Queen%20-%20Show%20must%20go%20on curl http://127.0.0.1:8010/?cmd=NOW:You%20are%20listening%20to%20Queen%20-%20Show%20must%20go%20on
 ``` ```
- 
  
 ##### API Commands ##### API Commands
 +</markdown>
 +
 | UDP Command         | Function | | UDP Command         | Function |
 | `LED1:[ON/OFF]`     | switch LED1 on/off | | `LED1:[ON/OFF]`     | switch LED1 on/off |
Line 42: Line 52:
 | `CMD:QUIT`                    | quit OnAirScreen instance | | `CMD:QUIT`                    | quit OnAirScreen instance |
  
 +<markdown>
 ##### Remote Configuration Commands ##### Remote Configuration Commands
-`CONF:General:stationname=TEXT`\\ +`CONF:General:stationname=TEXT`   
-`CONF:General:slogan=TEXT`\\ +`CONF:General:slogan=TEXT`   
-`CONF:General:stationcolor=COLOR`\\ +`CONF:General:stationcolor=COLOR`   
-`CONF:General:slogancolor=COLOR`\\ +`CONF:General:slogancolor=COLOR`   
-`CONF:LED[1-4]:used=[False|True]`\\ +`CONF:General:replacenow=[False|True]`   
-`CONF:LED[1-4]:text=TEXT`\\ +`CONF:General:replacenowtext=TEXT`   
-`CONF:LED[1-4]:activebgcolor=COLOR`\\ +`CONF:LED[1-4]:used=[False|True]`   
-`CONF:LED[1-4]:activetextcolor=COLOR`\\ +`CONF:LED[1-4]:text=TEXT`   
-`CONF:LED[1-4]:autoflash=[False|True]`\\ +`CONF:LED[1-4]:activebgcolor=COLOR`   
-`CONF:LED[1-4]:timedflash=[False|True]`\\ +`CONF:LED[1-4]:activetextcolor=COLOR`   
-`CONF:Clock:digital=[True|False]`\\ +`CONF:LED[1-4]:autoflash=[False|True]`   
-`CONF:Clock:showseconds=[True|False]`\\ +`CONF:LED[1-4]:timedflash=[False|True]`   
-`CONF:Clock:digitalhourcolor=COLOR`\\ +`CONF:Timers:TimerAIR[1-4]Enabled=[False|True]`   
-`CONF:Clock:digitalsecondcolor=COLOR`\\ +`CONF:Timers:TimerAIR[1-4]Text=TEXT`   
-`CONF:Clock:digitaldigitcolor=COLOR`\\ +`CONF:Timers:AIR[1-4]activebgcolor=COLOR`   
-`CONF:Clock:logopath=PathToLogo`\\ +`CONF:Timers:AIR[1-4]activetextcolor=COLOR`   
-`CONF:Network:udpport=PORT`\\ +`CONF:Timers:AIR[1-4]iconpath=PathToIcon`   
-`CONF:Network:tcpport=PORT`\\ +`CONF:Timers:TimerAIRMinWidth=PIXELS`   
-`CONF:CONF:APPLY=TRUE`\\+`CONF:Clock:digital=[True|False]`   
 +`CONF:Clock:showseconds=[True|False]`   
 +`CONF:Clock:secondsinoneline=[True|False]`   
 +`CONF:Clock:digitalhourcolor=COLOR`   
 +`CONF:Clock:digitalsecondcolor=COLOR`   
 +`CONF:Clock:digitaldigitcolor=COLOR`   
 +`CONF:Clock:logopath=PathToLogo`   
 +`CONF:Clock:logoUpper=[True|False]`   
 +`CONF:Network:udpport=PORT`   
 +`CONF:Network:tcpport=PORT`   
 +`CONF:CONF:APPLY=TRUE`   
 +</markdown> 
 + 
 +COLOR: can be in the form of Webcolors (#00FF00) or in hex notation (0x00FF00) or one of the SVG named colors (https://www.w3.org/TR/SVG11/types.html#ColorKeywords) 
 + 
oas/api.1587681203.txt.gz · Last modified: 23.04.2020 22:33 by admin