Revert to Sangaboard, rather than proscan

This commit is contained in:
Richard Bowman 2023-11-01 18:02:16 +00:00
parent 796622b802
commit 4caba58d6c

View file

@ -5,7 +5,7 @@ import os.path
from fastapi.staticfiles import StaticFiles
from fastapi.responses import FileResponse, RedirectResponse
from labthings_fastapi.thing_server import ThingServer
from labthings_sangaboard.proscan import ProScan
from labthings_sangaboard import SangaboardThing
from labthings_picamera2.thing import StreamingPiCamera2
from .things.autofocus import AutofocusThing
@ -17,10 +17,13 @@ logging.basicConfig(level=logging.INFO)
thing_server = ThingServer()
thing_server.add_thing(StreamingPiCamera2(), "/camera/")
thing_server.add_thing(ProScan(), "/stage/")
thing_server.add_thing(SangaboardThing(), "/stage/")
thing_server.add_thing(AutofocusThing(), "/autofocus/")
thing_server.add_thing(CameraStageMapper(), "/camera_stage_mapping/")
add_static_files(thing_server.app)
try:
add_static_files(thing_server.app)
except RuntimeError:
print("Failed to add static files - you will have to do without them!")
app = thing_server.app