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
},
"col_width": 4,
"widgets": [
{
"type": "html",
"settings": {
"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: 120px;\\\" 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",
"height": 2
}
}
]
},
{
"title": "Shift ID",
"width": 1,
"row": {
"1": 7,
"2": 7,
"3": 7,
"4": 7,
"5": 7,
"6": 7,
"7": 7
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1,
"5": 1,
"6": 1,
"7": 1
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"NSO-LCR:Ops:SID\"][\"value\"]",
"animate": false
}
}
]
},
{
"title": "Shift Leader",
"width": 1,
"row": {
"1": 11,
"2": 7,
"3": 7,
"4": 11,
"5": 7,
"6": 7,
"7": 7
},
"col": {
"1": 1,
"2": 2,
"3": 2,
"4": 1,
"5": 2,
"6": 2,
"7": 2
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"NSO-LCR:Ops:MSL\"][\"value\"]",
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
"animate": true
}
}
]
},
{
"title": "LCR Messages",
"width": 1,
"row": {
"1": 15,
"2": 11,
"3": 7,
"4": 15,
"5": 7,
"6": 7,
"7": 7
},
"col": {
"1": 1,
"2": 2,
"3": 3,
"4": 1,
"5": 3,
"6": 3,
"7": 3
},
"col_width": 1,
"widgets": [
{
"type": "html",
"settings": {
Emanuele Laface
committed
"html": "return \"<div class=\\\"tw-value\\\" style=\\\"font-size: 16px; width=100%; margin-top:10px; margin-left:10px; margin-right:10px;\\\">\"+ datasources[\"POS\"][\"NSO-LCR:Ops:Msg\"][\"value\"] +\"</div>\"",
"height": 1
}
}
]
},
{
"title": "Ion Source",
"width": 1,
"row": {
"2": 15,
"3": 11,
"4": 7,
"5": 1,
"6": 1,
"7": 1
},
"col": {
"1": 1,
"2": 2,
"4": 3,
"5": 1,
"6": 1,
"7": 1
},
"col_width": 1,
"widgets": [
{
"type": "indicator",
"settings": {
"title": "High Voltage",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"ISrc-010:ISS-HVPS:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"ISrc-010:ISS-HVPS:VolR\"][\"value\"]+\" \"+datasources[\"POS\"][\"ISrc-010:ISS-HVPS:VolR\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Magnetron",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"ISrc-010:ISS-Magtr:Setup.B6\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"ISrc-010:ISS-Magtr:PulsHLvlS\"][\"value\"]+\" \"+datasources[\"POS\"][\"ISrc-010:ISS-Magtr:PulsHLvlS\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Coil 1",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"ISrc-010:PwrC-CoilPS-01:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"ISrc-010:PwrC-CoilPS-01:CurR\"][\"value\"]+\" \"+datasources[\"POS\"][\"ISrc-010:PwrC-CoilPS-01:CurR\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Coil 2",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"ISrc-010:PwrC-CoilPS-02:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"ISrc-010:PwrC-CoilPS-02:CurR\"][\"value\"]+\" \"+datasources[\"POS\"][\"ISrc-010:PwrC-CoilPS-02:CurR\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Coil 3",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"ISrc-010:PwrC-CoilPS-03:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"ISrc-010:PwrC-CoilPS-03:CurR\"][\"value\"]+\" \"+datasources[\"POS\"][\"ISrc-010:PwrC-CoilPS-03:CurR\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Hydrogen",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"ISrc-010:Vac-VVA-01100:OpenR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"ISrc-010:Vac-VVMC-01100:FlwR\"][\"value\"]+\" \"+datasources[\"POS\"][\"ISrc-010:Vac-VVMC-01100:FlwR\"][\"units\"]",
"off_text": "Closed"
}
},
{
"type": "indicator",
"settings": {
"title": "Repeller",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"ISrc-010:PwrC-RepPS-01:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"ISrc-010:PwrC-RepPS-01:VolR\"][\"value\"]+\" \"+datasources[\"POS\"][\"ISrc-010:PwrC-RepPS-01:VolR\"][\"units\"]",
"off_text": "Off"
}
}
]
},
{
"title": "LEBT",
"width": 1,
"row": {
"3": 11,
"4": 7,
"5": 1,
"6": 1,
"7": 1
},
"col": {
"1": 1,
"2": 1,
"3": 3,
"4": 4,
"5": 2,
"6": 2,
"7": 2
},
"col_width": 1,
"widgets": [
{
"type": "indicator",
"settings": {
"title": "Solenoid 1",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"LEBT-010:PwrC-SolPS-01:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"LEBT-010:PwrC-SolPS-01:CurR\"][\"value\"]+\" \"+datasources[\"POS\"][\"LEBT-010:PwrC-SolPS-01:CurR\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Solenoid 2",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"LEBT-010:PwrC-SolPS-02:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"LEBT-010:PwrC-SolPS-02:CurR\"][\"value\"]+\" \"+datasources[\"POS\"][\"LEBT-010:PwrC-SolPS-02:CurR\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Horizontal Steerer 1",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"LEBT-010:PwrC-PSCH-01:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"LEBT-010:PwrC-PSCH-01:CurR\"][\"value\"]+\" \"+datasources[\"POS\"][\"LEBT-010:PwrC-PSCH-01:CurR\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Vertical Steerer 1",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"LEBT-010:PwrC-PSCV-01:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"LEBT-010:PwrC-PSCV-01:CurR\"][\"value\"]+\" \"+datasources[\"POS\"][\"LEBT-010:PwrC-PSCV-01:CurR\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Horizontal Steerer 2",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"LEBT-010:PwrC-PSCH-02:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"LEBT-010:PwrC-PSCH-02:CurR\"][\"value\"]+\" \"+datasources[\"POS\"][\"LEBT-010:PwrC-PSCH-02:CurR\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Vertical Steerer 2",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"LEBT-010:PwrC-PSCV-02:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"LEBT-010:PwrC-PSCV-02:CurR\"][\"value\"]+\" \"+datasources[\"POS\"][\"LEBT-010:PwrC-PSCV-02:CurR\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Repeller",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"LEBT-010:PwrC-RepPS-01:PwrR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"LEBT-010:PwrC-RepPS-01:VolR\"][\"value\"]+\" \"+datasources[\"POS\"][\"LEBT-010:PwrC-RepPS-01:VolR\"][\"units\"]",
"off_text": "Off"
}
},
{
"type": "indicator",
"settings": {
"title": "Nitrogen",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"LEBT-010:Vac-VVA-01100:OpenR\"][\"value\"]",
"on_text": "datasources[\"POS\"][\"LEBT-010:Vac-VVMC-01100:FlwR\"][\"value\"]+\" \"+datasources[\"POS\"][\"LEBT-010:Vac-VVMC-01100:FlwR\"][\"units\"]",
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
{
"title": "Current time",
"width": 1,
"row": {
"1": 19,
"2": 11,
"3": 11,
"4": 19,
"6": 19
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1,
"6": 1
},
"col_width": 1,
"widgets": [
{
"type": "html",
"settings": {
"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
}
}
]
},
"4": 7,
"5": 11,
"6": 11,
"7": 11
},
"col": {
"1": 1,
"4": 2,
"5": 2,
"6": 2,
"7": 2
},
"col_width": 1,
"widgets": [
{
Emanuele Laface
committed
"type": "ragIndicator",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"beam\"]",
Emanuele Laface
committed
"green_text": "Beam is On",
"amber_text": "Signal Test",
"red_text": "Beam is Off"
}
},
{
"type": "text_widget",
"settings": {
"title": "Maximum Beam Current",
"size": "regular",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"max_curr\"][\"value\"]",
"animate": true,
"units": "mA"
}
},
{
"type": "text_widget",
"settings": {
"title": "Repetition Rate",
"size": "regular",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"ISrc-010:TS-EVG-01:Mxc1-Frequency-RB\"][\"value\"]",
"animate": true,
"units": " Hz"
}
},
{
"type": "text_widget",
"settings": {
"title": "Pulse Length",
"size": "regular",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"pulse\"][\"value\"]",
"animate": true,
"units": "ms"
}
},
{
"type": "indicator",
"settings": {
"title": "Faraday Cup",
Emanuele Laface
committed
"value": "!datasources[\"POS\"][\"LEBT-020:PBI-FC-001:MCU08-PositionR\"][\"value\"]",
"on_text": "In",
"off_text": "Out"
}
},
{
"type": "text_widget",
"settings": {
"title": "Iris",
"size": "regular",
"animate": true
}
},
{
"type": "text_widget",
"settings": {
"title": "Chopper Pulse Length",
"size": "regular",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"ISrc-010:ISS-EVR-Magtr:Pul1-Width-SP\"][\"value\"]",
"animate": true,
"units": "µs"
}
},
{
"type": "text_widget",
"settings": {
"title": "Trigger counter",
"size": "regular",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"ISrc-010:ISS-EVR-Magtr:Event-14-Cnt-I\"][\"value\"]",
"animate": true
}
}
]
},
{
"title": "Beam Current",
"width": 1,
"row": {
"4": 25,
"5": 1,
"6": 1,
"7": 1
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1,
"5": 3,
"6": 3,
"7": 3
},
"col_width": 4,
"widgets": [
{
"type": "flot_extended_plugin",
"settings": {
"plot_type": "line",
"legend": true,
"height": 4,
Emanuele Laface
committed
"value": "[{label: 'Ion Source', data:datasources[\"POS\"][\"ISrc-010:PBI-BCM-001:AI4-Compressed\"][\"value\"]}, {label: 'Faraday Cup', data:datasources[\"POS\"][\"LEBT-020:PBI-FC-001:AMC31-AOI11-ArrayDataComp\"][\"value\"]}, {label: 'LEBT', data:datasources[\"POS\"][\"LEBT-010:PBI-BCM-001:AI5-Compressed\"][\"value\"]}]",
"xticks": "",
"yticks": "",
"points": false,
"tooltip": false,
"zoom": "xy",
"axisLabels": "xaxes: [{axisLabel: 'test'}]"
}
}
]
}
],
"datasources": [
{
Emanuele Laface
committed
"name": "POS",
Emanuele Laface
committed
"url": "/data/pos.json",
},
{
"name": "Clock",
"type": "clock",
"settings": {
"refresh": 1
}