Open granawkins opened 2 years ago
Seems like there should be one function to:
VernierO2
) and config.cfg
label. If not found, log the details.This could be run on a like a ~5s loop, in a shell script on Raspberry Pi and/or in the server loop on sioserver
.
Right now sensors are added manually/individually, e.g. python3 mocksensor.py -v --port 8081
-- except in the case of multiple vernier sensors, in which case they use asyncio.gather
, or MCPRunner which uses threading
. I believe Ezio had a better idea in mind for running multiple sensors together.
I think this way things could just work out-of-the-box, either in Gretchen's situation or for SAM, and replace a lot of redundant/case-specific tmux
scripts.
This branch is the culmination of: 1) Greg adding support for specific sensors 2) the
sam-educational
branch 3) Ezio's config file 4) Greg and Grant's work at SAM with the Vernier Sensors *) It's also the backend forsimoc-web
#156 (above)We discussed redoing these commits with some optimizations. Why don't we use this initially for review/comments/discussion, and then someone can create a new branch/PR to redo the commits.