forked from LightsOnHudson/FPP-Plugin-Matrix-Message
-
Notifications
You must be signed in to change notification settings - Fork 2
/
MatrixFunctions.inc.php
executable file
·49 lines (35 loc) · 1.19 KB
/
MatrixFunctions.inc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
include_once dirname(__FILE__) . "/../fpp-matrixtools/scripts/matrixtools.php.inc";
//display the various overlay modes for matrix tools
function clearMatrix($matrix="", $host="") {
global $pluginDirectory, $fpp_matrixtools_Plugin, $fpp_matrixtools_Plugin_Script,$Matrix,$settings;;
if ($matrix == "") {
$matrix = $Matrix;
}
ClearModel($host, $Matrix);
}
function enableMatrixToolOutput($matrix="", $host="") {
global $DEBUG, $fpp_version, $settings, $pluginDirectory,$fpp_matrixtools_Plugin, $fpp_matrixtools_Plugin_Script,$Matrix, $overlayMode;
if ($overlayMode == "") {
$overlayMode = "1";
}
if ($matrix =="" ) {
$matrix = $Matrix;
}
SetModelState($host, $matrix, $overlayMode);
}
function disableMatrixToolOutput($matrix="", $host="") {
global $DEBUG, $fpp_version, $settings,$pluginDirectory,$fpp_matrixtools_Plugin, $fpp_matrixtools_Plugin_Script,$Matrix;
if($matrix =="" ) {
$matrix = $Matrix;
}
SetModelState($host, $matrix, 0);
}
function GetOverlayList() {
$modelsList = GetModels("");
for($i=0;$i<=count($modelsList)-1;$i++) {
$OverlayModels[trim($modelsList[$i]["Name"])]=trim($modelsList[$i]["Name"]);
}
return $OverlayModels;
}
?>