Skip to content
Snippets Groups Projects
dashboard.json 15.8 KiB
Newer Older
Emanuele Laface's avatar
Emanuele Laface committed
{
	"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
			},
Emanuele Laface's avatar
Emanuele Laface committed
			"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",
Emanuele Laface's avatar
Emanuele Laface committed
						"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\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"animate": false
					}
				}
			]
		},
		{
			"title": "Operations",
Emanuele Laface's avatar
Emanuele Laface committed
			"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": [
				{
Emanuele Laface's avatar
Emanuele Laface committed
					"type": "html",
Emanuele Laface's avatar
Emanuele Laface committed
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"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
Emanuele Laface's avatar
Emanuele Laface committed
					}
				},
				{
					"type": "html",
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"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>\"",
Emanuele Laface's avatar
Emanuele Laface committed
				}
			]
		},
		{
			"title": "Test Stand 2",
Emanuele Laface's avatar
Emanuele Laface committed
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 11,
				"3": 7,
Emanuele Laface's avatar
Emanuele Laface committed
				"5": 7,
				"6": 7,
				"7": 7
			},
			"col": {
				"1": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"3": 3,
				"4": 1,
				"5": 3,
				"6": 3,
				"7": 3
			},
			"col_width": 1,
			"widgets": [
Emanuele Laface's avatar
Emanuele Laface committed
					"type": "html",
Emanuele Laface's avatar
Emanuele Laface committed
						"html": "var date = new Date(datasources[\"POS\"][\"NSO-LCR:Ops:TSSL\"][\"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:TSSL\"][\"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
Emanuele Laface's avatar
Emanuele Laface committed
				{
					"type": "html",
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"html": "var date = new Date(datasources[\"POS\"][\"NSO-LCR:Ops:TSMsg\"][\"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:TSMsg\"][\"value\"] +\"</div>\"",
Emanuele Laface's avatar
Emanuele Laface committed
						"height": 1
					}
				}
			]
		},
		{
			"title": "Current time",
Emanuele Laface's avatar
Emanuele Laface committed
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"3": 11,
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col": {
				"1": 1,
				"2": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"5": 1,
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col_width": 1,
			"widgets": [
				{
Emanuele Laface's avatar
Emanuele Laface committed
					"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
Emanuele Laface's avatar
Emanuele Laface committed
					}
				}
			]
		},
		{
			"title": "LEBT",
			"width": 1,
			"row": {
				"1": 57,
				"2": 35,
				"3": 13,
Emanuele Laface's avatar
Emanuele Laface committed
				"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\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"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\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"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\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"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\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"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\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"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\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"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\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"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\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"off_text": "Closed"
					}
				}
			]
		},
		{
			"title": "Beam Mode",
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 19,
Emanuele Laface's avatar
Emanuele Laface committed
				"4": 7,
				"5": 11,
				"6": 11,
				"7": 11
			},
			"col": {
				"1": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"4": 2,
				"5": 2,
				"6": 2,
				"7": 2
			},
			"col_width": 1,
			"widgets": [
				{
Emanuele Laface's avatar
Emanuele Laface committed
					"settings": {
						"title": "Beam Status",
						"green_text": "Beam is On",
						"amber_text": "Signal Test",
						"red_text": "Beam is Off"
Emanuele Laface's avatar
Emanuele Laface committed
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"title": "Maximum Beam Current",
						"size": "regular",
						"value": "datasources[\"POS\"][\"max_curr\"][\"value\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"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\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"animate": true,
						"units": " Hz"
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"title": "Pulse Length",
						"size": "regular",
						"value": "datasources[\"POS\"][\"pulse\"][\"value\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"animate": true,
						"units": "ms"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Faraday Cup",
						"value": "datasources[\"POS\"][\"LEBT-020:PBI-FC-001:MCU08-PositionR\"][\"value\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"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\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"animate": true,
						"units": "&#181;s"
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"title": "Trigger counter",
						"size": "regular",
						"value": "datasources[\"POS\"][\"ISrc-010:ISS-EVR-Magtr:Event-14-Cnt-I\"][\"value\"]",
Emanuele Laface's avatar
Emanuele Laface committed
						"animate": true
					}
				}
			]
		},
		{
			"title": "Ion Source",
			"width": 1,
			"row": {
				"1": 41,
				"2": 19,
				"3": 17,
				"4": 7,
				"5": 1,
				"6": 1,
				"7": 1
			},
			"col": {
				"1": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 1,
				"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"
					}
				}
			]
		},
Emanuele Laface's avatar
Emanuele Laface committed
		{
			"title": "Beam Current",
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 53,
Emanuele Laface's avatar
Emanuele Laface committed
				"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\"]}]",
Emanuele Laface's avatar
Emanuele Laface committed
						"xticks": "",
						"yticks": "",
						"points": false,
						"tooltip": false,
						"zoom": "xy",
						"axisLabels": "xaxes: [{axisLabel: 'test'}]"
					}
				}
			]
		}
	],
	"datasources": [
		{
Emanuele Laface's avatar
Emanuele Laface committed
			"type": "JSON",
			"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
				"use_thingproxy": false,
Emanuele Laface's avatar
Emanuele Laface committed
				"refresh": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"method": "GET"
			}
		},
		{
			"name": "Clock",
			"type": "clock",
			"settings": {
				"refresh": 1
			}
Emanuele Laface's avatar
Emanuele Laface committed
		}
	],
	"columns": 4
}