Skip to main content

Variable_list

To request the list of custom variables, send any value to the variable_list endpoint

{
"variable_list":true
}

The return value will be the variables currently set up:

{
"variable_list":{
"name":{
"target":"echo -n test", //optional command or url to execute
"interval":9, //optional how often the command/url should be re-evaluated in seconds
"waitTime":1, //optional maximum time to wait for evaluation of the command/url to complete in seconds
"value":"value" //optional starting value of the custom variable
},
"name2":{
"value":"value"
},
"etc":{
"target":"http://example.com",
"interval":3,
"waitTime":1,
"value":"value"
}
}
}