module documentation

OpenFlexure System.

A module to control the underlying microscope system and to expose information about the microscope, server, and thing states to the web API.

Class CommandOutput A pydantic model passing the STDOUT and STDERR from a subprocess over HTTP.
Class OpenFlexureSystem Describe and control the OpenFlexure system.
Constant LEGACY_REBOOT_CMD Undocumented
Constant LEGACY_SHUTDOWN_CMD Undocumented
Constant OFM_REBOOT_CMD Undocumented
Constant OFM_SHUTDOWN_CMD Undocumented
Constant OS_VERSION_FILE Undocumented
LEGACY_REBOOT_CMD: list[str] = (source)

Undocumented

Value
['sudo', 'shutdown', '-r', 'now']
LEGACY_SHUTDOWN_CMD: list[str] = (source)

Undocumented

Value
['sudo', 'shutdown', '-h', 'now']
OFM_REBOOT_CMD: list[str] = (source)

Undocumented

Value
['ofm', 'system-restart']
OFM_SHUTDOWN_CMD: list[str] = (source)

Undocumented

Value
['ofm', 'system-shutdown']
OS_VERSION_FILE: str = (source)

Undocumented

Value
'/usr/lib/os-release'