Skip to main content

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

openflexure_gamepad_client-0.1.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

openflexure_gamepad_client-0.1.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file openflexure_gamepad_client-0.1.0.tar.gz.

File metadata

File hashes

Hashes for openflexure_gamepad_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 13ac44691e2c4204585a850325e73552f5fcd7122512d410330a157d706967f4
MD5 ab53f5700e73e800ca6b25759884a3aa
BLAKE2b-256 960a55300dce4c6d6719ab0c288ac18fc13d2ce37ad5b0a9d158a030739f2fd2

See more details on using hashes here.

File details

Details for the file openflexure_gamepad_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openflexure_gamepad_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d753c0523888496ec9a33182f7d80236c7d93a6aa4889a543b20da18b26db678
MD5 b777f9aac502559510b6a4a35f576d42
BLAKE2b-256 fc5907c1e3f504265f86a02938212e6d158c09d60b0389d098b830ed4bf88b63

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page