Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ess-public-screens
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel D´Costa
ess-public-screens
Commits
5df724bc
Commit
5df724bc
authored
3 years ago
by
Emanuele Laface
Browse files
Options
Downloads
Patches
Plain Diff
Fix RFQ when off
parent
e3cbb56d
No related branches found
Branches containing commit
Tags
2.3.14
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
WebSites/pos/dashboard.json
+2
-2
2 additions, 2 deletions
WebSites/pos/dashboard.json
with
2 additions
and
2 deletions
WebSites/pos/dashboard.json
+
2
−
2
View file @
5df724bc
...
...
@@ -53,7 +53,7 @@
{
"type"
:
"indicator"
,
"settings"
:
{
"value"
:
"timelength = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-EVR-101:RFSyncWdt-SP
\"
][
\"
value
\"
]/1000;
\n
pwxdata = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:Dwn6-XAxis.[0:100:-1]
\"
][
\"
value
\"
];
\n
pwydata = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1]
\"
][
\"
value
\"
];
\n\n
power = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:AI2-SMonAvg-Mag
\"
][
\"
value
\"
]-datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:AI3-SMonAvg-Mag
\"
][
\"
value
\"
]+datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:AI4-SMonAvg-Mag
\"
][
\"
value
\"
]-datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:AI5-SMonAvg-Mag
\"
][
\"
value
\"
];
\n\n
pwdata = 0;
\n
counts = 0;
\n\n
for (i=0; i < pwxdata.length; i++) {
\n
if (pwxdata[i] > timelength) {
\n
break;
\n
}
\n\t
pwdata += pwydata[i];
\n
counts += 1;
\n
}
\n\n
if (counts == 0) {
\n
return 0;
\n
}
\n\n
if (pwdata/counts < 3) {
\n
return 0;
\n
}
\n\n
return 1;"
,
"value"
:
"timelength = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-EVR-101:RFSyncWdt-SP
\"
][
\"
value
\"
]/1000;
\n
pwxdata = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:Dwn6-XAxis.[0:100:-1]
\"
][
\"
value
\"
];
\n
pwydata = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1]
\"
][
\"
value
\"
];
\n\n
power = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:AI2-SMonAvg-Mag
\"
][
\"
value
\"
]-datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:AI3-SMonAvg-Mag
\"
][
\"
value
\"
]+datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:AI4-SMonAvg-Mag
\"
][
\"
value
\"
]-datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:AI5-SMonAvg-Mag
\"
][
\"
value
\"
];
\n\n
pwdata = 0;
\n
counts = 0;
\n\
n
timestamp = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1]
\"
][
\"
timestamp
\"
];
\n
now = Math.floor((new Date()).getTime() / 1000);
\n
enable = 1;
\n
if (now - timestamp > 0) {
\n
enable = 0;
\n
}
\n\
n
for (i=0; i < pwxdata.length; i++) {
\n
if (pwxdata[i] > timelength) {
\n
break;
\n
}
\n\t
pwdata +=
enable*
pwydata[i];
\n
counts += 1;
\n
}
\n\n
if (counts == 0) {
\n
return 0;
\n
}
\n\n
if (pwdata/counts < 3) {
\n
return 0;
\n
}
\n\n
return 1;"
,
"on_text"
:
"RFQ On"
,
"off_text"
:
"RFQ Off"
}
...
...
@@ -74,7 +74,7 @@
"plot_type"
:
"area"
,
"legend"
:
true
,
"height"
:
4
,
"value"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
timelength = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-EVR-101:RFSyncWdt-SP
\"
][
\"
value
\"
]/1000*2;
\n\n
pwxdata = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:Dwn6-XAxis.[0:100:-1]
\"
][
\"
value
\"
];
\n
pwydata = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1]
\"
][
\"
value
\"
];
\n\n
pwdata = [];
\n\n
for (i=0; i < pwxdata.length; i++) {
\n
if (pwxdata[i] > timelength) {
\n
break;
\n
}
\n\t
pwdata.push([pwxdata[i], pwydata[i]]);
\n
}
\n\n
data = [{label: 'Power applied', data: pwdata, color:
\"
green
\"
}];
\n\n
return data;"
,
"value"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
timelength = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-EVR-101:RFSyncWdt-SP
\"
][
\"
value
\"
]/1000*2;
\n\n
pwxdata = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:Dwn6-XAxis.[0:100:-1]
\"
][
\"
value
\"
];
\n
pwydata = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1]
\"
][
\"
value
\"
];
\n\
n
timestamp = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[0:100:-1]
\"
][
\"
timestamp
\"
];
\n
now = Math.floor((new Date()).getTime() / 1000);
\n
enable = 1;
\n
if (now - timestamp > 0) {
\n
enable = 0;
\n
}
\n\
n
pwdata = [];
\n\n
for (i=0; i < pwxdata.length; i++) {
\n
if (pwxdata[i] > timelength) {
\n
break;
\n
}
\n\t
pwdata.push([pwxdata[i],
enable*
pwydata[i]]);
\n
}
\n\n
data = [{label: 'Power applied', data: pwdata, color:
\"
green
\"
}];
\n\n
return data;"
,
"xticks"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
];
\n\n
var cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');
\n\n
timelength = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-EVR-101:RFSyncWdt-SP
\"
][
\"
value
\"
]/1000*2;
\n
xdata = datasources[
\"
POS
\"
][
\"
RFQ-010:RFS-DIG-101:Dwn6-XAxis.[0:100:-1]
\"
][
\"
value
\"
];
\n\n
if (timelength > xdata[xdata.length-1]) {
\n
timelength = xdata[xdata.length-1];
\n
}
\n\n
xtick = [];
\n
size = 10;
\n
if (cols == 1) {
\n
size = 4;
\n
}
\n\n
for (i = 0; i < (size+1); i += 1) {
\n
xtick.push([timelength*i/size, (timelength*i/size).toFixed(3).toString()]);
\n
}
\n
xtick[size/2][1] = xtick[size/2][1]+
\"
<br>t [ms]
\"
;
\n\n
return xtick;
\n\n
"
,
"yticks"
:
"datasources[
\"
Clock
\"
][
\"
numeric_value
\"
]
\n\n
if (typeof axes === 'undefined') {
\n
return;
\n
}
\n\n
ytick = [];
\n
for (i = 0; i < axes.yaxis.ticks.length-1; i += 1) {
\n\t
ytick.push([axes.yaxis.ticks[i][
\"
v
\"
], axes.yaxis.ticks[i][
\"
label
\"
]]);
\n
}
\n\n
ytick.push([axes.yaxis.ticks[axes.yaxis.ticks.length-1][
\"
v
\"
],
\"
P [kW]
\"
]);
\n
return ytick;"
,
"zoom"
:
"xy"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment