OpenFlexure Gamepad Client
Control an OpenFlexure Microscope with a gamepad.
This was previously called "OpenFlexure Microscope SNESClient" as the first (and currently only) controller supported is a USB SNES client.
Install
On an OpenFlexure microscope with a v3 microscope server you can install by running:
ofm activate
pip install openflexure-gamepad-client
Run the gamepad-client
To run the gampade client manually you can run
sudo -u openflexure-ws env "PATH=$PATH" openflexure-gamepad-client
When you close this terminal or exit the program it will stop.
Run as a service
For the gamepad to always be running you can create a systemd service.
To create the service run:
sudo nano /etc/systemd/system/openflexure-gamepad.service
and paste in
[Unit]
Description=Python script to control the OpenFlexure Microscope with a gamepad
After=network.target
[Service]
User=openflexure-ws
WorkingDirectory=/var/openflexure/
ExecStart=/var/openflexure/application/openflexure-microscope-server/.venv/bin/openflexure-gamepad-client
[Install]
WantedBy=multi-user.target
Reload systemd so it sees the new service
sudo systemctl daemon-reload
Enable the service so it starts on boot, and also start it now
sudo systemctl enable --now openflexure-gamepad.service
To check status
sudo systemctl status openflexure-gamepad.service
View logs
journalctl -u openflexure-gamepad.service -f
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_gamepad_client-0.1.0.tar.gz.
File metadata
- Download URL: openflexure_gamepad_client-0.1.0.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13ac44691e2c4204585a850325e73552f5fcd7122512d410330a157d706967f4
|
|
| MD5 |
ab53f5700e73e800ca6b25759884a3aa
|
|
| BLAKE2b-256 |
960a55300dce4c6d6719ab0c288ac18fc13d2ce37ad5b0a9d158a030739f2fd2
|
File details
Details for the file openflexure_gamepad_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openflexure_gamepad_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d753c0523888496ec9a33182f7d80236c7d93a6aa4889a543b20da18b26db678
|
|
| MD5 |
b777f9aac502559510b6a4a35f576d42
|
|
| BLAKE2b-256 |
fc5907c1e3f504265f86a02938212e6d158c09d60b0389d098b830ed4bf88b63
|