Move server config to a config file

Currently this is "just" a LabThings config file.
This commit is contained in:
Richard Bowman 2024-08-09 01:51:11 +01:00
parent b7f9f6cbaf
commit e3e248c46e
4 changed files with 69 additions and 31 deletions

20
ofm_config_full.json Normal file
View file

@ -0,0 +1,20 @@
{
"things": {
"/camera/": "labthings_picamera2.thing.StreamingPiCamera2",
"/stage/": "labthings_sangaboard.SangaboardThing",
"/auto_recentre_stage/": "openflexure_microscope_server.things.auto_recentre_stage:RecentringThing",
"/autofocus/": "openflexure_microscope_server.things.autofocus:AutofocusThing",
"/camera_stage_mapping/": "openflexure_microscope_server.things.camera_stage_mapping:CameraStageMapper",
"/system_control/": "openflexure_microscope_server.things.system_control:SystemControlThing",
"/settings/": "openflexure_microscope_server.things.settings_manager:SettingsManager",
"/smart_scan/": {
"class": "openflexure_microscope_server.things.smart_scan:SmartScan",
"kwargs": {
"path_to_openflexure_stitch": "application/openflexure-stitching/.venv/bin/openflexure-stitch"
}
},
"/background_detect/": "openflexure_microscope_server.things.smart_scan:BackgroundDetectThing",
"/api_test/": "openflexure_microscope_server.things.test:APITestThing"
},
"settings_folder": "./openflexure_settings/"
}