Skip to content
Snippets Groups Projects
Commit 19cafbe1 authored by Emanuele Laface's avatar Emanuele Laface
Browse files

ccg page temp

parent 0d2849b4
No related branches found
No related tags found
No related merge requests found
Pipeline #115125 passed
{
"version": 1,
"header_image": "",
"allow_edit": true,
"plugins": [],
"panes": [],
"datasources": [],
"columns": 4
}
\ No newline at end of file
{ {
"version": 1, "version": 1,
"header_image": "", "header_image": "",
"allow_edit": true, "allow_edit": false,
"plugins": [], "plugins": [],
"panes": [ "panes": [
{ {
...@@ -68,9 +68,9 @@ ...@@ -68,9 +68,9 @@
"title": "ISRC / LEBT", "title": "ISRC / LEBT",
"width": 1, "width": 1,
"row": { "row": {
"1": 35, "1": 11,
"2": 27, "2": 23,
"3": 19, "3": 11,
"4": 11, "4": 11,
"5": 1, "5": 1,
"7": 1, "7": 1,
...@@ -97,13 +97,443 @@ ...@@ -97,13 +97,443 @@
"plot_type": "line", "plot_type": "line",
"legend": true, "legend": true,
"height": 5, "height": 5,
"value": "datasources[\"Clock\"][\"numeric_value\"];\nvar series = document.getElementById(\"time-series\").value;\n\nlet data = [\n {label: \"LEBT-010:Vac-VGC-10000:PrsR\", data: datasources[series][\"LEBT-010:Vac-VGC-10000:PrsR\"]},\n {label: \"LEBT-010:Vac-VGC-30000:PrsR\", data: datasources[series][\"LEBT-010:Vac-VGC-30000:PrsR\"]}\n];\n\nfreeboard.showLoadingIndicator(false);\nreturn data;\n", "value": "datasources[\"Clock\"][\"numeric_value\"];\nvar series = document.getElementById(\"time-series\").value;\n\nlet pvs = [\"LEBT-010:Vac-VGC-10000:PrsR\", \"LEBT-010:Vac-VGC-30000:PrsR\"];\nvar data = [];\n\npvs.forEach(function (item, index) {\n data.push({label: item, data: datasources[series][item]});\n});\n\nfreeboard.showLoadingIndicator(false);\nreturn data;\n",
"xticks": "6", "xticks": "6",
"x_timestamp": true, "x_timestamp": true,
"zoom": "xy" "zoom": "xy"
} }
} }
] ]
},
{
"title": "RFQ",
"width": 1,
"row": {
"1": 31,
"2": 11,
"3": 27,
"4": 27
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1
},
"col_width": 4,
"widgets": [
{
"type": "flot_extended_plugin",
"settings": {
"plot_type": "line",
"legend": true,
"height": 5,
"value": "datasources[\"Clock\"][\"numeric_value\"];\nvar series = document.getElementById(\"time-series\").value;\n\nlet pvs = [\"RFQ-010:Vac-VGC-10000:PrsR\",\"RFQ-010:Vac-VGC-20000:PrsR\",\"RFQ-010:Vac-VGC-30000:PrsR\",\"RFQ-010:Vac-VGC-40000:PrsR\"];\nvar data = [];\n\npvs.forEach(function (item, index) {\n data.push({label: item, data: datasources[series][item]});\n});\n\nfreeboard.showLoadingIndicator(false);\nreturn data;\n",
"xticks": "6",
"x_timestamp": true,
"zoom": "xy"
}
}
]
},
{
"title": "MEBT",
"width": 1,
"row": {
"1": 59,
"2": 39,
"3": 47,
"4": 43
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1
},
"col_width": 4,
"widgets": [
{
"type": "flot_extended_plugin",
"settings": {
"plot_type": "line",
"legend": true,
"height": 5,
"value": "datasources[\"Clock\"][\"numeric_value\"];\nvar series = document.getElementById(\"time-series\").value;\n\nlet pvs = [\"MEBT-010:Vac-VGC-10000:PrsR\",\"MEBT-010:Vac-VGC-30000:PrsR\",\"MEBT-010:Vac-VGC-40000:PrsR\"];\nvar data = [];\n\npvs.forEach(function (item, index) {\n data.push({label: item, data: datasources[series][item]});\n});\n\nfreeboard.showLoadingIndicator(false);\nreturn data;\n",
"xticks": "6",
"x_timestamp": true,
"zoom": "xy"
}
}
]
},
{
"title": "DTL",
"width": 1,
"row": {
"1": 83,
"2": 51,
"3": 63,
"4": 59
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1
},
"col_width": 4,
"widgets": [
{
"type": "flot_extended_plugin",
"settings": {
"plot_type": "line",
"legend": true,
"height": 5,
"value": "datasources[\"Clock\"][\"numeric_value\"];\nvar series = document.getElementById(\"time-series\").value;\n\nlet pvs = [\"DTL-010:Vac-VGC-10000:PrsR\",\"DTL-010:Vac-VGC-20000:PrsR\",\"DTL-010:Vac-VGC-50000:PrsR\"];\nvar data = [];\n\npvs.forEach(function (item, index) {\n data.push({label: item, data: datasources[series][item]});\n});\n\nfreeboard.showLoadingIndicator(false);\nreturn data;\n",
"xticks": "6",
"x_timestamp": true,
"zoom": "xy"
}
}
]
},
{
"title": "LEBT-010:Vac-VGC-10000:PrsR",
"width": 1,
"row": {
"1": 23,
"2": 35,
"3": 23,
"4": 23
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 2
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"realtime\"][\"LEBT-010:Vac-VGC-10000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBar"
}
}
]
},
{
"title": "LEBT-010:Vac-VGC-30000:PrsR",
"width": 1,
"row": {
"1": 27,
"2": 35,
"3": 23,
"4": 23
},
"col": {
"1": 1,
"2": 2,
"3": 2,
"4": 1
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"title": "",
"size": "regular",
"value": "datasources[\"realtime\"][\"LEBT-010:Vac-VGC-30000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBar"
}
}
]
},
{
"title": "RFQ-010:Vac-VGC-10000:PrsR",
"width": 1,
"row": {
"1": 43,
"2": 63,
"3": 39,
"4": 39
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"realtime\"][\"RFQ-010:Vac-VGC-10000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBar"
}
}
]
},
{
"title": "RFQ-010:Vac-VGC-20000:PrsR",
"width": 1,
"row": {
"1": 47,
"2": 63,
"3": 39,
"4": 39
},
"col": {
"1": 1,
"2": 2,
"3": 2,
"4": 2
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"realtime\"][\"RFQ-010:Vac-VGC-20000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBar"
}
}
]
},
{
"title": "RFQ-010:Vac-VGC-30000:PrsR",
"width": 1,
"row": {
"1": 51,
"2": 67,
"3": 39,
"4": 39
},
"col": {
"1": 1,
"2": 1,
"3": 3,
"4": 3
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"realtime\"][\"RFQ-010:Vac-VGC-30000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBar"
}
}
]
},
{
"title": "RFQ-010:Vac-VGC-40000:PrsR",
"width": 1,
"row": {
"1": 55,
"2": 67,
"3": 43,
"4": 39
},
"col": {
"1": 1,
"2": 2,
"3": 2,
"4": 4
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"realtime\"][\"RFQ-010:Vac-VGC-40000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBar"
}
}
]
},
{
"title": "MEBT-010:Vac-VGC-10000:PrsR",
"width": 1,
"row": {
"1": 71,
"2": 71,
"3": 59,
"4": 55
},
"col": {
"1": 1,
"2": 1,
"3": 1,
"4": 1
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"realtime\"][\"MEBT-010:Vac-VGC-10000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBar"
}
}
]
},
{
"title": "MEBT-010:Vac-VGC-30000:PrsR",
"width": 1,
"row": {
"1": 75,
"2": 71,
"3": 59,
"4": 55
},
"col": {
"1": 1,
"2": 2,
"3": 2,
"4": 2
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"realtime\"][\"MEBT-010:Vac-VGC-30000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBet"
}
}
]
},
{
"title": "MEBT-010:Vac-VGC-40000:PrsR",
"width": 1,
"row": {
"1": 79,
"2": 75,
"3": 59,
"4": 55
},
"col": {
"1": 1,
"2": 1,
"3": 3,
"4": 3
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"realtime\"][\"MEBT-010:Vac-VGC-40000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBar"
}
}
]
},
{
"title": "DTL-010:Vac-VGC-10000:PrsR",
"width": 1,
"row": {
"1": 95,
"2": 75,
"3": 75,
"4": 71
},
"col": {
"1": 1,
"2": 2,
"3": 1,
"4": 1
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"realtime\"][\"DTL-010:Vac-VGC-10000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBar"
}
}
]
},
{
"title": "DTL-010:Vac-VGC-20000:PrsR",
"width": 1,
"row": {
"1": 99,
"2": 79,
"3": 75,
"4": 71
},
"col": {
"1": 1,
"2": 1,
"3": 2,
"4": 2
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"realtime\"][\"DTL-010:Vac-VGC-20000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBar"
}
}
]
},
{
"title": "DTL-010:Vac-VGC-50000:PrsR",
"width": 1,
"row": {
"1": 103,
"2": 79,
"3": 75,
"4": 71
},
"col": {
"1": 1,
"2": 2,
"3": 3,
"4": 3
},
"col_width": 1,
"widgets": [
{
"type": "text_widget",
"settings": {
"size": "regular",
"value": "datasources[\"realtime\"][\"DTL-010:Vac-VGC-50000:PrsR\"][\"value\"]",
"animate": true,
"units": "mBar"
}
}
]
} }
], ],
"datasources": [ "datasources": [
...@@ -181,9 +611,21 @@ ...@@ -181,9 +611,21 @@
"url": "/data/api/v1/archiver/LEBT-010:Vac-VGC-10000:PrsR,LEBT-010:Vac-VGC-30000:PrsR,RFQ-010:Vac-VGC-10000:PrsR,RFQ-010:Vac-VGC-20000:PrsR,RFQ-010:Vac-VGC-30000:PrsR,RFQ-010:Vac-VGC-40000:PrsR,MEBT-010:Vac-VGC-10000:PrsR,MEBT-010:Vac-VGC-30000:PrsR,MEBT-010:Vac-VGC-40000:PrsR,DTL-010:Vac-VGC-10000:PrsR,DTL-010:Vac-VGC-20000:PrsR,DTL-010:Vac-VGC-50000:PrsR/600/100/freeboard", "url": "/data/api/v1/archiver/LEBT-010:Vac-VGC-10000:PrsR,LEBT-010:Vac-VGC-30000:PrsR,RFQ-010:Vac-VGC-10000:PrsR,RFQ-010:Vac-VGC-20000:PrsR,RFQ-010:Vac-VGC-30000:PrsR,RFQ-010:Vac-VGC-40000:PrsR,MEBT-010:Vac-VGC-10000:PrsR,MEBT-010:Vac-VGC-30000:PrsR,MEBT-010:Vac-VGC-40000:PrsR,DTL-010:Vac-VGC-10000:PrsR,DTL-010:Vac-VGC-20000:PrsR,DTL-010:Vac-VGC-50000:PrsR/600/100/freeboard",
"use_thingproxy": false, "use_thingproxy": false,
"refresh": 10, "refresh": 10,
"method": "GET" "method": "GET",
"name": "live"
}
},
{
"name": "realtime",
"type": "JSON",
"settings": {
"url": "/data/api/v2/pvget/LEBT-010:Vac-VGC-10000:PrsR,LEBT-010:Vac-VGC-30000:PrsR,RFQ-010:Vac-VGC-10000:PrsR,RFQ-010:Vac-VGC-20000:PrsR,RFQ-010:Vac-VGC-30000:PrsR,RFQ-010:Vac-VGC-40000:PrsR,MEBT-010:Vac-VGC-10000:PrsR,MEBT-010:Vac-VGC-30000:PrsR,MEBT-010:Vac-VGC-40000:PrsR,DTL-010:Vac-VGC-10000:PrsR,DTL-010:Vac-VGC-20000:PrsR,DTL-010:Vac-VGC-50000:PrsR",
"use_thingproxy": true,
"refresh": 10,
"method": "GET",
"name": "realtime"
} }
} }
], ],
"columns": 4 "columns": 4
} }
\ No newline at end of file
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
self.reset = function(e) { self.reset = function(e) {
self.zoom(e, { self.zoom(e, {
xaxis: {from: null, to: null}, xaxis: {from: null, to: null},
yaxis: {from: null, to: null}, yaxis: {from: null, to: null},
}) })
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
self.zoom = function (event, ranges) { self.zoom = function (event, ranges) {
if (!ranges.xaxis) return if (!ranges.xaxis) return
var opts = plot.getOptions() var opts = plot.getOptions()
_.each(opts.xaxes, function(axis) { _.each(opts.xaxes, function(axis) {
axis.min = ranges.xaxis.from axis.min = ranges.xaxis.from
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
axis.min = ranges.yaxis.from axis.min = ranges.yaxis.from
axis.max = ranges.yaxis.to axis.max = ranges.yaxis.to
}) })
plot.setupGrid() plot.setupGrid()
plot.draw() plot.draw()
plot.clearSelection() plot.clearSelection()
...@@ -123,7 +123,7 @@ ...@@ -123,7 +123,7 @@
tooltip.appendTo($container); tooltip.appendTo($container);
console.log(currentSettings.zoom, currentSettings.zoom == "") console.log(currentSettings.zoom, currentSettings.zoom == "")
var options = { var options = {
grid: { grid: {
borderWidth: 0, borderWidth: 0,
hoverable: currentSettings.tooltip, hoverable: currentSettings.tooltip,
...@@ -165,7 +165,6 @@ ...@@ -165,7 +165,6 @@
if (currentSettings.zoom != "") options.selection = { mode: currentSettings.zoom }; if (currentSettings.zoom != "") options.selection = { mode: currentSettings.zoom };
if (currentSettings.x_timestamp) options.xaxis.mode = "time"; if (currentSettings.x_timestamp) options.xaxis.mode = "time";
if (currentSettings.logscale) options.yaxis.mode = "log";
plot = $.plot($holder, currentData, options); plot = $.plot($holder, currentData, options);
}; };
...@@ -270,11 +269,6 @@ ...@@ -270,11 +269,6 @@
display_name: "Show Points", display_name: "Show Points",
type: "boolean" type: "boolean"
}, },
{
name: "logscale",
display_name: "Log Scale",
type: "boolean"
},
{ {
name: "tooltip", name: "tooltip",
display_name: "Show Tooltip", display_name: "Show Tooltip",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment