This is a python template for making experiment with remio
library. It gives to you a project structure, a some utils for developing quickly remote laboratory projects.
The project includes a simple GUI made with Bootstrap 5. You can find the files inside the public
folder:
You could edit it according to your needs. I recommed to you use QtDesigner
program which simplifies the GUI creation proccess.
The project uses a simple mechanism to establish bidirectional communications in real time, using the socketio
protocol/library.
Some folders were created to help you structure the project:
.
├── arduino
│ └── mockup
│ └── mockup.ino
├── docs
├── public
├── server
├── utils
├── gui.py
├── gui.ui
├── production.py
├── README.md
├── requirements.txt
└── settings.py
Clone the repository:
git clone https://github.com/jsonfm/remio-mcu.git [your-project-name]
Create and activate a virtual environment.
Unix systems:
python3 -m venv venv
source venv/bin/activate
Windows:
py -m venv venv
venv\Scripts\activate
After you set the virutal env, install dependencies:
pip install -r requirements.txt
This experiment uses PyQt5 framework to provide a GUI.
python gui.py
To run the experiment without the local GUI (production), you could use the product.py
file:
python production.py
A socketio server was added to do some tests.
python run_server.py