LabKraken is a logging daemon for lab applications. It can extract data from a number of sources commonly found in
laboratories like:
- Tinkerforge sensors
- Labnodes
- SCPI-enabled devices via GPIB or Ethernet
The data is extracted from the devices and published via MQTT for further processing. Used with a datalogger like the Kraken Logger and a data visualisation frontend like Grafana it allows precise monitoring of labs and experiments in real time.
LabKraken is written in Python using the asyncio framework and runs on
both large scale servers and small Raspberry Pis.
LabKraken is best installed via the Docker image provided with this repository.
... via docker-compose
Basic example docker-compose.yml for the LabKraken:
services:
kraken:
image: ghcr.io/patrickbaus/sensordaemon:latest
container_name: kraken
restart: always
environment:
- SENSORS_DATABASE_HOST=mongodb://foo:bar@database-server:27017
- MQTT_HOST=mqtt-broker
- NODE_ID=a4777632-3de5-4682-a0a7-3f86d879c74dI use SemVer for versioning. For the versions available, see the tags available for this repository.
The version is not stored in the source code. It is taken from the git tag by
setuptools-scm. To release a new version, push a new tag, e.g. 4.7.0. The
Docker image built from it reports version 4.7.0. Commits after a tag get a development version like 4.7.1.dev3.
When running Kraken from a git checkout, write _version.py first:
python3 -m pip install --group version
python3 -m setuptools_scm --force-write-version-filesI use the Numpydoc style for documentation.
- Patrick Baus - Initial work - PatrickBaus
This project is licensed under the GPL v3 license - see the LICENSE file for details.