{ "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: 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", "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", "value": "datasources[\"POS\"][\"NSO-LCR:Ops:SID\"][\"value\"]", "animate": false } } ] }, { "title": "Current time", "width": 1, "row": { "1": 81, "2": 11, "3": 7, "4": 19, "5": 19, "6": 19 }, "col": { "1": 1, "2": 1, "3": 2, "4": 1, "5": 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 } } ] }, { "title": "LEBT", "width": 1, "row": { "1": 37, "2": 33, "3": 7, "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", "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", "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", "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", "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", "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", "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", "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", "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": "Operations", "width": 1, "row": { "1": 11, "2": 7, "3": 11, "4": 11, "5": 7, "6": 7, "7": 7 }, "col": { "1": 1, "2": 2, "3": 1, "4": 1, "5": 2, "6": 2, "7": 2 }, "col_width": 1, "widgets": [ { "type": "html", "settings": { "html": "var date = new Date(datasources[\"POS\"][\"NSO-LCR:Ops:MSL\"][\"timestamp\"]*1e3);\nreturn \"<div class=\\\"widget\\\" data-bind=\\\"widget: true, css:{fillsize:fillSize}\\\"><div class=\\\"tw-display\\\"><div class=\\\"tw-tr\\\"><h2 class=\\\"section-title tw-title tw-td\\\">Shift Leader</h2></div><div class=\\\"tw-tr\\\"><div class=\\\"tw-value-wrapper tw-td\\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 30px; max-width: 100%;\\\" title=\\\" \"+date+\"\\\">\"+datasources[\"POS\"][\"NSO-LCR:Ops:MSL\"][\"value\"]+\"</div><div class=\\\"tw-unit\\\" style=\\\"display: none;\\\"></div></div></div><div class=\\\"tw-tr\\\"><div class=\\\"tw-sparkline tw-td\\\" style=\\\"display: none;\\\"></div></div></div></div>\"", "height": 1 } }, { "type": "html", "settings": { "html": "var date = new Date(datasources[\"POS\"][\"NSO-LCR: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-LCR:Ops:Msg\"][\"value\"] +\"</div>\"", "height": 2 } } ] }, { "title": "Ion Source", "width": 1, "row": { "1": 55, "2": 17, "3": 13, "4": 7, "5": 1, "6": 1, "7": 1 }, "col": { "1": 1, "2": 1, "3": 2, "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" } } ] }, { "title": "Beam Mode", "width": 1, "row": { "1": 19, "2": 15, "3": 19, "4": 7, "5": 11, "6": 11, "7": 11 }, "col": { "1": 1, "2": 2, "3": 1, "4": 2, "5": 2, "6": 2, "7": 2 }, "col_width": 1, "widgets": [ { "type": "ragIndicator", "settings": { "title": "Beam Status", "value": "2", "green_text": "Beam is On", "amber_text": "Signal Test", "red_text": "Beam is Off" } }, { "type": "text_widget", "settings": { "title": "Maximum Beam Current", "size": "regular", "value": "datasources[\"POS\"][\"max_curr\"][\"value\"]", "animate": true, "units": "mA" } }, { "type": "text_widget", "settings": { "title": "Repetition Rate", "size": "regular", "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", "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", "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", "value": "datasources[\"POS\"][\"ISrc-010:ISS-EVR-Magtr:Event-14-Cnt-I\"][\"value\"]", "animate": true } } ] }, { "title": "Beam Current", "width": 1, "row": { "1": 71, "2": 51, "3": 37, "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, "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": [ { "name": "POS", "type": "JSON", "settings": { "url": "/data/api/v1/caget/ISrc-010:ISS-Magtr:PulsHLvlS,ISrc-010:ISS-Magtr:Setup.B6,ISrc-010:PwrC-RepPS-01:PwrR,ISrc-010:PwrC-RepPS-01:VolR,LEBT-010:PwrC-RepPS-01:PwrR,LEBT-010:PwrC-RepPS-01:VolR,ISrc-010:ISS-HVPS:PwrR,ISrc-010:ISS-HVPS:VolR,ISrc-010:TS-EVG-01:Mxc1-Frequency-RB,ISrc-010:ISS-EVR-Magtr:Pul0-Width-RB,ISrc-010:Vac-VVMC-01100:FlwR,LEBT-010:Vac-VVMC-01100:FlwR,ISrc-010:Vac-VVA-01100:OpenR,LEBT-010:Vac-VVA-01100:OpenR,LEBT-010:Vac-VVS-20000:ClosedR,ISrc-010:PwrC-CoilPS-01:CurR,ISrc-010:PwrC-CoilPS-02:CurR,ISrc-010:PwrC-CoilPS-03:CurR,ISrc-010:PwrC-CoilPS-01:PwrR,ISrc-010:PwrC-CoilPS-02:PwrR,ISrc-010:PwrC-CoilPS-03:PwrR,LEBT-010:PwrC-SolPS-01:PwrR,LEBT-010:PwrC-SolPS-01:CurR,LEBT-010:PwrC-SolPS-02:PwrR,LEBT-010:PwrC-SolPS-02:CurR,LEBT-010:PwrC-PSCH-01:PwrR,LEBT-010:PwrC-PSCH-01:CurR,LEBT-010:PwrC-PSCH-02:PwrR,LEBT-010:PwrC-PSCH-02:CurR,LEBT-010:PwrC-PSCV-01:PwrR,LEBT-010:PwrC-PSCV-01:CurR,LEBT-010:PwrC-PSCV-02:PwrR,LEBT-010:PwrC-PSCV-02:CurR,ISrc-010:ISS-EVR-Magtr:Pul1-Width-SP,NSO-LCR:Ops:Msg,NSO-LCR:Ops:SID,NSO-LCR:Ops:MSL,NSO-LCR:Ops:TSMsg,NSO-LCR:Ops:TSSL,ISrc-010:PBI-BCM-001:AI4-Compressed,LEBT-010:PBI-BCM-001:AI5-Compressed,LEBT-020:PBI-FC-001:AMC31-AOI11-ArrayDataComp,LEBT-020:PBI-FC-001:MCU08-PositionR,ISrc-010:ISS-EVR-Magtr:Event-14-Cnt-I", "use_thingproxy": false, "refresh": 10, "method": "GET" } }, { "name": "Clock", "type": "clock", "settings": { "refresh": 1 } } ], "columns": 4 }