Newer
Older
{
"version": 1,
"header_image": "",
"allow_edit": false,
"plugins": [],
"panes": [
{
"title": "",
"width": 1,
"row": {
"1": 1,
"2": 1,
"3": 1,
"4": 1
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1
},
"col_width": 4,
"widgets": [
{
"type": "html",
"settings": {
"html": "let clock = datasources[\"Clock\"][\"numeric_value\"]; // trick to trigger the update\nlet cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');\ndocument.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = \"\";\n\nlet title = \"NCL Faraday cups\"; // Change this title. Try not to exceed the 30 chars\n\nlet fontsize = Math.round((-0.66486486*title.length+66.67567568)*cols/4);\nlet lmargin = Math.round((0.43918919*title.length-4.05405405)+3.75*cols*cols-34.75*cols+79.75);\nlet width = 100-lmargin;\n\nvar 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 PyEpics 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 PyEpics and Freeboard. Graphics by Dirk Nordt.\\\">\n\t\t\t\t`+title+`\n\t\t\t</div>\n\t\t</div>`;\n\nif (cols == 1){\n text = \"<div style=\\\"position: static; margin-top: -15px;\\\"><img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with PyEpics 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 PyEpics and Freeboard. Graphics by Dirk Nordt.\\\"></div></img></div>\";\n document.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = title;\n}\n\nreturn text;",
"height": 2
}
}
]
},
{
"title": "LEBT FC ",
"width": 1,
"row": {
"3": 7,
"4": 7,
"5": 7,
"7": 7
},
"col": {
"1": 1,
"2": 2,
"4": 2,
"5": 4,
"7": 4
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"title": "Max PROTON CURRENT",
"size": "regular",
"value": "datasources[\"maxi\"][\"LEBT-010:PBI-FC-001:STAT3-MaxValueR\"][\"value\"].toFixed(2)",
"animate": true,
"units": "mA"
}
},
{
"type": "text_widget",
"settings": {
"title": "Position",
"size": "regular",
"value": "let index = datasources[\"Position\"][\"LEBT-010:PBI-FC-001:Position-R\"][\"value\"][\"index\"];\nlet selection = datasources[\"Position\"][\"LEBT-010:PBI-FC-001:Position-R\"][\"value\"][\"choices\"][index]; \nreturn selection; \n",
"animate": true
}
},
{
"type": "indicator",
"settings": {
"title": "Water Flow ",
"value": "datasources[\"Water\"][\"LEBT-010:PBI-FC-001:WtrFlowOK\"][\"value\"][\"choices\"]",
"on_text": "OK",
"off_text": "NOK"
}
},
{
"type": "gauge",
"settings": {
"title": "Water temperature body ",
"value": "datasources[\"Water\"][\"LEBT-010:PBI-FC-001:BodyTemp-R\"][\"value\"].toFixed(1)",
"units": "°C",
"min_value": 0,
"max_value": "100"
}
},
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"type": "text_widget",
"settings": {
"title": "HV repeller",
"size": "regular",
"value": "datasources[\"HV\"][\"LEBT-010:PBI-FC-001:Voltage-R\"][\"value\"].toFixed(1)",
"animate": true,
"units": "V"
}
},
{
"type": "indicator",
"settings": {
"title": "HVV interlock ",
"value": "datasources[\"HVV\"][\"LEBT-010:PBI-FC-001:VacuumInterlockOK\"][\"value\"][\"index\"]",
"on_text": "OK",
"off_text": "NOK"
}
},
{
"type": "gauge",
"settings": {
"title": "Water temperature repeller",
"value": "datasources[\"Water\"][\"LEBT-010:PBI-FC-001:RepellerTemp-R\"][\"value\"].toFixed(1)",
"units": "°C",
"min_value": 0,
"max_value": 100
}
}
]
},
{
"title": "IOCs status",
"width": 1,
"row": {
"2": 7,
"3": 7,
"4": 7,
"6": 7,
"7": 7
},
"col": {
"1": 1,
"4": 1,
"6": 3,
"7": 3
},
"col_width": 1,
"widgets": [
{
"type": "indicator",
"settings": {
"title": "DAQ ",
"value": "datasources[\"IOC\"][\"PBI-FC01:SC-IOC-101:HEARTBEAT\"][\"value\"]",
"on_text": "DAQ on ",
"off_text": "DAQ off "
}
},
{
"type": "indicator",
"settings": {
"title": "MHV",
"value": "datasources[\"IOC\"][\"PBI-FC01:SC-IOC-102:HEARTBEAT\"][\"value\"]",
"on_text": "MHV on",
"off_text": "MHV off "
}
},
{
"type": "indicator",
"settings": {
"title": "EVR",
"value": "datasources[\"IOC\"][\"PBI-FC01:SC-IOC-103:HEARTBEAT\"][\"value\"]",
"on_text": "EVR on ",
"off_text": "EVR off "
}
}
]
},
{
"title": "MEBT FC ",
"width": 1,
"row": {
"7": 3
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"title": "MAX PROTON CURRENT",
"size": "regular",
"value": "datasources[\"maxi\"][\"MEBT-010:PBI-FC-001:STAT3-MaxValueR\"][\"value\"].toFixed(2)",
"animate": true,
"units": "mA"
}
},
{
"type": "text_widget",
"settings": {
"title": "Position",
"size": "regular",
"value": "let index = datasources[\"Position\"][\"MEBT-010:PBI-FC-001:Position-R\"][\"value\"][\"index\"];\nlet selection = datasources[\"Position\"][\"MEBT-010:PBI-FC-001:Position-R\"][\"value\"][\"choices\"][index]; \nreturn selection; \n",
{
"type": "indicator",
"settings": {
"title": "Water Flow",
"value": "datasources[\"Water\"][\"MEBT-010:PBI-FC-001:WtrFlowOK\"][\"value\"][\"index\"]",
"on_text": "OK",
"off_text": "NOK"
}
},
{
"type": "gauge",
"settings": {
"title": "Water temperature body",
"value": "datasources[\"Water\"][\"MEBT-010:PBI-FC-001:BodyTemp-R\"][\"value\"].toFixed(1)",
"units": "°C",
"min_value": 0,
"max_value": 100
}
},
{
"type": "text_widget",
"settings": {
"title": "HV repeller",
"size": "regular",
"value": "datasources[\"HV\"][\"MEBT-010:PBI-FC-001:Voltage-R\"][\"value\"].toFixed(1)",
"animate": true,
"units": "V"
}
},
{
"type": "indicator",
"settings": {
"title": "HVV interlock ",
"value": "datasources[\"HVV\"][\"MEBT-010:PBI-FC-001:VacuumInterlockOK\"][\"value\"][\"index\"]",
"on_text": "OK",
"off_text": "NOK"
}
}
],
"datasources": [
{
"name": "IOC",
"type": "JSON",
"settings": {
"url": "/data/api/v2/pvget/PBI-FC01:SC-IOC-101:HEARTBEAT,PBI-FC01:SC-IOC-102:HEARTBEAT,PBI-FC01:SC-IOC-103:HEARTBEAT, PBI-FC01:Ctrl-IOC-104:HEARTBEAT",
"use_thingproxy": true,
"refresh": 1,
"method": "GET"
}
},
{
"name": "maxi",
"type": "JSON",
"settings": {
"url": "/data/api/v2/pvget/LEBT-010:PBI-FC-001:STAT3-MaxValueR,MEBT-010:PBI-FC-001:STAT3-MaxValueR,DTL-040:PBI-FC-001:STAT3-MaxValueR",
"use_thingproxy": true,
"refresh": 5,
"method": "GET"
}
},
{
"name": "HV",
"type": "JSON",
"settings": {
"url": "/data/api/v2/pvget/LEBT-010:PBI-FC-001:Voltage-R,MEBT-010:PBI-FC-001:Voltage-R",
"use_thingproxy": true,
"refresh": 3,
"method": "GET"
}
},
{
"name": "HVV",
"type": "JSON",
"settings": {
"url": "/data/api/v2/pvget/LEBT-010:PBI-FC-001:VacuumInterlockOK,MEBT-010:PBI-FC-001:VacuumInterlockOK",
"use_thingproxy": true,
"refresh": 5,
}
},
{
"name": "Water",
"type": "JSON",
"settings": {
"url": "/data/api/v2/pvget/LEBT-010:PBI-FC-001:RepellerTemp-R,LEBT-010:PBI-FC-001:WtrFlowOK,MEBT-010:PBI-FC-001:WtrFlowOK,DTL-040:PBI-FC-001:WtrFlowOK,LEBT-010:PBI-FC-001:BodyTemp-R,MEBT-010:PBI-FC-001:BodyTemp-R,DTL-040:PBI-FC-001:BodyTemp-R",
}
},
{
"name": "Position",
"type": "JSON",
"settings": {
"url": "/data/api/v2/pvget/LEBT-010:PBI-FC-001:Position-R,MEBT-010:PBI-FC-001:Position-R,DTL-040:PBI-FC-001:Position-R",