Newer
Older
{
"version": 1,
"header_image": "",
"allow_edit": false,
"plugins": [],
"panes": [
{
"width": 1,
"row": {
"1": 1,
"2": 1,
"3": 1,
"4": 1
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1
},
"html": "datasources[\"Clock\"][\"numeric_value\"]; // trick to trigger the update\nvar cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');\ndocument.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = \"\";\nif (cols == 4){\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: 56px; color:#ffffff !important; position: relative; bottom: 35px; left: 160px;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\">Public Operations Screen</div></img></div>\";\n}\nif (cols == 3){\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: 46px; color:#ffffff !important; position: relative; bottom: 45px; left: 100px;\\\" title=\\\"Designed by Emanuele Laface with PyEpics and Freeboard. Graphics by Dirk Nordt.\\\">Public Operations Screen</div></img></div>\";\n}\n\nif (cols == 2){\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.\\\">Public Operations Screen</div></img></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 = \"Public Operations Screen\";\n}\n\nreturn text\n\n",
"width": 1,
"row": {
"1": 7,
"2": 7,
"3": 7,
"4": 7,
"5": 1,
"6": 1,
"7": 1,
"9": 1
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1,
"5": 3,
"6": 3,
"7": 3,
"9": 3
},
"col_width": 4,
"widgets": [
{
"type": "flot_extended_plugin",
"settings": {
"value": "xdata = datasources[\"POS\"][\"RFQ-010:RFS-DIG-101:Dwn0-XAxis.[:350:]\"][\"value\"];\npwydata = datasources[\"POS\"][\"RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[:350:]\"][\"value\"];\nvydata = datasources[\"POS\"][\"RFQ-010:RFS-DIG-102:Dwn4-Cmp0.[:350:]\"][\"value\"];\n\npwdata = [];\nvdata = [];\nfor (i = 0; i < xdata.length; i += 1) {\n\tpwdata.push([xdata[i], pwydata[i]]);\n vdata.push([xdata[i], vydata[i]]);\n}\n\nreturn [{label: 'Power applied', data: pwdata, color: \"green\"}, {label: 'Voltage measured', data: vdata, color: \"red\"}];",
"xticks": "",
"yticks": "",
"points": false,
"tooltip": false,
"zoom": "xy"
}
}
]
},
{
"width": 1,
"row": {
"1": 17,
"2": 17,
"3": 17,
"4": 17,
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1,
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
"title": "",
"size": "regular",
"value": "datasources[\"POS\"][\"RFQ-010:RFS-DIG-101:AI6-SMonAvg-Mag\"][\"value\"].toFixed(3)",
"sparkline": false,
"animate": true,
"units": "kW"
}
}
]
},
{
"title": "Repetition Rate",
"width": 1,
"row": {
"1": 25,
"2": 21,
"3": 17,
"4": 17,
"12": 27
},
"col": {
"1": 1,
"2": 2,
"3": 3,
"4": 3,
"12": 2
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "Math.round(datasources[\"POS\"][\"RFQ-010:RFS-EVR-101:CycleFreq-RB\"][\"value\"])",
"sparkline": false,
"animate": true,
"units": "Hz"
}
}
]
},
{
"title": "Pulse Width",
"width": 1,
"row": {
"1": 29,
"2": 21,
"3": 21,
"4": 17,
"12": 27
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 4,
"12": 3
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "(datasources[\"POS\"][\"RFQ-010:RFS-EVR-101:RFSyncWdt-SP\"][\"value\"]/1000).toFixed(3)",
"animate": true,
"units": "ms"
{
"title": "Shift ID",
"width": 1,
"row": {
"5": 7,
"6": 7,
"7": 7,
"10": 7,
"12": 7,
"13": 7,
"6": 1,
"10": 1,
"size": "regular",
"value": "datasources[\"POS\"][\"NSO:Ops:SID\"][\"value\"]",
"animate": false
"title": "Shift Leader",
"7": 7,
"10": 7,
"7": 2,
"10": 2,
"type": "text_widget",
"size": "regular",
"value": "datasources[\"POS\"][\"NSO:Ops:SL\"][\"value\"]",
"animate": false
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
{
"title": "PSS1 MODE OF OPERATION",
"width": 1,
"row": {
"1": 33,
"2": 25,
"3": 21,
"4": 21,
"12": 31
},
"col": {
"1": 1,
"2": 2,
"3": 2,
"4": 1,
"12": 1
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "switch(datasources[\"POS\"][\"AccPSS:PSS-Area-1:PSSMode\"][\"value\"]) {\n case 0:\n return \"Alarm\";\n break;\n case 1:\n return \"Open Access\";\n break;\n case 2:\n return \"Search\";\n break; \n case 3:\n return \"Tunnel Closed\";\n break;\n case 4:\n return \"Beam On\";\n break;\n case 5:\n return \"RM Interlock\";\n break;\n case 6:\n return \"RP Survey\";\n break;\n case 7:\n return \"Restricted Access\";\n break;\n default:\n // code block\n}",
"animate": false
}
}
]
},
"5": 19,
"6": 19,
"10": 19,
"12": 19,
"13": 19,
"5": 1,
"6": 1,
"10": 1,
"12": 1,
"13": 1,
},
"col_width": 1,
"widgets": [
{
"type": "html",
"html": "<div id=\"uhr\"></div>\n<script type=\"text/javascript\" src=\"./js/bahnhofsuhr.js\"></script>\n<script type=\"text/javascript\">\n var uhr = new Bahnhofsuhr(\"uhr\", {showBorder: true, showShadow: false});\nwindow.onresize = uhr.scale;\n</script>",
"height": 2
"html": "var date = new Date(datasources[\"POS\"][\"NSO:Ops:Msg\"][\"timestamp\"]*1e3);\nreturn \"<div class=\\\"tw-value\\\" style=\\\"font-size: 16px; width=100%; margin-top:10px; margin-left:10px; margin-right:10px;\\\" title=\\\"\"+date+\"\\\">\"+ datasources[\"POS\"][\"NSO:Ops:Msg\"][\"value\"] +\"</div>\"",
"height": 2
},
"col": {
"1": 1,
"2": 2,
"3": 2,
"4": 2
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"POS\"][\"RFQ-010:RFS-DIG-101:AI0-SMonAvg-Mag\"][\"value\"].toFixed(3)",
Emanuele Laface
committed
"name": "POS",
"url": "/data/api/v1/caget/RFQ-010:RFS-DIG-101:AI0-SMonAvg-Mag,AccPSS:PSS-Area-1:PSSMode,RFQ-010:RFS-DIG-101:AI6-SMonAvg-Mag,RFQ-010:RFS-EVR-101:CycleFreq-RB,RFQ-010:RFS-EVR-101:RFSyncWdt-SP,NSO:Ops:SID,NSO:Ops:Msg,NSO:Ops:SL,RFQ-010:RFS-DIG-101:Dwn6-Cmp0.[:350:],RFQ-010:RFS-DIG-101:Dwn0-XAxis.[:350:],RFQ-010:RFS-DIG-102:Dwn4-Cmp0.[:350:]",
},
{
"name": "Clock",
"type": "clock",
"settings": {
"refresh": 1,
"name": "Clock"