Skip to content
Snippets Groups Projects
dashboard.json 22.3 KiB
Newer Older
Emanuele Laface's avatar
Emanuele Laface committed
{
	"version": 1,
	"header_image": "",
Emanuele Laface's avatar
Emanuele Laface committed
	"allow_edit": false,
Emanuele Laface's avatar
Emanuele Laface committed
	"plugins": [],
	"panes": [
		{
			"width": 1,
			"row": {
				"1": 1,
				"2": 1,
				"3": 1,
				"4": 1,
				"5": 1,
				"6": 1
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col": {
				"1": 1,
				"2": 1,
				"3": 1,
				"4": 1,
				"5": 1,
				"6": 1
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col_width": 6,
Emanuele Laface's avatar
Emanuele Laface committed
			"widgets": [
				{
					"type": "html",
					"settings": {
						"html": "let clock = datasources[\"Clock\"][\"numeric_value\"]; // trick to trigger the update\nlet cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');\ndocument.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = \"\";\n\nvar title = \"\";\nif (datasources[\"gwhealth\"][\"gwstatus\"] == \"OK\") {\n\ttitle = \"Public Operations Screen\"; // Change this title. Try not to exceed the 30 chars\n}\nif (datasources[\"gwhealth\"][\"gwstatus\"] == \"KO\") {\n\ttitle = \"Public Operations Screen [Offline]\"; // Change this title. Try not to exceed the 30 chars\n}\n\nlet fontsize = Math.round((-0.66486486*title.length+66.67567568)*cols/4);\nlet lmargin = Math.round((0.43918919*title.length-4.05405405)+3.75*cols*cols-34.75*cols+79.75);\nlet width = 100-lmargin;\n\nvar text = `<div style=\\\"position: relative; margin-top: -15px; text-align: left;\\\">\n\t\t\t<div style=\\\"position: relative;\\\">\n\t\t\t\t<img src=\\\"../img/ess-logo.svg\\\" title=\\\"Designed by Emanuele Laface with p4p and Freeboard. Graphics by Dirk Nordt.\\\"></img>\n\t\t\t</div>\n<div class=\\\"tw-value\\\" style=\\\"font-size: `+String(fontsize)+`px; color:#ffffff !important; position: absolute; left: `+String(lmargin)+`%; width: `+String(width)+`%; height: 100%; justify-content: center; display: flex; align-items: center;\\\" title=\\\"Designed by Emanuele Laface with p4p and Freeboard. Graphics by Dirk Nordt.\\\">\n\t\t\t\t`+title+`\n\t\t\t</div>\n\t\t</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 p4p 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 p4p and Freeboard. Graphics by Dirk Nordt.\\\"></div></img></div>\";\n    document.getElementsByClassName('gs_w')[0].firstElementChild.firstElementChild.innerHTML = title;\n}\n\nreturn text;",
Emanuele Laface's avatar
Emanuele Laface committed
						"height": 2
					}
				}
			]
		},
Emanuele Laface's avatar
Emanuele Laface committed
			"title": "Levels",
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 19,
				"2": 19,
				"4": 19,
Emanuele Laface's avatar
Emanuele Laface committed
				"5": 19,
				"7": 1
			},
			"col": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 1,
				"2": 1,
				"4": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"5": 1,
				"7": 1
			},
			"col_width": 16,
			"widgets": [
				{
					"type": "flot_extended_plugin",
					"settings": {
						"plot_type": "bar",
						"legend": true,
						"height": 5,
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "let spokelevels = [[1, datasources[\"levels\"][\"Spk-010Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [2, datasources[\"levels\"][\"Spk-020Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [3, datasources[\"levels\"][\"Spk-030Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [4, datasources[\"levels\"][\"Spk-040Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [5, datasources[\"levels\"][\"Spk-050Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [6, datasources[\"levels\"][\"Spk-060Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [7, datasources[\"levels\"][\"Spk-070Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [8, datasources[\"levels\"][\"Spk-080Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [9, datasources[\"levels\"][\"Spk-090Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [10, datasources[\"levels\"][\"Spk-100Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [11, datasources[\"levels\"][\"Spk-110Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [12, datasources[\"levels\"][\"Spk-120Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [13, datasources[\"levels\"][\"Spk-130Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]]];\n\nlet mediumBetalevels = [[14, datasources[\"levels\"][\"MBL-010Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [15, datasources[\"levels\"][\"MBL-020Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [16, datasources[\"levels\"][\"MBL-030Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [17, datasources[\"levels\"][\"MBL-040Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [18, datasources[\"levels\"][\"MBL-050Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [19, datasources[\"levels\"][\"MBL-060Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [20, datasources[\"levels\"][\"MBL-070Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [21, datasources[\"levels\"][\"MBL-080Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [22, datasources[\"levels\"][\"MBL-090Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]]];\n\nlet highBetalevels = [[23, datasources[\"levels\"][\"HBL-010Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [24, datasources[\"levels\"][\"HBL-020Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [25, datasources[\"levels\"][\"HBL-030Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [26, datasources[\"levels\"][\"HBL-040Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [27, datasources[\"levels\"][\"HBL-050Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]]];\n\n\nvar data = [{data: spokelevels, color: \"#EE82EE\", label:\"Spokes\"},\n            {data: mediumBetalevels, color: \"#8A2BE2\", label:\"Medium β\"},\n            {data: highBetalevels, color: \"#7A5DC7\", label:\"High β\"}];\n\nreturn data;",
Emanuele Laface's avatar
Emanuele Laface committed
						"xticks": "let clock = datasources[\"Clock\"][\"numeric_value\"]; // trick to trigger the update\nlet cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');\n\nvar xticks = [[1, \"01 <br><center>← Source</center>\"],\n               [2, \"02\"],\n               [3, \"03\"],\n               [4, \"04\"],\n               [5, \"05\"],\n               [6, \"06\"],\n               [7, \"07\"],\n               [8, \"08\"],\n               [9, \"09\"],\n               [10, \"10\"],\n               [11, \"11\"],\n               [12, \"12\"],\n               [13, \"13\"],\n              [14, \"01\"],\n             [15, \"02\"],\n             [16, \"03\"],\n             [17, \"04\"],\n             [18, \"05\"],\n             [19, \"06\"],\n             [20, \"07\"],\n             [21, \"08\"],\n             [22, \"09\"],\n             [23, \"01\"],\n             [24, \"02\"],\n             [25, \"03\"],\n             [26, \"04\"],\n             [27, \"05<br><center>Target →</center>\"]];\n\nif (cols == 1) {\n    var xticks = [];\n    for (i=1; i<=13; i+=1) {\n        xticks.push([i,\"<div class=\\\"flot-tick-label tickLabele\\\" style=\\\"font-size: 7px;color:#ffffff\\\">\"+String(i)+\"</div>\"]);\n    }\n    for (i=14; i<=22; i+=1) {\n        xticks.push([i,\"<div class=\\\"flot-tick-label tickLabel\\\" style=\\\"font-size: 7px; color:#ffffff\\\">\"+String(i-13)+\"</div>\"]);\n    }\n\tfor (i=23; i<=27; i+=1) {\n        xticks.push([i,\"<div class=\\\"flot-tick-label tickLabel\\\" style=\\\"font-size: 7px; color:#ffffff\\\">\"+String(i-22)+\"</div>\"]);\n    }\n}\n\nreturn xticks;",
Emanuele Laface's avatar
Emanuele Laface committed
						"yticks": "",
Emanuele Laface's avatar
Emanuele Laface committed
						"zoom": ""
					}
				}
			]
		},
		{
			"title": "Cavities Temperature",
			"width": 1,
			"row": {
Emanuele Laface's avatar
Emanuele Laface committed
				"1": 7,
Emanuele Laface's avatar
Emanuele Laface committed
				"2": 7,
Emanuele Laface's avatar
Emanuele Laface committed
				"3": 7,
				"4": 7,
Emanuele Laface's avatar
Emanuele Laface committed
				"5": 7,
Emanuele Laface's avatar
Emanuele Laface committed
				"6": 7,
				"7": 17,
				"9": 17,
				"11": 17,
				"12": 17,
Emanuele Laface's avatar
Emanuele Laface committed
				"14": 17,
				"15": 17
Emanuele Laface's avatar
Emanuele Laface committed
			},
			"col": {
				"1": 1,
				"2": 1,
				"3": 1,
				"4": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"5": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"6": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"7": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"9": 1,
				"11": 1,
				"12": 1,
Emanuele Laface's avatar
Emanuele Laface committed
				"14": 1,
				"15": 1
Emanuele Laface's avatar
Emanuele Laface committed
			},
Emanuele Laface's avatar
Emanuele Laface committed
			"col_width": 6,
Emanuele Laface's avatar
Emanuele Laface committed
			"widgets": [
				{
Emanuele Laface's avatar
Emanuele Laface committed
					"type": "flot_extended_plugin",
Emanuele Laface's avatar
Emanuele Laface committed
					"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
						"plot_type": "bar",
						"legend": true,
						"height": 5,
Emanuele Laface's avatar
Emanuele Laface committed
						"value": "let spokeTemperatures = [[1, datasources[\"Temperature\"][\"Spk-010Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [2, datasources[\"Temperature\"][\"Spk-020Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [3, datasources[\"Temperature\"][\"Spk-030Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [4, datasources[\"Temperature\"][\"Spk-040Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [5, datasources[\"Temperature\"][\"Spk-050Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [6, datasources[\"Temperature\"][\"Spk-060Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [7, datasources[\"Temperature\"][\"Spk-070Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [8, datasources[\"Temperature\"][\"Spk-080Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [9, datasources[\"Temperature\"][\"Spk-090Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [10, datasources[\"Temperature\"][\"Spk-100Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [11, datasources[\"Temperature\"][\"Spk-110Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [12, datasources[\"Temperature\"][\"Spk-120Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [13, datasources[\"Temperature\"][\"Spk-130Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]]];\n\nlet mediumBetaTemperatures = [[14, datasources[\"Temperature\"][\"MBL-010Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [15, datasources[\"Temperature\"][\"MBL-020Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [16, datasources[\"Temperature\"][\"MBL-030Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [17, datasources[\"Temperature\"][\"MBL-040Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [18, datasources[\"Temperature\"][\"MBL-050Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [19, datasources[\"Temperature\"][\"MBL-060Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [20, datasources[\"Temperature\"][\"MBL-070Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [21, datasources[\"Temperature\"][\"MBL-080Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [22, datasources[\"Temperature\"][\"MBL-090Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]]];\n\nlet highBetaTemperatures = [[23, datasources[\"Temperature\"][\"HBL-010Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [24, datasources[\"Temperature\"][\"HBL-020Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [25, datasources[\"Temperature\"][\"HBL-030Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [26, datasources[\"Temperature\"][\"HBL-040Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]],\n    [27, datasources[\"Temperature\"][\"HBL-050Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]]];\n\nlet temps = [datasources[\"Temperature\"][\"Spk-010Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-020Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-030Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-040Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-050Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-060Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-070Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-080Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-090Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-100Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-110Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-120Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"Spk-130Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"MBL-010Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"MBL-020Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"MBL-030Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"MBL-040Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"MBL-050Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"MBL-060Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"MBL-070Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"MBL-080Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"MBL-090Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"HBL-010Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"HBL-020Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"HBL-030Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"HBL-040Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\n    datasources[\"Temperature\"][\"HBL-050Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]];\n    \nlet avgTemp = temps.reduce((acc, val) => acc + val, 0) / temps.length;\n\nvar data = [{data: spokeTemperatures, color: \"#FFC0CB\", label:\"Spokes\"},\n            {data: mediumBetaTemperatures, color: \"#FF6347\", label:\"Medium β\"},\n            {data: highBetaTemperatures, color: \"#B22222\", label:\"High β\"}];\n\nif (avgTemp < 150) {\n    data = [{data: spokeTemperatures, color: \"#98FB98\", label:\"Spokes\"},\n            {data: mediumBetaTemperatures, color: \"#32CD32\", label:\"Medium β\"},\n            {data: highBetaTemperatures, color: \"#006400\", label:\"High β\"}];\n}\n\nif (avgTemp < 40) {\n    data = [{data: spokeTemperatures, color: \"#ADD8E6\", label:\"Spokes\"},\n            {data: mediumBetaTemperatures, color: \"#5DADE2\", label:\"Medium β\"},\n            {data: highBetaTemperatures, color: \"#1E90FF\", label:\"High β\"}];\n}\n\nreturn data;\n",
Emanuele Laface's avatar
Emanuele Laface committed
						"xticks": "let clock = datasources[\"Clock\"][\"numeric_value\"]; // trick to trigger the update\nlet cols = document.getElementsByClassName('gs_w')[0].getAttribute('data-sizex');\n\nvar xticks = [[1, \"01 <br><center>← Source</center>\"],\n               [2, \"02\"],\n               [3, \"03\"],\n               [4, \"04\"],\n               [5, \"05\"],\n               [6, \"06\"],\n               [7, \"07\"],\n               [8, \"08\"],\n               [9, \"09\"],\n               [10, \"10\"],\n               [11, \"11\"],\n               [12, \"12\"],\n               [13, \"13\"],\n              [14, \"01\"],\n             [15, \"02\"],\n             [16, \"03\"],\n             [17, \"04\"],\n             [18, \"05\"],\n             [19, \"06\"],\n             [20, \"07\"],\n             [21, \"08\"],\n             [22, \"09\"],\n             [23, \"01\"],\n             [24, \"02\"],\n             [25, \"03\"],\n             [26, \"04\"],\n             [27, \"05<br><center>Target →</center>\"]];\n\nif (cols == 1) {\n    var xticks = [];\n    for (i=1; i<=13; i+=1) {\n        xticks.push([i,\"<div class=\\\"flot-tick-label tickLabele\\\" style=\\\"font-size: 7px;color:#ffffff\\\">\"+String(i)+\"</div>\"]);\n    }\n    for (i=14; i<=22; i+=1) {\n        xticks.push([i,\"<div class=\\\"flot-tick-label tickLabel\\\" style=\\\"font-size: 7px; color:#ffffff\\\">\"+String(i-13)+\"</div>\"]);\n    }\n\tfor (i=23; i<=27; i+=1) {\n        xticks.push([i,\"<div class=\\\"flot-tick-label tickLabel\\\" style=\\\"font-size: 7px; color:#ffffff\\\">\"+String(i-22)+\"</div>\"]);\n    }\n}\n\nreturn xticks;",
Emanuele Laface's avatar
Emanuele Laface committed
						"yticks": "let maxtemp = Math.max(datasources[\"Temperature\"][\"Spk-010Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-020Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-030Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-040Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-050Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-060Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-070Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-080Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-090Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-100Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-110Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-120Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"Spk-130Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"MBL-010Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"MBL-020Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"MBL-030Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"MBL-040Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"MBL-050Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"MBL-060Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"MBL-070Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"MBL-080Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"MBL-090Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"HBL-010Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"HBL-020Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"HBL-030Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"HBL-040Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"],\ndatasources[\"Temperature\"][\"HBL-050Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}\"][\"value\"]);\n                                   \nlet step=maxtemp/5;\n                                  \nvar yticks=[];\nfor (i=0; i<=maxtemp+step; i+=step) {\n    yticks.push([i,i.toFixed(1).toString()]);\n}\n\nyticks[yticks.length-1] = [yticks[yticks.length-1][0],\"T [K]\"]; \n\nreturn yticks;\n",
Emanuele Laface's avatar
Emanuele Laface committed
						"points": false,
						"zoom": "xy"
Emanuele Laface's avatar
Emanuele Laface committed
					}
				}
			]
