Skip to content
Snippets Groups Projects
dashboard.json 12.2 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
			},
			"col_width": 4,
			"widgets": [
				{
					"type": "html",
					"settings": {
						"html": "return \"<div style=\\\"position: static; margin-top: -15px;\\\"><img src=\\\"../img/ess-logo.svg\\\" \\\"><div class=\\\"tw-value\\\" style=\\\"font-size: 56px; color:#ffffff !important;position: relative; bottom: 35px; left: 120px;\\\">Public Operations Screen</div></img></div>\"",
						"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[\"Public Data\"][\"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",
						"value": "datasources[\"Public Data\"][\"NSO-LCR:Ops:MSL\"][\"value\"]",
						"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": {
						"html": "return \"<div class=\\\"tw-value\\\" style=\\\"font-size: 16px; width=100%; margin-top:10px; margin-left:10px; margin-right:10px;\\\">\"+ datasources[\"Public Data\"][\"NSO-LCR:Ops:Msg\"][\"value\"] +\"</div>\"",
						"height": 1
					}
				}
			]
		},
		{
			"title": "Ion Source",
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 43,
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 15,
				"3": 11,
				"4": 7,
				"5": 1,
				"6": 1,
				"7": 1
			},
			"col": {
				"1": 1,
				"2": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"3": 2,
Emanuele Laface's avatar
Emanuele Laface committed
				"4": 3,
				"5": 1,
				"6": 1,
				"7": 1
			},
			"col_width": 1,
			"widgets": [
				{
					"type": "indicator",
					"settings": {
						"title": "High Voltage",
						"value": "datasources[\"Public Data\"][\"ISrc-010:ISS-HVPS:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"ISrc-010:ISS-HVPS:VolR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"ISrc-010:ISS-HVPS:VolR\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Magnetron",
						"value": "datasources[\"Public Data\"][\"ISrc-010:ISS-Magtr:Setup.B6\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"ISrc-010:ISS-Magtr:PulsHLvlS\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"ISrc-010:ISS-Magtr:PulsHLvlS\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Coil 1",
						"value": "datasources[\"Public Data\"][\"ISrc-010:PwrC-CoilPS-01:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"ISrc-010:PwrC-CoilPS-01:CurR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"ISrc-010:PwrC-CoilPS-01:CurR\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Coil 2",
						"value": "datasources[\"Public Data\"][\"ISrc-010:PwrC-CoilPS-02:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"ISrc-010:PwrC-CoilPS-02:CurR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"ISrc-010:PwrC-CoilPS-02:CurR\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Coil 3",
						"value": "datasources[\"Public Data\"][\"ISrc-010:PwrC-CoilPS-03:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"ISrc-010:PwrC-CoilPS-03:CurR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"ISrc-010:PwrC-CoilPS-03:CurR\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Hydrogen",
						"value": "datasources[\"Public Data\"][\"ISrc-010:Vac-VVA-01100:OpenR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"ISrc-010:Vac-VVMC-01100:FlwR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"ISrc-010:Vac-VVMC-01100:FlwR\"][\"units\"]",
						"off_text": "Closed"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Repeller",
						"value": "datasources[\"Public Data\"][\"ISrc-010:PwrC-RepPS-01:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"ISrc-010:PwrC-RepPS-01:VolR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"ISrc-010:PwrC-RepPS-01:VolR\"][\"units\"]",
						"off_text": "Off"
					}
				}
			]
		},
		{
			"title": "LEBT",
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 59,
				"2": 35,
Emanuele Laface's avatar
Emanuele Laface committed
				"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",
						"value": "datasources[\"Public Data\"][\"LEBT-010:PwrC-SolPS-01:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"LEBT-010:PwrC-SolPS-01:CurR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"LEBT-010:PwrC-SolPS-01:CurR\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Solenoid 2",
						"value": "datasources[\"Public Data\"][\"LEBT-010:PwrC-SolPS-02:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"LEBT-010:PwrC-SolPS-02:CurR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"LEBT-010:PwrC-SolPS-02:CurR\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Horizontal Steerer 1",
						"value": "datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCH-01:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCH-01:CurR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCH-01:CurR\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Vertical Steerer 1",
						"value": "datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCV-01:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCV-01:CurR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCV-01:CurR\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Horizontal Steerer 2",
						"value": "datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCH-02:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCH-02:CurR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCH-02:CurR\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Vertical Steerer 2",
						"value": "datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCV-02:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCV-02:CurR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"LEBT-010:PwrC-PSCV-02:CurR\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Repeller",
						"value": "datasources[\"Public Data\"][\"LEBT-010:PwrC-RepPS-01:PwrR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"LEBT-010:PwrC-RepPS-01:VolR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"LEBT-010:PwrC-RepPS-01:VolR\"][\"units\"]",
						"off_text": "Off"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Nitrogen",
						"value": "datasources[\"Public Data\"][\"LEBT-010:Vac-VVA-01100:OpenR\"][\"value\"]",
						"on_text": "datasources[\"Public Data\"][\"LEBT-010:Vac-VVMC-01100:FlwR\"][\"value\"]+\" \"+datasources[\"Public Data\"][\"LEBT-010:Vac-VVMC-01100:FlwR\"][\"units\"]",
						"off_text": "Closed"
					}
				}
			]
		},
		{
			"title": "Beam Mode",
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 25,
				"2": 17,
				"3": 17,
Emanuele Laface's avatar
Emanuele Laface committed
				"4": 7,
				"5": 11,
				"6": 11,
				"7": 11
			},
			"col": {
				"1": 1,
				"2": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"3": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"4": 2,
				"5": 2,
				"6": 2,
				"7": 2
			},
			"col_width": 1,
			"widgets": [
				{
					"type": "indicator",
					"settings": {
						"title": "Beam Status",
						"value": "datasources[\"Public Data\"][\"beam\"]",
						"on_text": "Beam is On",
						"off_text": "Beam is Off"
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"title": "Maximum Beam Current",
						"size": "regular",
						"value": "datasources[\"Public Data\"][\"max_curr\"][\"value\"]",
						"animate": true,
						"units": "mA"
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"title": "Repetition Rate",
						"size": "regular",
						"value": "datasources[\"Public Data\"][\"ISrc-010:TS-EVG-01:Mxc1-Frequency-RB\"][\"value\"]",
						"animate": true,
						"units": " Hz"
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"title": "Pulse Length",
						"size": "regular",
						"value": "datasources[\"Public Data\"][\"pulse\"][\"value\"]",
						"animate": true,
						"units": "ms"
					}
				},
				{
					"type": "indicator",
					"settings": {
						"title": "Faraday Cup",
						"value": "!datasources[\"Public Data\"][\"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[\"Public Data\"][\"ISrc-010:ISS-EVR-Magtr:Pul1-Width-SP\"][\"value\"]",
						"animate": true,
						"units": "&#181;s"
					}
				},
				{
					"type": "text_widget",
					"settings": {
						"title": "Trigger counter",
						"size": "regular",
						"value": "datasources[\"Public Data\"][\"ISrc-010:ISS-EVR-Magtr:Event-14-Cnt-I\"][\"value\"]",
						"animate": true
					}
				}
			]
		},
Emanuele Laface's avatar
Emanuele Laface committed
		{
			"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
					}
				}
			]
		},
Emanuele Laface's avatar
Emanuele Laface committed
		{
			"title": "Beam Current",
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 77,
				"2": 53,
				"3": 35,
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[\"Public Data\"][\"ISrc-010:PBI-BCM-001:AI4-Compressed\"][\"value\"]}, {label: 'Faraday Cup', data:datasources[\"Public Data\"][\"LEBT-020:PBI-FC-001:AMC31-AOI11-ArrayData\"][\"value\"]}, {label: 'LEBT', data:datasources[\"Public Data\"][\"LEBT-010:PBI-BCM-001:AI5-Compressed\"][\"value\"]}]",
						"xticks": "",
						"yticks": "",
						"points": false,
						"tooltip": false,
						"zoom": "xy",
						"axisLabels": "xaxes: [{axisLabel: 'test'}]"
					}
				}
			]
		}
	],
	"datasources": [
		{
			"name": "Public Data",
			"type": "JSON",
			"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
				"url": "https://data.pos.esss.lu.se/getPublicData",
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"
			}
		}
	],
	"columns": 4
}