A lightweight hardware test interface (HTI).
When using git, clone the repository and change your present working directory.
git clone http://github.com/mcpcpc/openhti
cd openhti/Create and activate a virtual environment.
python -m venv venv
source venv/bin/activateInstall OpenHTI to the virtual environment.
pip install -e .The backend database can be initialized or re-initialized with the following command.
quart --app openhti init-dbPulling the latest container image from command line.
podman pull ghcr.io/mcpcpc/openhti:latestStop and/or remove any existing running instances.
podman stop openhti
podman rm openhtiPull the latest container image and start an instance. Replace /home/pi/instance/ with the appropriate user home directory and instance path.
podman pull ghcr.io/mcpcpc/openhti:latest
podman run -dt -p 8080:8080 \
--name openhti \
--volume /home/pi/instance:/usr/local/var/openhti-instance \
openhtiReplace pi with the appropriate user home directory.
podman generate systemd --new --files --name openhti
mkdir -p /home/pi/.config/systemd/user
cp container-openhti.service /home/pi/.config/systemd/user
systemctl --user daemon-reload
systemctl --user start container-openhti.service
systemctl --user enable container-openhti.service
loginctl enable-linger pipython3 -m unittestRun with coverage report.
coverage run -m unittest
coverage report
coverage html # open htmlcov/index.html in a browser