Development

Pioreactor codebase

To install the Pioreactor codebase locally, it should be enough to clone the repo pioreactor/pioreactor, and run python3 setup.py install locally. From here, jobs can be run (using an internal mocked GPIO) with TESTING=1 EXPERIMENT=exp HOSTNAME=testing_unit pio run <jobname>

Testing

We use pytest. It's advisable to run tests one at a time for now. py.test -k test_pause_stirring_mid_cycle -s

MQTT

You probably need to set up MQTT locally. On OSX, homebrew can be used to install mosquitto. Also enable logging in /usr/local/etc/mosquitto/mosquitto.conf, ex:

log_dest file /Users/camerondavidson-pilon/.mosquitto/log

mosquitto_pub and mosquitto_sub work as well.

PioreactorUI

See READMEs in https://github.com/pioreactor/pioreactorui (including the subfolders client and backend)

← Back to all documentation