Skip to main content

A service for the OpenFlexure Microscope that manages the microscope.

Project description

OpenFlexure Management Server

A server that run on an OpenFlexure Microscope to manage the microscope.

This server is just starting to be written so doesn't yet do much. Currently it is able to:

  • Report the microscope server and service status
  • Shut down or restart the microscope
  • Shut down or restart the server

Eventually it will be able to:

  • Configure the server for different hardware
  • Install microscope extensions
  • Update the microscope

Installation

This is experimental. When it moves out of the experiment phase it will automatically be installed on microscpe SD images. It only works on the new Trixie images.

For now to install a test version on a microscope for developing:

  1. Run ofm activate
  2. Clone the repository
  3. Navigate into the repo and run npm install -e .[dev]
  4. Create a systemd service file that mirrors the one used by the microscope (/etc/systemd/system/openflexure-microscope-server.service) replacing openflexure-microscope-server to openflexure-management-server.
  5. Run sudo systemctl enable openflexure-management-server

Developing on a Microscope

Developing the webapp

Use Node 24. If you donlt have node 24, consider using NVM to manage node versions on your computer.

To install, navigate to the webapp directory and run:

npm install

Running the dev server

To run the dev server run:

npm run serve

The server will update the API endpoints by default to http://localhost:5001. To Redirect to a microscope run:

npm run serve:microscope

This will update the API endpoints to point at http://microscope.local:5001. To use a different host name use an .env.local file with your hostname set to VITE_MICROSCPOPE_HOST:

# Save as .env.local
VITE_MICROSCPOPE_HOST=http://hostname.local:5001

This .env.local file is ignored by git.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openflexure_management_server-0.0.1.tar.gz (4.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openflexure_management_server-0.0.1-py3-none-any.whl (4.1 MB view details)

Uploaded Python 3

File details

Details for the file openflexure_management_server-0.0.1.tar.gz.

File metadata

File hashes

Hashes for openflexure_management_server-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3e6835e9f96b592f575fc3041b0c0f4c311dc36f8a3fe771843ab84b0f3ee14f
MD5 ba08981973168b0d9b01158cb53ee8b9
BLAKE2b-256 4d118aa3f393e2470d87b6f1f0e69c989301797ba4a2e80da5a7ad9d3d789af0

See more details on using hashes here.

File details

Details for the file openflexure_management_server-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for openflexure_management_server-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5ae99f3897069127a740fec94c787dd01f2955c76e79016daf83aa0852ced947
MD5 f5d53a4bf113956904aaa8c6b178d05b
BLAKE2b-256 42bf43b1a18973e8be6876385283055ac50b89053ba8389a4d9f88fdda89250b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page