class documentation
class OpenFlexureSystem(lt.Thing): (source)
Describe and control the OpenFlexure system.
This Thing:
- Exposes information about the Microscope, Server, and Thing states to the web
- API.
- Controls the underlying OS on the Raspberry Pi allowing shutdown and restarting
- of the system.
| Method | get |
Metadata summarising the current state of all Things in the server. |
| Method | microscope |
A unique identifier for this microscope. |
| Method | microscope |
Undocumented |
| Method | reboot |
Attempt to reboot the device. |
| Method | shutdown |
Attempt to shutdown the device. |
| Property | hostname |
The hostname of the microscope, as reported by its operating system. |
| Property | is |
Return True if running on a Raspberry Pi. |
| Property | thing |
Summary metadata describing the current state of the Thing. |
| Property | version |
The version string and version source for the server. |
| Class Variable | _version |
Undocumented |
| Instance Variable | _microscope |
Undocumented |
@lt.thing_action
def get_things_state(self, metadata_getter: lt.deps.GetThingStates) -> Mapping:
(source)
¶
Metadata summarising the current state of all Things in the server.