Emanuele Laface's avatar
Emanuele Laface committed
		}
	],
	"datasources": [
		{
			"name": "Clock",
			"type": "clock",
			"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
		},
		{
Emanuele Laface's avatar
Emanuele Laface committed
			"name": "Temperature",
			"type": "JSON",
			"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
				"url": "/data/api/v2/pvget/Spk-010Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-020Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-030Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-040Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-050Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-060Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-070Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-080Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-090Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-100Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-110Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-120Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},Spk-130Crm:Cryo-TT-004:MeasValue.{dbnd:{rel:1.0}},MBL-010Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},MBL-020Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},MBL-030Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},MBL-040Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},MBL-050Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},MBL-060Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},MBL-070Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},MBL-080Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},MBL-090Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},HBL-010Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},HBL-020Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},HBL-030Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},HBL-040Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}},HBL-050Crm:Cryo-TT-019:MeasValue.{dbnd:{rel:1.0}}",
				"use_thingproxy": true,
				"refresh": 10,
Emanuele Laface's avatar
Emanuele Laface committed
				"method": "GET"
			}
		},
		{
			"name": "gwhealth",
			"type": "JSON",
			"settings": {
				"url": "/data/-/gwhealth/NSO:Ops:SID",
				"use_thingproxy": true,
				"refresh": 10,
				"method": "GET"
Emanuele Laface's avatar
Emanuele Laface committed
		},
		{
Emanuele Laface's avatar
Emanuele Laface committed
			"name": "levels",
Emanuele Laface's avatar
Emanuele Laface committed
			"type": "JSON",
			"settings": {
Emanuele Laface's avatar
Emanuele Laface committed
				"url": "/data/api/v2/pvget/Spk-010Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-020Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-030Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-040Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-050Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-060Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-070Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-080Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-090Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-100Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-110Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-120Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},Spk-130Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},MBL-010Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},MBL-020Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},MBL-030Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},MBL-040Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},MBL-050Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},MBL-060Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},MBL-070Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},MBL-080Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},MBL-090Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},HBL-010Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},HBL-020Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},HBL-030Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},HBL-040Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}},HBL-050Crm:Cryo-LT-001:MeasValue.{dbnd:{rel:1.0}}",
Emanuele Laface's avatar
Emanuele Laface committed
				"use_thingproxy": true,
				"refresh": 10,
				"method": "GET"
			}
Emanuele Laface's avatar
Emanuele Laface committed
		}
	],
Emanuele Laface's avatar
Emanuele Laface committed
}