python3 -m flask --app main --debug run
. Test by going to localhost:5000/api/get_latest_experiment
in a browser.
Run background workers with:
huey_consumer.py tasks.huey
This is behind a lighttp web server on the RPi. See our lighttp config.
??
You can add a X automation option by adding to a .yaml
file to backend/contrib/automations/X
folder. There is an example file under backend/contrib/automations/automation.yaml.example
. The new automation will appear in the dialog to switch automations on the /pioreactors page.
See the examples in backend/contrib/background_jobs
. Under the hood, this runs pio run <job_name>
.