This application requests data from Applikon bioreactors in the network and uploads it to an InfluxDB instance.
Requirements:
- Python 3.9 (earlier might work)
pip install -r requirements.txt
cp .env.example .env
And then update the secret keys within .env
file.
- Available bioreactors, their names and IP addresses can be configured in
reactors.json
. - The environment can be configured in
.env
.
python3 poll.py
To setup the systemd daemon, do
sudo chmod 644 bioreactor.service
# Link the file so git repo updates get applied.
sudo systemctl link /home/pi/bioreactor/bioreactor.service
sudo systemctl daemon-reload
sudo systemctl enable bioreactor.service
sudo systemctl start bioreactor.service
Then, to view daemon logs (e.g. for debugging):
journalctl -u bioreactor.service
- Install
pre-commit
withpip install pre-commit
. - Run
pre-commit install
.