Get the current UI configuration from beaconThis includes monitor settings, top and side items, and available layoutsConfiguration is located in:* beacon://blissterm/config.yml* beacon://blissterm/layouts.yml
{- "monitor": [
- {
- "name": "string",
- "value": "string",
- "overlay": null,
- "comparator": null,
- "comparison": null
}
], - "topItems": [
- {
- "type": null,
- "children": null
}
], - "sideItems": [
- {
- "type": null,
- "children": null
}
], - "beamline": null,
- "sessions": [
- "string"
], - "activeSessions": [
- "string"
], - "layouts": [
- {
- "name": "string",
- "acronym": "string",
- "icon": null,
- "children": [
- {
- "type": null,
- "children": null
}
]
}
], - "layoutsError": null,
- "session": "__DEFAULT__"
}
Set the terminal size for session_name
in cols
and rows
session_name required | string (Session Name) |
w required | integer (W) Console width in columns |
h required | integer (H) Console height in rows |
{- "session_name": "string",
- "w": 0,
- "h": 0
}
{- "message": "string"
}
Get the current ACTIVE_MG
from session_name
with its list of enabled and available counters
session_name required | string (Session Name) |
{- "session_name": "string",
- "enabled": [
- "string"
], - "available": [
- "string"
], - "disabled": [
- "string"
]
}
Update the enabled and disabled counters for the current ACTIVE_MG
in session_name
session_name required | string (Session Name) |
Array of Enabled (strings) or Enabled (null) (Enabled) Default: null A list of counters to enabled | |
Array of Disabled (strings) or Disabled (null) (Disabled) Default: null A list of counters to disable |
{- "enabled": null,
- "disabled": null
}
{- "session_name": "string",
- "enabled": [
- "string"
], - "available": [
- "string"
], - "disabled": [
- "string"
]
}
Get the current SCAN_SAVING
settings for session_name
The returned values will depend on the type of scan saving currently enabled.Both bliss_basic and bliss_esrf are supported.
session_name required | string (Session Name) |
{- "base_path": "string",
- "beamline": null,
- "data_path": "string",
- "root_path": "string",
- "filename": "string",
- "template": null,
- "data_filename": null,
- "proposal_name": null,
- "collection_name": null,
- "dataset_name": null
}
Call a function from SCAN_SAVING
in session_name
For example create_root_path
session_name required | string (Session Name) |
function required | string (Function) Value: "create_root_path" |
{- "function": "create_root_path"
}
{- "message": "string"
}
Update the SCAN_SAVING
settings for session_name
session_name required | string (Session Name) |
Template (string) or Template (null) (Template) Default: null | |
Data Filename (string) or Data Filename (null) (Data Filename) Default: null | |
Proposal Name (string) or Proposal Name (null) (Proposal Name) Default: null | |
Collection Name (string) or Collection Name (null) (Collection Name) Default: null | |
Dataset Name (string) or Dataset Name (null) (Dataset Name) Default: null |
{- "template": null,
- "data_filename": null,
- "proposal_name": null,
- "collection_name": null,
- "dataset_name": null
}
{- "template": null,
- "data_filename": null,
- "proposal_name": null,
- "collection_name": null,
- "dataset_name": null
}
Call a function either directly in session_name
or on an object in the sessionThis allows for example, to execute scans, and interact with bliss objects in the contextof the running session.function
can also be a module path of the form path.to.module.function
in order todynamically load a function. Future calls will be reloaded with importlib to cache bust.The endpoint blocks until the function returns and will try to json serialise the response,if this is not possible an exception will be raised. Calls can also be made asynchornouslyby setting call_async
true. In this case a call_id
will be returned which can be usedto verify the status of the running function.Exceptions will be caught and returned along with the traceback.
session_name required | string (Session Name) |
Call Async (boolean) or Call Async (null) (Call Async) Default: false Whether to make the call asynchronously | |
Retrieve Scanid (boolean) or Retrieve Scanid (null) (Retrieve Scanid) Default: false Assume this function returns a | |
function required | string (Function) The function to call, can also be a module/function path |
Object (string) or Object (null) (Object) Default: null An object on which to call a function | |
Array of Args (any) or Args (null) (Args) Default: [] A list of arguments, $ will be interpolated to the corresponding object | |
Kwargs (object) or Kwargs (null) (Kwargs) Default: {} A dictionary of kwargs, $ will be interpolated to the corresponding object |
{- "call_async": false,
- "retrieve_scanid": false,
- "function": "string",
- "object": null,
- "args": [ ],
- "kwargs": { }
}
{- "return_value": null,
- "call_id": null,
- "scanid": null
}
Get the state and response of an asynchronous function call in the sessionExceptions will be caught and returned along with the traceback.
session_name required | string (Session Name) |
call_id required | string (Call Id) |
{- "return_value": null,
- "call_id": null,
- "scanid": null,
- "state": "running"
}
Kill an asynchronous function call in the sessionExceptions will be caught and returned along with the traceback.
session_name required | string (Session Name) |
call_id required | string (Call Id) |
{- "error": "string"
}
Get a list of all hardware statuses
Type (string) or Type (null) (Type) Default: null Filter by a specific type |
{- "total": 0,
- "results": [
- {
- "id": "string",
- "type": "string",
- "online": true,
- "errors": [
- { }
], - "name": "string",
- "alias": null,
- "callables": [
- "string"
], - "properties": { }
}
], - "skip": null,
- "limit": null
}
Register a series of hardware objects
ids required | Array of strings (Ids) |
{- "ids": [
- "string"
]
}
{- "ids": [
- "string"
]
}
Get the status of a particular hardware object
id required | string (Id) The bliss object id |
{- "id": "string",
- "type": "string",
- "online": true,
- "errors": [
- { }
], - "name": "string",
- "alias": null,
- "callables": [
- "string"
], - "properties": { }
}
Update a property on a hardware object
id required | string (Id) The bliss object id |
property required | string (Property) The property to set |
value required | any (Value) Its value |
{- "property": "string",
- "value": null
}
{- "property": "string",
- "value": null
}
Call a function on a hardware object
id required | string (Id) The bliss object id |
function required | string (Function) The function to call |
Value (any) or Value (null) (Value) Default: null Its value (if any) |
{- "function": "string",
- "value": null
}
{- "function": "string",
- "value": null,
- "response": null
}