This repository has been archived and is no longer maintained. The code is provided for historical reference and may contain unpatched or unknown vulnerabilities. It should not be used in production systems.
APS local tiled data server template: databroker catalog
Run the tiled data server locally on workstation SERVER. Since this server
provides open access, it is only accessible within the APS firewall.
To start this tiled server (after configuring as described in the [Install](#install} section), navigate to this directory and run the server within a screen session:
in-screen.shTutorial: screen
See also: https://www.hostinger.com/tutorials/how-to-install-and-use-linux-screen/
Then, use any web browser (within the APS firewall) to visit URL:
http://SERVER:8000.
The web interface is a simple (simplistic yet informative) User Interface demonstrating many features of the tiled server and also providing access to online documentation. Visit the documentation to learn how to build your own interface to tiled.
- serve data from Bluesky databroker catalogs
- (optional) serve data from user experiment file directory
- Identify NeXus/HDF5 files with arbitrary names.
- Identify SPEC data files with arbitrary names and read them.
- Read
.jpg(and other image format) files. - Read the synApps MDA format (Python support)
- Write a custom data file identifier.
- Write a custom data file loader.
- Authentication
- Learn how to ignore files such as
.xml(without startup comments).
- bluesky/tiled#175
- https://blueskyproject.io/tiled/how-to/read-custom-formats.html#case-2-no-file-extension
screentutorial: See also: https://www.hostinger.com/tutorials/how-to-install-and-use-linux-screen/
-
Setup and activate a custom micromamba (conda) environment as directed in
environment.yml.Note: This step defines a
CONDA_PREFIXenvironment variable in the bash shell. Used below. -
tiled's configuration file:
config.yml:- Copy the template file
config.yml.templatetoconfig.yml pathis the name that will be seen by the tiled clients.treeshould not be changed- for databroker catalogs,
uriis the address of the mongodb catalog for thispath - for file directories,
directoryis the path to the directory. Either absolute or relative to the directory of this README.md file. - Uncomment and edit the second catalog (
tree: databroker...), copy and edit if more catalogs are to be served. - Uncomment and edit the file directory (
tree: files) if you wish tomake a file directory available.
- Copy the template file
-
Edit bash starter shell script file
start-tiled.sh- Override definition of
MY_DIRat your choice. - (optional) Activate the micromamba/conda environment (if not done
in step 1 above). You may need to change the definition of
CONDA_ENVwhich is the name of the conda environment to use. - (optional) Change the
HOSTandPORTif needed. - (optional) Remove the
--publicoption if you want to require an authentication token (shown on the console at startup of tiled).
- Override definition of
-
Edit web interface to display additional columns:
-
In the
$CONDA_PREFIXdirectory, edit fileshare/tiled/ui/config/bluesky.ymlso it has the content indicated by thebluesky.ymlbelow. -
Edit file
share/tiled/ui/configuration_manifest.ymland add a line at the bottom to include thebluesky.ymlfile:- config/bluesky.yml
-
specs:
- spec: CatalogOfBlueskyRuns
columns:
- header: Bluesky Plan
select_metadata: start.plan_name
field: plan_name
- header: Scan ID
select_metadata: start.scan_id
field: scan_id
- header: Time
select_metadata: start.time
field: start_time
default_columns:
- plan_name
- scan_id
- start_time