gtld2-diag-scripts/solid/master_script.js

53 lines
1.6 KiB
JavaScript
Raw Normal View History

2023-11-15 16:06:15 +03:00
"use strict";
//gtl.results = { "Diagnostic results": gtl.options };
gtl.results = {
"Results 0": gtl.options['Sensor1'][0].resultJSON,
"Results 1": gtl.options['Sensor1'][1].resultJSON,
"Results 2": gtl.options['Sensor1'][2].resultJSON
}; //+
//gtl.results = { "Diagnostic results": gtl.options['NKD'][0].resultJSON.RMS }; //+
//gtl.results = { "Diagnostic results": gtld.node.options }; //+
//gtl.results = { "Diagnostic results": gtld.node.getDiagnosticResult() }; //+
//gtl.results = { "Diagnostic results": gtld.node.name }; //+
//gtl.results = { "Diagnostic results": gtld.node.uuid.toString() }; //+
//gtl.results = { "Diagnostic results": gtld.node.parent }; //+
/*gtl.results = {
"Diagnostic results": gtld.storage.selectLastPointMasterValue(
{
count: 1,
pointUUID: gtld.node.uuid.toString(),
objectUUID: gtld.node.parent.uuid.toString(),
tag: "0",
masterValueAddress: gtld.node.options["masterValueAddress"]
})
};*/
/*gtl.results = {
"Diagnostic results": gtld.storage.selectLastObjectResults(
{
count: 3,
//pointUUID: gtld.node.uuid.toString(),
objectUUID: gtld.node.uuid.toString(),
tag: "0"
})
};*/
/*gtl.results = {
"Diagnostic results": gtld.storage.selectLastPointMasterValue(
{
count: 3,
pointUUID: gtld.node.uuid.toString(),
objectUUID: gtld.node.parent.uuid.toString(),
tag: "0",
masterValueAddress: gtld.node.options["RMS"]
})
};*/