@nathan the ogscript.post calls look like this (here's a sample function that gets the transport state of the KiPro):
function KiPro_GetTransportState(KiPro)
{
var address = ogscript.getPrivateString('hosts', KiPro + '.address');
var KiProURL = '';
var KiProParameter = '';
var KiProParameterValue = '';
var status = ''; // what we will get from the KiPro
var returnStatus = null; // what we return to the calling function
KiProURL = '/config?action=get&paramid=';
KiProParameter = 'eParamID_TransportState';
status = ogscript.post('http://' + address + KiProURL + KiProParameter, null);
var parsedJSON = JSON.parse(status);
returnStatus = parsedJSON.value_name;
return returnStatus;
}
I parse the JSON that the KiPro returns to figure out the value needed. Biggest thing to note is that this code does lock up the panel while waiting on the response, but in my case, the response is rather instantenous, so that wasn't really a concern. You could do asyncpost and parse the data in a callback function if you wanted to.
Hope this helps!
Joseph
#DashBoard