Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Latest commit

 

History

History
55 lines (34 loc) · 1.03 KB

README.md

File metadata and controls

55 lines (34 loc) · 1.03 KB

Bioreactor data poller

This application requests data from Applikon bioreactors in the network and uploads it to an InfluxDB instance.

Installation

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.

Configuration

  • Available bioreactors, their names and IP addresses can be configured in reactors.json.
  • The environment can be configured in .env.

Starting manually

python3 poll.py

Starting automatically on boot

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

Development

  1. Install pre-commit with pip install pre-commit.
  2. Run pre-commit install.