Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ess-public-screens
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
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
ics-software
ess-public-screens
Commits
4d93ad94
Commit
4d93ad94
authored
3 months ago
by
Emanuele Laface
Browse files
Options
Downloads
Patches
Plain Diff
levels
parent
aefbaab8
No related branches found
Branches containing commit
Tags
3.6.14
Tags containing commit
No related merge requests found
Pipeline
#207748
passed
3 months ago
Stage: check
Stage: build
Stage: release
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
WebSites/pos/dashboard-screens.json
+164
-0
164 additions, 0 deletions
WebSites/pos/dashboard-screens.json
WebSites/pos/dashboard.json
+31
-44
31 additions, 44 deletions
WebSites/pos/dashboard.json
with
195 additions
and
44 deletions
WebSites/pos/dashboard-screens.json
0 → 100644
+
164
−
0
View file @
4d93ad94
{
"version"
:
1
,
"header_image"
:
""
,
"allow_edit"
:
true
,
"plugins"
:
[],
"panes"
:
[
{
"width"
:
1
,
"row"
:
{
"1"
:
1
,
"2"
:
1
,
"3"
:
1
,
"4"
:
1
,
"5"
:
1
,
"6"
:
1
},
"col"
:
{
"1"
:
1
,
"2"
:
1
,
"3"
:
1
,
"4"
:
1
,
"5"
:
1
,
"6"
:
1
},
"col_width"
:
6
,
"widgets"
:
[
{
"type"
:
"html"
,
"settings"
:
{
"html"
:
"let clock = datasources[
\"
Clock
\"
][
\"
numeric_value
\"
]; // trick to trigger the update
\n
let cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');
\n
document.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML =
\"\"
;
\n\n
var title =
\"\"
;
\n
if (datasources[
\"
gwhealth
\"
][
\"
gwstatus
\"
] ==
\"
OK
\"
) {
\n\t
title =
\"
Public Operations Screen
\"
; // Change this title. Try not to exceed the 30 chars
\n
}
\n
if (datasources[
\"
gwhealth
\"
][
\"
gwstatus
\"
] ==
\"
KO
\"
) {
\n\t
title =
\"
Public Operations Screen [Offline]
\"
; // Change this title. Try not to exceed the 30 chars
\n
}
\n\n
let fontsize = Math.round((-0.66486486*title.length+66.67567568)*cols/4);
\n
let lmargin = Math.round((0.43918919*title.length-4.05405405)+3.75*cols*cols-34.75*cols+79.75);
\n
let width = 100-lmargin;
\n\n
var text = `<div style=
\\\"
position: relative; margin-top: -15px; text-align: left;
\\\"
>
\n\t\t\t
<div style=
\\\"
position: relative;
\\\"
>
\n\t\t\t\t
<img src=
\\\"
../img/ess-logo.svg
\\\"
title=
\\\"
Designed by Emanuele Laface with p4p and Freeboard. Graphics by Dirk Nordt.
\\\"
></img>
\n\t\t\t
</div>
\n
<div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: `+String(fontsize)+`px; color:#ffffff !important; position: absolute; left: `+String(lmargin)+`%; width: `+String(width)+`%; height: 100%; justify-content: center; display: flex; align-items: center;
\\\"
title=
\\\"
Designed by Emanuele Laface with p4p and Freeboard. Graphics by Dirk Nordt.
\\\"
>
\n\t\t\t\t
`+title+`
\n\t\t\t
</div>
\n\t\t
</div>`;
\n\n
if (cols == 1){
\n
text =
\"
<div style=
\\\"
position: static; margin-top: -15px;
\\\"
><img src=
\\\"
../img/ess-logo.svg
\\\"
title=
\\\"
Designed by Emanuele Laface with p4p and Freeboard. Graphics by Dirk Nordt.
\\\"
><div class=
\\\"
tw-value
\\\"
style=
\\\"
font-size: 30px; color:#ffffff !important; position: relative; bottom: 55px; left: 30px;
\\\"
title=
\\\"
Designed by Emanuele Laface with p4p and Freeboard. Graphics by Dirk Nordt.
\\\"
></div></img></div>
\"
;
\n
document.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = title;
\n
}
\n\n
return text;"
,
"height"
:
2
}
}
]
},
{
"title"
:
"SCL Temperature"
,
"width"
:
1
,
"row"
:
{
"1"
:
7
,
"2"
:
7
,
"3"
:
7
,
"4"
:
7
,
"5"
:
7
,
"6"
:
7
,
"7"
:
17
,
"9"
:
17
,
"11"
:
17
,
"12"
:
17
,
"14"
:
17
},
"col"
:
{
"1"
:
1
,
"2"
:
1
,
"3"
:
1
,
"4"
:
1
,
"5"
:
1
,
"6"
:
1
,
"7"
:
1
,
"9"
:
1
,
"11"
:
1
,
"12"
:
1
,
"14"
:
1
},
"col_width"
:
6
,
"widgets"
:
[
{
"type"
:
"flot_extended_plugin"
,
"settings"
:
{
"plot_type"
:
"bar"
,
"legend"
:
true
,
"height"
:
5
,
"value"
:
"let spokeTemperatures = [[1, datasources[
\"
Temperature
\"
][
\"
Spk-010Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[2, datasources[
\"
Temperature
\"
][
\"
Spk-020Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[3, datasources[
\"
Temperature
\"
][
\"
Spk-030Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[4, datasources[
\"
Temperature
\"
][
\"
Spk-040Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[5, datasources[
\"
Temperature
\"
][
\"
Spk-050Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[6, datasources[
\"
Temperature
\"
][
\"
Spk-060Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[7, datasources[
\"
Temperature
\"
][
\"
Spk-070Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[8, datasources[
\"
Temperature
\"
][
\"
Spk-080Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[9, datasources[
\"
Temperature
\"
][
\"
Spk-090Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[10, datasources[
\"
Temperature
\"
][
\"
Spk-100Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[11, datasources[
\"
Temperature
\"
][
\"
Spk-110Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[12, datasources[
\"
Temperature
\"
][
\"
Spk-120Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]],
\n
[13, datasources[
\"
Temperature
\"
][
\"
Spk-130Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
]]];
\n\n
let mediumBetaTemperatures = [[14, datasources[
\"
Temperature
\"
][
\"
MBL-010Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[15, datasources[
\"
Temperature
\"
][
\"
MBL-020Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[16, datasources[
\"
Temperature
\"
][
\"
MBL-030Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[17, datasources[
\"
Temperature
\"
][
\"
MBL-040Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[18, datasources[
\"
Temperature
\"
][
\"
MBL-050Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[19, datasources[
\"
Temperature
\"
][
\"
MBL-060Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[20, datasources[
\"
Temperature
\"
][
\"
MBL-070Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[21, datasources[
\"
Temperature
\"
][
\"
MBL-080Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[22, datasources[
\"
Temperature
\"
][
\"
MBL-090Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]]];
\n\n
let highBetaTemperatures = [[23, datasources[
\"
Temperature
\"
][
\"
HBL-010Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[24, datasources[
\"
Temperature
\"
][
\"
HBL-020Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[25, datasources[
\"
Temperature
\"
][
\"
HBL-030Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[26, datasources[
\"
Temperature
\"
][
\"
HBL-040Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]],
\n
[27, datasources[
\"
Temperature
\"
][
\"
HBL-050Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]]];
\n\n
let temps = [datasources[
\"
Temperature
\"
][
\"
Spk-010Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-020Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-030Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-040Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-050Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-060Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-070Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-080Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-090Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-100Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-110Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-120Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-130Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-010Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-020Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-030Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-040Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-050Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-060Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-070Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-080Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-090Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
HBL-010Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
HBL-020Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
HBL-030Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
HBL-040Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
HBL-050Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]];
\n
\n
let avgTemp = temps.reduce((acc, val) => acc + val, 0) / temps.length;
\n\n
var data = [{data: spokeTemperatures, color:
\"
#FFC0CB
\"
, label:
\"
Spokes
\"
},
\n
{data: mediumBetaTemperatures, color:
\"
#FF6347
\"
, label:
\"
Medium β
\"
},
\n
{data: highBetaTemperatures, color:
\"
#B22222
\"
, label:
\"
High β
\"
}];
\n\n
if (avgTemp < 150) {
\n
data = [{data: spokeTemperatures, color:
\"
#98FB98
\"
, label:
\"
Spokes
\"
},
\n
{data: mediumBetaTemperatures, color:
\"
#32CD32
\"
, label:
\"
Medium β
\"
},
\n
{data: highBetaTemperatures, color:
\"
#006400
\"
, label:
\"
High β
\"
}];
\n
}
\n\n
if (avgTemp < 40) {
\n
data = [{data: spokeTemperatures, color:
\"
#ADD8E6
\"
, label:
\"
Spokes
\"
},
\n
{data: mediumBetaTemperatures, color:
\"
#5DADE2
\"
, label:
\"
Medium β
\"
},
\n
{data: highBetaTemperatures, color:
\"
#1E90FF
\"
, label:
\"
High β
\"
}];
\n
}
\n\n
return data;
\n
"
,
"xticks"
:
"let clock = datasources[
\"
Clock
\"
][
\"
numeric_value
\"
]; // trick to trigger the update
\n
let cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');
\n\n
var xticks = [[1,
\"
01 <br><center>← Source</center>
\"
],
\n
[2,
\"
02
\"
],
\n
[3,
\"
03
\"
],
\n
[4,
\"
04
\"
],
\n
[5,
\"
05
\"
],
\n
[6,
\"
06
\"
],
\n
[7,
\"
07
\"
],
\n
[8,
\"
08
\"
],
\n
[9,
\"
09
\"
],
\n
[10,
\"
10
\"
],
\n
[11,
\"
11
\"
],
\n
[12,
\"
12
\"
],
\n
[13,
\"
13
\"
],
\n
[14,
\"
01
\"
],
\n
[15,
\"
02
\"
],
\n
[16,
\"
03
\"
],
\n
[17,
\"
04
\"
],
\n
[18,
\"
05
\"
],
\n
[19,
\"
06
\"
],
\n
[20,
\"
07
\"
],
\n
[21,
\"
08
\"
],
\n
[22,
\"
09
\"
],
\n
[23,
\"
01
\"
],
\n
[24,
\"
02
\"
],
\n
[25,
\"
03
\"
],
\n
[26,
\"
04
\"
],
\n
[27,
\"
05<br><center>Target →</center>
\"
]];
\n\n
if (cols == 1) {
\n
var xticks = [];
\n
for (i=1; i<=13; i+=1) {
\n
xticks.push([i,
\"
<div class=
\\\"
flot-tick-label tickLabele
\\\"
style=
\\\"
font-size: 7px;color:#ffffff
\\\"
>
\"
+String(i)+
\"
</div>
\"
]);
\n
}
\n
for (i=14; i<=22; i+=1) {
\n
xticks.push([i,
\"
<div class=
\\\"
flot-tick-label tickLabel
\\\"
style=
\\\"
font-size: 7px; color:#ffffff
\\\"
>
\"
+String(i-13)+
\"
</div>
\"
]);
\n
}
\n\t
for (i=23; i<=27; i+=1) {
\n
xticks.push([i,
\"
<div class=
\\\"
flot-tick-label tickLabel
\\\"
style=
\\\"
font-size: 7px; color:#ffffff
\\\"
>
\"
+String(i-22)+
\"
</div>
\"
]);
\n
}
\n
}
\n\n
return xticks;"
,
"yticks"
:
"let maxtemp = Math.max(datasources[
\"
Temperature
\"
][
\"
Spk-010Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-020Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-030Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-040Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-050Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-060Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-070Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-080Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-090Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-100Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-110Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-120Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
Spk-130Crm:Cryo-TT-004:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-010Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-020Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-030Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-040Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-050Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-060Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-070Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-080Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
MBL-090Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
HBL-010Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
HBL-020Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
HBL-030Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
HBL-040Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
],
\n
datasources[
\"
Temperature
\"
][
\"
HBL-050Crm:Cryo-TT-019:MeasValue
\"
][
\"
value
\"
]);
\n
\n
let step=maxtemp/5;
\n
\n
var yticks=[];
\n
for (i=0; i<=maxtemp+step; i+=step) {
\n
yticks.push([i,i.toFixed(1).toString()]);
\n
}
\n\n
yticks[yticks.length-1] = [yticks[yticks.length-1][0],
\"
T [K]
\"
];
\n\n
return yticks;
\n
"
,
"points"
:
false
,
"zoom"
:
"xy"
}
}
]
},
{
"title"
:
"Thermal Screens"
,
"width"
:
1
,
"row"
:
{
"1"
:
19
,
"2"
:
19
,
"3"
:
19
,
"4"
:
19
,
"5"
:
19
,
"12"
:
19
,
"14"
:
19
,
"18"
:
19
},
"col"
:
{
"1"
:
1
,
"2"
:
1
,
"3"
:
1
,
"4"
:
1
,
"5"
:
1
,
"12"
:
1
,
"14"
:
1
,
"18"
:
1
},
"col_width"
:
6
,
"widgets"
:
[
{
"type"
:
"flot_extended_plugin"
,
"settings"
:
{
"plot_type"
:
"line"
,
"legend"
:
true
,
"height"
:
5
,
"value"
:
"var data = [];
\n\n
for (const pvname in datasources.ts) {
\n
const datavalues = datasources[
\"
ts
\"
][pvname].map(values => {
\n
values[0] += 3600000;
\n
return values;
\n
});
\n
data.push({data: datavalues});
\n
}
\n\n
return data;"
,
"yticks"
:
"var maxtemp = 0;
\n\n
for (const pvname in datasources.ts) {
\n
const pvmax = Math.max(...datasources[
\"
ts
\"
][pvname].map(values => values[1]));
\n
maxtemp = Math.max(maxtemp, pvmax);
\n
}
\n\n
var mintemp = 400;
\n\n
for (const pvname in datasources.ts) {
\n
const pvmin = Math.min(...datasources[
\"
ts
\"
][pvname].map(values => values[1]));
\n
mintemp = Math.min(maxtemp, pvmin);
\n
}
\n\n
let step=(maxtemp-mintemp)/5;
\n\n
var yticks=[];
\n\n
for (i=mintemp; i<=maxtemp+step; i+=step) {
\n
yticks.push([i,i.toFixed(1).toString()]);
\n
}
\n\n
yticks[yticks.length-1] = [yticks[yticks.length-1][0],
\"
T [K]
\"
];
\n\n
return yticks;"
,
"x_timestamp"
:
true
,
"zoom"
:
"xy"
}
}
]
}
],
"datasources"
:
[
{
"name"
:
"Clock"
,
"type"
:
"clock"
,
"settings"
:
{
"refresh"
:
1
,
"name"
:
"Clock"
}
},
{
"name"
:
"Temperature"
,
"type"
:
"JSON"
,
"settings"
:
{
"url"
:
"/data/api/v2/pvget/Spk-010Crm:Cryo-TT-004:MeasValue,Spk-020Crm:Cryo-TT-004:MeasValue,Spk-030Crm:Cryo-TT-004:MeasValue,Spk-040Crm:Cryo-TT-004:MeasValue,Spk-050Crm:Cryo-TT-004:MeasValue,Spk-060Crm:Cryo-TT-004:MeasValue,Spk-070Crm:Cryo-TT-004:MeasValue,Spk-080Crm:Cryo-TT-004:MeasValue,Spk-090Crm:Cryo-TT-004:MeasValue,Spk-100Crm:Cryo-TT-004:MeasValue,Spk-110Crm:Cryo-TT-004:MeasValue,Spk-120Crm:Cryo-TT-004:MeasValue,Spk-130Crm:Cryo-TT-004:MeasValue,MBL-010Crm:Cryo-TT-019:MeasValue,MBL-020Crm:Cryo-TT-019:MeasValue,MBL-030Crm:Cryo-TT-019:MeasValue,MBL-040Crm:Cryo-TT-019:MeasValue,MBL-050Crm:Cryo-TT-019:MeasValue,MBL-060Crm:Cryo-TT-019:MeasValue,MBL-070Crm:Cryo-TT-019:MeasValue,MBL-080Crm:Cryo-TT-019:MeasValue,MBL-090Crm:Cryo-TT-019:MeasValue,HBL-010Crm:Cryo-TT-019:MeasValue,HBL-020Crm:Cryo-TT-019:MeasValue,HBL-030Crm:Cryo-TT-019:MeasValue,HBL-040Crm:Cryo-TT-019:MeasValue,HBL-050Crm:Cryo-TT-019:MeasValue"
,
"use_thingproxy"
:
true
,
"refresh"
:
10
,
"method"
:
"GET"
,
"name"
:
"Temperature"
}
},
{
"name"
:
"gwhealth"
,
"type"
:
"JSON"
,
"settings"
:
{
"url"
:
"/data/-/gwhealth/NSO:Ops:SID"
,
"use_thingproxy"
:
true
,
"refresh"
:
10
,
"method"
:
"GET"
}
},
{
"name"
:
"ts"
,
"type"
:
"JSON"
,
"settings"
:
{
"url"
:
"/data/api/v1/archiver/MBL-010CDL:Cryo-TT-81460:MeasValue,MBL-020CDL:Cryo-TT-81560:MeasValue,MBL-030CDL:Cryo-TT-81660:MeasValue,MBL-040CDL:Cryo-TT-81760:MeasValue,MBL-050CDL:Cryo-TT-81860:MeasValue,MBL-060CDL:Cryo-TT-81960:MeasValue,MBL-070CDL:Cryo-TT-82060:MeasValue,MBL-080CDL:Cryo-TT-82160:MeasValue,MBL-090CDL:Cryo-TT-82260:MeasValue,HBL-010CDL:Cryo-TT-82360:MeasValue,HBL-020CDL:Cryo-TT-82460:MeasValue,HBL-030CDL:Cryo-TT-82560:MeasValue,HBL-040CDL:Cryo-TT-82660:MeasValue,HBL-050CDL:Cryo-TT-82760:MeasValue,Spk-010CDL:Cryo-TT-60:MeasValue,Spk-020CDL:Cryo-TT-60:MeasValue,Spk-030CDL:Cryo-TT-60:MeasValue,Spk-040CDL:Cryo-TT-60:MeasValue,Spk-050CDL:Cryo-TT-60:MeasValue,Spk-060CDL:Cryo-TT-60:MeasValue,Spk-070CDL:Cryo-TT-60:MeasValue,Spk-080CDL:Cryo-TT-60:MeasValue,Spk-090CDL:Cryo-TT-60:MeasValue,Spk-100CDL:Cryo-TT-60:MeasValue,Spk-110CDL:Cryo-TT-60:MeasValue,Spk-120CDL:Cryo-TT-60:MeasValue,Spk-130CDL:Cryo-TT-60:MeasValue/86400/100/freeboard"
,
"use_thingproxy"
:
true
,
"refresh"
:
10
,
"method"
:
"GET"
}
}
],
"columns"
:
6
}
This diff is collapsed.
Click to expand it.
WebSites/pos/dashboard.json
+
31
−
44
View file @
4d93ad94
...
...
@@ -34,7 +34,34 @@
]
},
{
"title"
:
"SCL Temperature"
,
"title"
:
"Levels"
,
"width"
:
1
,
"row"
:
{
"5"
:
19
,
"7"
:
1
},
"col"
:
{
"5"
:
1
,
"7"
:
1
},
"col_width"
:
16
,
"widgets"
:
[
{
"type"
:
"flot_extended_plugin"
,
"settings"
:
{
"plot_type"
:
"bar"
,
"legend"
:
true
,
"height"
:
5
,
"value"
:
"let spokelevels = [[1, datasources[
\"
levels
\"
][
\"
Spk-010Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[2, datasources[
\"
levels
\"
][
\"
Spk-020Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[3, datasources[
\"
levels
\"
][
\"
Spk-030Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[4, datasources[
\"
levels
\"
][
\"
Spk-040Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[5, datasources[
\"
levels
\"
][
\"
Spk-050Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[6, datasources[
\"
levels
\"
][
\"
Spk-060Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[7, datasources[
\"
levels
\"
][
\"
Spk-070Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[8, datasources[
\"
levels
\"
][
\"
Spk-080Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[9, datasources[
\"
levels
\"
][
\"
Spk-090Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[10, datasources[
\"
levels
\"
][
\"
Spk-100Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[11, datasources[
\"
levels
\"
][
\"
Spk-110Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[12, datasources[
\"
levels
\"
][
\"
Spk-120Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[13, datasources[
\"
levels
\"
][
\"
Spk-130Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]]];
\n\n
let mediumBetalevels = [[14, datasources[
\"
levels
\"
][
\"
MBL-010Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[15, datasources[
\"
levels
\"
][
\"
MBL-020Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[16, datasources[
\"
levels
\"
][
\"
MBL-030Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[17, datasources[
\"
levels
\"
][
\"
MBL-040Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[18, datasources[
\"
levels
\"
][
\"
MBL-050Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[19, datasources[
\"
levels
\"
][
\"
MBL-060Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[20, datasources[
\"
levels
\"
][
\"
MBL-070Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[21, datasources[
\"
levels
\"
][
\"
MBL-080Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[22, datasources[
\"
levels
\"
][
\"
MBL-090Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]]];
\n\n
let highBetalevels = [[23, datasources[
\"
levels
\"
][
\"
HBL-010Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[24, datasources[
\"
levels
\"
][
\"
HBL-020Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[25, datasources[
\"
levels
\"
][
\"
HBL-030Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[26, datasources[
\"
levels
\"
][
\"
HBL-040Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]],
\n
[27, datasources[
\"
levels
\"
][
\"
HBL-050Crm:Cryo-LT-001:MeasValue
\"
][
\"
value
\"
]]];
\n\n\n
var data = [{data: spokelevels, color:
\"
#EE82EE
\"
, label:
\"
Spokes
\"
},
\n
{data: mediumBetalevels, color:
\"
#8A2BE2
\"
, label:
\"
Medium β
\"
},
\n
{data: highBetalevels, color:
\"
#7A5DC7
\"
, label:
\"
High β
\"
}];
\n\n
return data;"
,
"xticks"
:
"let clock = datasources[
\"
Clock
\"
][
\"
numeric_value
\"
]; // trick to trigger the update
\n
let cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');
\n\n
var xticks = [[1,
\"
01 <br><center>← Source</center>
\"
],
\n
[2,
\"
02
\"
],
\n
[3,
\"
03
\"
],
\n
[4,
\"
04
\"
],
\n
[5,
\"
05
\"
],
\n
[6,
\"
06
\"
],
\n
[7,
\"
07
\"
],
\n
[8,
\"
08
\"
],
\n
[9,
\"
09
\"
],
\n
[10,
\"
10
\"
],
\n
[11,
\"
11
\"
],
\n
[12,
\"
12
\"
],
\n
[13,
\"
13
\"
],
\n
[14,
\"
01
\"
],
\n
[15,
\"
02
\"
],
\n
[16,
\"
03
\"
],
\n
[17,
\"
04
\"
],
\n
[18,
\"
05
\"
],
\n
[19,
\"
06
\"
],
\n
[20,
\"
07
\"
],
\n
[21,
\"
08
\"
],
\n
[22,
\"
09
\"
],
\n
[23,
\"
01
\"
],
\n
[24,
\"
02
\"
],
\n
[25,
\"
03
\"
],
\n
[26,
\"
04
\"
],
\n
[27,
\"
05<br><center>Target →</center>
\"
]];
\n\n
if (cols == 1) {
\n
var xticks = [];
\n
for (i=1; i<=13; i+=1) {
\n
xticks.push([i,
\"
<div class=
\\\"
flot-tick-label tickLabele
\\\"
style=
\\\"
font-size: 7px;color:#ffffff
\\\"
>
\"
+String(i)+
\"
</div>
\"
]);
\n
}
\n
for (i=14; i<=22; i+=1) {
\n
xticks.push([i,
\"
<div class=
\\\"
flot-tick-label tickLabel
\\\"
style=
\\\"
font-size: 7px; color:#ffffff
\\\"
>
\"
+String(i-13)+
\"
</div>
\"
]);
\n
}
\n\t
for (i=23; i<=27; i+=1) {
\n
xticks.push([i,
\"
<div class=
\\\"
flot-tick-label tickLabel
\\\"
style=
\\\"
font-size: 7px; color:#ffffff
\\\"
>
\"
+String(i-22)+
\"
</div>
\"
]);
\n
}
\n
}
\n\n
return xticks;"
,
"yticks"
:
""
,
"zoom"
:
""
}
}
]
},
{
"title"
:
"Cavities Temperature"
,
"width"
:
1
,
"row"
:
{
"1"
:
7
,
...
...
@@ -78,45 +105,6 @@
}
}
]
},
{
"title"
:
"Thermal Screens"
,
"width"
:
1
,
"row"
:
{
"1"
:
19
,
"2"
:
19
,
"3"
:
19
,
"4"
:
19
,
"5"
:
19
,
"12"
:
19
,
"14"
:
19
,
"18"
:
19
},
"col"
:
{
"1"
:
1
,
"2"
:
1
,
"3"
:
1
,
"4"
:
1
,
"5"
:
1
,
"12"
:
1
,
"14"
:
1
,
"18"
:
1
},
"col_width"
:
6
,
"widgets"
:
[
{
"type"
:
"flot_extended_plugin"
,
"settings"
:
{
"plot_type"
:
"line"
,
"legend"
:
true
,
"height"
:
5
,
"value"
:
"var data = [];
\n\n
for (const pvname in datasources.ts) {
\n
const datavalues = datasources[
\"
ts
\"
][pvname].map(values => {
\n
values[0] += 3600000;
\n
return values;
\n
});
\n
data.push({data: datavalues});
\n
}
\n\n
return data;"
,
"yticks"
:
"var maxtemp = 0;
\n\n
for (const pvname in datasources.ts) {
\n
const pvmax = Math.max(...datasources[
\"
ts
\"
][pvname].map(values => values[1]));
\n
maxtemp = Math.max(maxtemp, pvmax);
\n
}
\n\n
var mintemp = 400;
\n\n
for (const pvname in datasources.ts) {
\n
const pvmin = Math.min(...datasources[
\"
ts
\"
][pvname].map(values => values[1]));
\n
mintemp = Math.min(maxtemp, pvmin);
\n
}
\n\n
let step=(maxtemp-mintemp)/5;
\n\n
var yticks=[];
\n\n
for (i=mintemp; i<=maxtemp+step; i+=step) {
\n
yticks.push([i,i.toFixed(1).toString()]);
\n
}
\n\n
yticks[yticks.length-1] = [yticks[yticks.length-1][0],
\"
T [K]
\"
];
\n\n
return yticks;"
,
"x_timestamp"
:
true
,
"zoom"
:
"xy"
}
}
]
}
],
"datasources"
:
[
...
...
@@ -135,8 +123,7 @@
"url"
:
"/data/api/v2/pvget/Spk-010Crm:Cryo-TT-004:MeasValue,Spk-020Crm:Cryo-TT-004:MeasValue,Spk-030Crm:Cryo-TT-004:MeasValue,Spk-040Crm:Cryo-TT-004:MeasValue,Spk-050Crm:Cryo-TT-004:MeasValue,Spk-060Crm:Cryo-TT-004:MeasValue,Spk-070Crm:Cryo-TT-004:MeasValue,Spk-080Crm:Cryo-TT-004:MeasValue,Spk-090Crm:Cryo-TT-004:MeasValue,Spk-100Crm:Cryo-TT-004:MeasValue,Spk-110Crm:Cryo-TT-004:MeasValue,Spk-120Crm:Cryo-TT-004:MeasValue,Spk-130Crm:Cryo-TT-004:MeasValue,MBL-010Crm:Cryo-TT-019:MeasValue,MBL-020Crm:Cryo-TT-019:MeasValue,MBL-030Crm:Cryo-TT-019:MeasValue,MBL-040Crm:Cryo-TT-019:MeasValue,MBL-050Crm:Cryo-TT-019:MeasValue,MBL-060Crm:Cryo-TT-019:MeasValue,MBL-070Crm:Cryo-TT-019:MeasValue,MBL-080Crm:Cryo-TT-019:MeasValue,MBL-090Crm:Cryo-TT-019:MeasValue,HBL-010Crm:Cryo-TT-019:MeasValue,HBL-020Crm:Cryo-TT-019:MeasValue,HBL-030Crm:Cryo-TT-019:MeasValue,HBL-040Crm:Cryo-TT-019:MeasValue,HBL-050Crm:Cryo-TT-019:MeasValue"
,
"use_thingproxy"
:
true
,
"refresh"
:
10
,
"method"
:
"GET"
,
"name"
:
"Temperature"
"method"
:
"GET"
}
},
{
...
...
@@ -150,10 +137,10 @@
}
},
{
"name"
:
"
t
s"
,
"name"
:
"
level
s"
,
"type"
:
"JSON"
,
"settings"
:
{
"url"
:
"/data/api/v
1/archiver/MBL
-010C
DL
:Cryo-
T
T-
81460
:MeasValue,
MBL
-020C
DL
:Cryo-
T
T-
81560
:MeasValue,
MBL
-030C
DL
:Cryo-
T
T-
81660
:MeasValue,
MBL
-040C
DL
:Cryo-
T
T-
81760
:MeasValue,
MBL
-050C
DL
:Cryo-
T
T-
81860
:MeasValue,
MBL
-060C
DL
:Cryo-
T
T-
81960
:MeasValue,
MBL
-070C
DL
:Cryo-
T
T-
82060
:MeasValue,
MBL
-080C
DL
:Cryo-
T
T-
82160
:MeasValue,
MBL
-090C
DL
:Cryo-
T
T-
82260
:MeasValue,
HBL-010CDL
:Cryo-
T
T-
82360
:MeasValue,
HBL-020CDL
:Cryo-
T
T-
82460
:MeasValue,
HBL-030CDL
:Cryo-
T
T-
82560
:MeasValue,
HBL-040CDL
:Cryo-
T
T-
82660
:MeasValue,
H
BL-0
5
0C
DL
:Cryo-
T
T-
82760
:MeasValue,
Spk
-0
1
0C
DL
:Cryo-
T
T-
6
0:MeasValue,
Spk
-0
2
0C
DL
:Cryo-
T
T-
6
0:MeasValue,
Spk
-0
3
0C
DL
:Cryo-
T
T-
6
0:MeasValue,
Spk
-0
4
0C
DL
:Cryo-
T
T-
6
0:MeasValue,
Spk
-0
5
0C
DL
:Cryo-
T
T-
6
0:MeasValue,
Spk
-0
6
0C
DL
:Cryo-
T
T-
6
0:MeasValue,
Spk
-0
7
0C
DL
:Cryo-
T
T-
6
0:MeasValue,
Spk
-0
8
0C
DL
:Cryo-
T
T-
6
0:MeasValue,
Spk
-0
9
0C
DL
:Cryo-
T
T-
6
0:MeasValue,
Spk-100CDL
:Cryo-
T
T-
6
0:MeasValue,
Spk-110CDL
:Cryo-
T
T-
6
0:MeasValue,
Spk-120CDL
:Cryo-
T
T-
6
0:MeasValue,
Spk-130CDL
:Cryo-
T
T-
6
0:MeasValue
/86400/100/freeboard
"
,
"url"
:
"/data/api/v
2/pvget/Spk
-010C
rm
:Cryo-
L
T-
001
:MeasValue,
Spk
-020C
rm
:Cryo-
L
T-
001
:MeasValue,
Spk
-030C
rm
:Cryo-
L
T-
001
:MeasValue,
Spk
-040C
rm
:Cryo-
L
T-
001
:MeasValue,
Spk
-050C
rm
:Cryo-
L
T-
001
:MeasValue,
Spk
-060C
rm
:Cryo-
L
T-
001
:MeasValue,
Spk
-070C
rm
:Cryo-
L
T-
001
:MeasValue,
Spk
-080C
rm
:Cryo-
L
T-
001
:MeasValue,
Spk
-090C
rm
:Cryo-
L
T-
001
:MeasValue,
Spk-100Crm
:Cryo-
L
T-
001
:MeasValue,
Spk-110Crm
:Cryo-
L
T-
001
:MeasValue,
Spk-120Crm
:Cryo-
L
T-
001
:MeasValue,
Spk-130Crm
:Cryo-
L
T-
001
:MeasValue,
M
BL-0
1
0C
rm
:Cryo-
L
T-
001
:MeasValue,
MBL
-0
2
0C
rm
:Cryo-
L
T-0
01
:MeasValue,
MBL
-0
3
0C
rm
:Cryo-
L
T-0
01
:MeasValue,
MBL
-0
4
0C
rm
:Cryo-
L
T-0
01
:MeasValue,
MBL
-0
5
0C
rm
:Cryo-
L
T-0
01
:MeasValue,
MBL
-0
6
0C
rm
:Cryo-
L
T-0
01
:MeasValue,
MBL
-0
7
0C
rm
:Cryo-
L
T-0
01
:MeasValue,
MBL
-0
8
0C
rm
:Cryo-
L
T-0
01
:MeasValue,
MBL
-0
9
0C
rm
:Cryo-
L
T-0
01
:MeasValue,
HBL
-0
1
0C
rm
:Cryo-
L
T-0
01
:MeasValue,
HBL-020Crm
:Cryo-
L
T-0
01
:MeasValue,
HBL-030Crm
:Cryo-
L
T-0
01
:MeasValue,
HBL-040Crm
:Cryo-
L
T-0
01
:MeasValue,
HBL-050Crm
:Cryo-
L
T-0
01
:MeasValue"
,
"use_thingproxy"
:
true
,
"refresh"
:
10
,
"method"
:
"GET"
...
...
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