Refactored background detection into a Thing
The new background detect Thing (currently in smart_scan.py) manages its own settings and exposes a few more actions.
This commit is contained in:
parent
04321cac96
commit
25552215f9
2 changed files with 99 additions and 50 deletions
|
|
@ -10,7 +10,7 @@ from .things.camera_stage_mapping import CameraStageMapper
|
|||
from .things.system_control import SystemControlThing
|
||||
from .things.settings_manager import SettingsManager
|
||||
from .things.auto_recentre_stage import RecentringThing
|
||||
from .things.smart_scan import SmartScanThing
|
||||
from .things.smart_scan import SmartScanThing, BackgroundDetectThing
|
||||
from .serve_static_files import add_static_files
|
||||
from .logging import configure_logging, retrieve_log
|
||||
|
||||
|
|
@ -25,6 +25,7 @@ thing_server.add_thing(CameraStageMapper(), "/camera_stage_mapping/")
|
|||
thing_server.add_thing(SystemControlThing(), "/system_control/")
|
||||
thing_server.add_thing(SettingsManager(), "/settings/")
|
||||
thing_server.add_thing(SmartScanThing(), "/smart_scan/")
|
||||
thing_server.add_thing(BackgroundDetectThing(), "/background_detect/")
|
||||
try:
|
||||
add_static_files(thing_server.app)
|
||||
except RuntimeError:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue