Newer
Older
{
"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
},
"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",
Emanuele Laface
committed
"value": "datasources[\"POS\"][\"NSO-LCR:Ops:SID\"][\"value\"]",
"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": {
"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",
Emanuele Laface
committed
"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",
Emanuele Laface
committed
"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",
Emanuele Laface
committed
"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",
Emanuele Laface
committed
"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",
Emanuele Laface
committed
"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",
Emanuele Laface
committed
"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",
Emanuele Laface
committed
"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",
Emanuele Laface
committed
"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\"]",
"1": 11,
"2": 7,
"3": 11,
"4": 11,
"5": 7,
"6": 7,
"7": 7
"5": 2,
"6": 2,
"7": 2
},
"col_width": 1,
"widgets": [
{
"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
"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": {
"4": 7,
"5": 1,
"6": 1,
"7": 1
},
"col": {
"1": 1,
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
"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"
}
}
]
},
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
{
"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
}
}
]
},
"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,
Emanuele Laface
committed
"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": [
{
Emanuele Laface
committed
"name": "POS",
"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",
},
{
"name": "Clock",
"type": "clock",
"settings": {
"refresh": 1
}