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: 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\"]",
"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": {
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"NSO-LCR:Ops:MSL\"][\"value\"]",
},
{
"type": "html",
"settings": {
"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
}
"5": 7,
"6": 7,
"7": 7
},
"col": {
"1": 1,
"3": 3,
"4": 1,
"5": 3,
"6": 3,
"7": 3
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"title": "Shift Leader",
"size": "regular",
"value": "datasources[\"POS\"][\"NSO-LCR:Ops:TSSL\"][\"value\"]",
"animate": true
}
},
"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:TSMsg\"][\"value\"] +\"</div>\"",
"4": 1,
"5": 19,
"6": 19
"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
}
}
]
},
{
"title": "LEBT",
"width": 1,
"row": {
"1": 57,
"2": 35,
"3": 13,
"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\"]",
"off_text": "Closed"
}
}
]
},
{
"title": "Beam Mode",
"width": 1,
"row": {
"1": 23,
"2": 17,
"3": 13,
"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",
"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\"]",
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
{
"title": "Ion Source",
"width": 1,
"row": {
"1": 41,
"2": 19,
"3": 17,
"4": 7,
"5": 1,
"6": 1,
"7": 1
},
"col": {
"1": 1,
"2": 2,
"3": 1,
"4": 3,
"5": 1,
"6": 1,
"7": 1
},
"col_width": 1,
"widgets": [
{
"type": "indicator",
"settings": {
"title": "High Voltage",
"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",
"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",
"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",
"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",
"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",
"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",
"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"
}
}
]
},
"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
}