Set variables – syntax and example – Epiphan Pearl Mini Live Video Production System User Manual
Page 400

Pearl Mini User Guide
Controlling Pearl Mini using
HTTP/HTTPS commands
channels on Pearl Mini.
l
System variables are considered volatile data and are erased when Pearl Mini reboots.
Set variables – syntax and example
A set command saves a value to a variable, where <
address
> is the IP address of Pearl Mini,
name
is the
unique name for each variable, and
value
is the text/character content stored in each variable.
You can set multiple variables at the same time by separating each variable with an "&".
To "set" variables, use the following syntax:
http://<
address
>/admin/set_variables.cgi?
name1
=
value1
[&
nameN
=
valueN
]
For values with spaces, encode space as %20. (i.e.: set_variables.cgi?name1=640%20x%20480)
To erase a previously set variable, simply set the variable's name with an empty space.
Example:
"http://192.168.0.129/admin/set_
variables.cgi?gpsvar1=N103%2068201%20W765%2029712&gpsvar2=S490%2018731%
20E756%2019890&gpsvar3=N123%2046891%20W345%2065431&gpsvar4=S767%2033410
%20E770%2004513"
sets:
"gpsvar1" to "N103 68201 W765 29712"
"gpsvar2" to "S490 18731 E756 19890"
"gpsvar3" to "N123 46891 W345 65431"
"gpsvar4" to "S767 33410 E770 04513"
Get variables – syntax and example
A get command returns the value of a variable called
name
. You can return multiple variables at the same time
by separating each variable with an "&".
To "get" a variable or a list of specific variablesx:
http://<
address
>/admin/get_variables.cgi?
name1
[&
nameN
]
Example
: "http://192.168.0.129/admin/get_variables.cgi?gpsvar1"
returns:
"gpsvar1=N103 68201 W765 29712"
389