Automated payment system for lasercutter usage
  • C++ 61.4%
  • Python 29.2%
  • C 4.2%
  • Shell 3.1%
  • Nix 2.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Polyfloyd aae34d6fcf
All checks were successful
Build / build (push) Successful in 1m12s
Harden connections to revbank
2026-10-30 16:15:45 +01:00
.forgejo/workflows Deploy via Debian package 2026-10-29 21:12:22 +01:00
Dagobert Switch back to I2C LCD display 2025-09-21 17:56:45 +02:00
simulator Added laser signal simulator. 2017-06-16 19:10:34 +02:00
support Harden connections to revbank 2026-10-30 16:15:45 +01:00
.gitignore gitignore: __pycache__ 2026-10-29 21:16:17 +01:00
config.ini Move ldap url and base settings to config.ini 2026-10-29 21:03:28 +01:00
dagobert.py Harden connections to revbank 2026-10-30 16:15:45 +01:00
flake.lock Add nix flake 2026-10-25 20:17:37 +01:00
flake.nix Deploy via Debian package 2026-10-29 21:12:22 +01:00
README.md Update readme 2026-10-30 16:05:19 +01:00

Deployment

Every push to main builds a Debian package and publishes it to the package registry on git.bitlair.nl (see .forgejo/workflows/build.yaml). To install it on the host (Ubuntu 24.04):

sudo curl https://git.bitlair.nl/api/packages/bitlair/debian/repository.key -o /etc/apt/keyrings/bitlair.asc
echo "deb [signed-by=/etc/apt/keyrings/bitlair.asc] https://git.bitlair.nl/api/packages/bitlair/debian stable main" | sudo tee /etc/apt/sources.list.d/bitlair.list
sudo apt update && sudo apt install dagobert

The package installs the daemon, config, systemd unit and udev rule, creates the dagobert user and enables the service. The service runs while the Arduino is connected, which shows up as /dev/dagobert.

Upgrades don't restart the service, because that would interrupt a running job. Restart it when the lasercutter is idle.

Set up by hand on a new host:

  • /etc/default/dagobert, containing DAGOBERT_BINDDN and DAGOBERT_BINDPW
  • An SSH key and known_hosts entry for bank.bitlair.nl in the home directory of the dagobert user, for payments

Settings are in /etc/dagobert.ini. Upgrades keep local changes to it.