Remote-control interface and web-app for pyqmix
The user-visible part of pyqmix-web runs in the web browser. You need a modern browser to run the application. Recent versions of Chrome, Firefox, and Safari work well; Microsoft Internet Explorer is not supported.
- Download the latest pyqmix-web release from https://github.com/psyfood/pyqmix-web/releases (you will want to get the
.exe
file). - Run the
.exe
file - Have fun!
To install into a new environment (recommended) named pyqmix-web
- Type:
conda create -n pyqmix-web -c conda-forge pyqmix-web
To install into your currently active conda
environment
- Type:
conda install -c conda-forge pyqmix-web
If you are not using conda
, you may install pyqmix-web
via pip
- Type:
pip install pyqmix-web
The installation automatically creates a pyqmix-web
executable, which you can run from your terminal
- Open your terminal (e.g., the
Anaconda Prompt
orcmd.exe
) - Activate your
pyqmix-web
Python environment- Type:
conda activate pyqmix-web
when usingconda
- Type:
- Start up
pyqmix-web
- Type:
pyqmix-web
- Type:
The backend should start, and a browser window should open automatically, displaying the pyqmix-web
frontend.
import pyqmix_web.run
pyqmix_web.run.run(open_browser=True)
- Clone this (
pyqmix-web
) repository
- Open the
Anaconda Prompt
- Type:
conda create -n pyqmix-web -c conda-forge pyqmix flask flask-restplus
to create a new environment namedpyqmix-web
- Activate the virtual environment
- Type:
conda activate pyqmix-web
- Type:
- Navigate to the
pyqmix-web
folder - Set the required environment variables
- Type:
FLASK_APP=pyqmix_backend/backend_app.py FLASK_ENV=development FLASK_DEBUG=1
- Type:
- Start up
Flask
to serve the backend- Type:
flask run
- Type:
Flask
is now running in debugging mode and will reload pyqmix-web
whenever you modify the backend code.
- Install Node.js from https://nodejs.org/en/download/
- Select the Current Latest Features 64-bit windows installer (.msi)
- Accept default settings during installation
- Open your terminal (e.g.,
cmd.exe
)- Browse to the
pyqmix_frontend
subfolder ofpyqmix-web
- Type:
npm install
- Browse to the
- Start the
Node.js
development server- Type:
npm run start
- Type:
Node.js
is now running in debugging mode and will reload pyqmix-web
whenever you modify the frontend code.