Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question: Running HTTP server when simulating protocols locally #15245

Open
beniroquai opened this issue May 22, 2024 · 8 comments
Open

question: Running HTTP server when simulating protocols locally #15245

beniroquai opened this issue May 22, 2024 · 8 comments
Labels

Comments

@beniroquai
Copy link

Overview

Here you write We set up simulators for the protocol, but do not run any kind of web servers. I was simply curious if there is any hacky way to emulate the fastapi server locally for simulating the robot in a bigger framework. I haven't found any related issues, but perhaps someone made this work already. Thanks a lot!

Steps to reproduce

No response

Current behavior

No response

Expected behavior

No response

Operating system

None

System and robot setup or anything else?

No response

@beniroquai beniroquai added the bug label May 22, 2024
@koji
Copy link
Contributor

koji commented May 22, 2024

@beniroquai
you mean like this, https://github.com/koji/api-for-simulator?

@beniroquai
Copy link
Author

Hey @koji I think this is a great start - however, I would like to have access to the entire functionality of the simulation module (e.g. expose all endpoints 😉). Not sure if this is actually possible - in principle yes since it's a python module anyway.

@koji
Copy link
Contributor

koji commented May 22, 2024

@beniroquai what you want to do is possible technically. it would need some efforts.

@beniroquai
Copy link
Author

I want to be able to simulate the opentrons' HTTP interface without actually having one in front of me to test it ina lab automation framework. For this I want to use this framework: https://github.com/ad-sdl/wei/

@koji koji added question and removed bug labels Jun 11, 2024
@MetsvR
Copy link

MetsvR commented Jun 26, 2024

Instead of simulating the api locally, you can run it on a raspberry pi. This works great for quick testing, but there's some issues with protocols not accepting different pipettes.

@beniroquai
Copy link
Author

Iteresting! Thanks for sharing. Is there a bash script or docker container to install it? Could I use the buildroot directly?

@MetsvR
Copy link

MetsvR commented Jun 27, 2024

Just flashing the latest OS to the SD card and booting the raspberry from that works.
It specifically needs to be a raspberry 3 B, i've tried newer models as well but they don't initialize.

@beniroquai
Copy link
Author

beniroquai commented Jun 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants