An open API service indexing awesome lists of open source software.

https://github.com/jsonfm/remio-mockup-template

๐Ÿ’ก๐Ÿงช๐Ÿ”ฌ A remote experiment example template made with REMIO. โš™๏ธ
https://github.com/jsonfm/remio-mockup-template

css html js pyqt5 python socket-io

Last synced: about 2 months ago
JSON representation

๐Ÿ’ก๐Ÿงช๐Ÿ”ฌ A remote experiment example template made with REMIO. โš™๏ธ

Awesome Lists containing this project

README

          

### ๐ŸŒ๐Ÿงช Remio Mockup Template
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.

### ๐ŸŽจ GUI
The project includes a simple GUI made with `PyQt5`. It looks as follows:

You could edit it according to your needs. I recommed to you use `QtDesigner` program which simplifies the GUI creation proccess.

### ๐Ÿ’ฌ Communications Schema
The project uses a simple mechanism to establish bidirectional communications in real time, using the `socketio` protocol/library.

### ๐Ÿ—‚๏ธ Structure
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
```

### โš™๏ธ Installation
Clone the repository:
```
git clone https://github.com/jsonfm/remio-mockup-template.git [your-project-name]
```

Create and activate a virtual environment:
```bash
python3 -m venv venv

source venv/bin/activate
```

### โš’๏ธ Dependencies
After you set the virutal env, install dependencies:
```
pip install -r requirements.txt
```

### โšก๏ธ Development
This experiment uses PyQt5 framework to provide a GUI.
```
python gui.py
```

### ๐Ÿš€ Production
To run the experiment without the local GUI (production), you could use the `product.py` file:

```
python production.py
```
### โœจ SocketIO Server
A socketio server was added for do some tests.
```
python run_server.py
```