diff --git a/agent/smurfhammeragent.yaml b/agent/smurfhammeragent.yaml new file mode 100644 index 0000000..a14dbb5 --- /dev/null +++ b/agent/smurfhammeragent.yaml @@ -0,0 +1,26 @@ +agent_class: 'SmurfHammerAgent' +instance_id: 'smurf-hammer-1' +processes: + monitor: + startup: true + data_settings: { + 'timestamp_field': 'timestamp' + } + data: { + "timestamp": 1721234567.0, + "slots": { + "2": {"configured": true, "configuring": false}, + "3": {"configured": false, "configuring": true}, + "4": {"configured": null, "configuring": null} + } + } +tasks: + hammer: + data: { + "slots": [2, 3, 4], + "reboot": true, + "succeeded_slots": [2, 3], + "failed_slots": {"4": "EPICS connection timed out after 180s"}, + "error": null, + "timestamp": 1721234590.0 + } diff --git a/src/App.vue b/src/App.vue index d033d5c..d8b5ecb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -159,6 +159,7 @@ import DS378Agent from './panels/DS378.vue'; import TauHKAgent from './panels/TauHKAgent.vue'; import FLSAgent from './panels/FLSAgent.vue'; + import SmurfHammerAgent from './panels/SmurfHammerAgent.vue'; /* Make a map of components to use in activeComp computed property; see @@ -188,6 +189,7 @@ 'DS378Agent': DS378Agent, 'TauHKAgent': TauHKAgent, 'FLSAgent': FLSAgent, + 'SmurfHammerAgent': SmurfHammerAgent, }; diff --git a/src/panels/SmurfHammerAgent.vue b/src/panels/SmurfHammerAgent.vue new file mode 100644 index 0000000..fed5177 --- /dev/null +++ b/src/panels/SmurfHammerAgent.vue @@ -0,0 +1,220 @@ + + + + + + + + + Jackhammer Agent + Connection + + + + + + + + Slot Status + + + + + + + + Last Hammer Result + + + + + + + + + + + + + + + hammer + Start + + + + Slots + {{ allSelected ? 'Deselect All Slots' : 'Select All Slots' }} + + + {{ 'Slot ' + slot }} + + + + + Options + + + + + + + + Status + + + + + + + + + + + + + + + +