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:
- Run
ofm activate - Clone the repository
- Navigate into the repo and run
npm install -e .[dev] - Create a systemd
servicefile that mirrors the one used by the microscope (/etc/systemd/system/openflexure-microscope-server.service) replacingopenflexure-microscope-servertoopenflexure-management-server. - 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openflexure_management_server-0.0.1.tar.gz.
File metadata
- Download URL: openflexure_management_server-0.0.1.tar.gz
- Upload date:
- Size: 4.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e6835e9f96b592f575fc3041b0c0f4c311dc36f8a3fe771843ab84b0f3ee14f
|
|
| MD5 |
ba08981973168b0d9b01158cb53ee8b9
|
|
| BLAKE2b-256 |
4d118aa3f393e2470d87b6f1f0e69c989301797ba4a2e80da5a7ad9d3d789af0
|
File details
Details for the file openflexure_management_server-0.0.1-py3-none-any.whl.
File metadata
- Download URL: openflexure_management_server-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ae99f3897069127a740fec94c787dd01f2955c76e79016daf83aa0852ced947
|
|
| MD5 |
f5d53a4bf113956904aaa8c6b178d05b
|
|
| BLAKE2b-256 |
42bf43b1a18973e8be6876385283055ac50b89053ba8389a4d9f88fdda89250b
|