Automated payment system for lasercutter usage
- C++ 61.4%
- Python 29.2%
- C 4.2%
- Shell 3.1%
- Nix 2.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .forgejo/workflows | ||
| Dagobert | ||
| simulator | ||
| support | ||
| .gitignore | ||
| config.ini | ||
| dagobert.py | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
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, containingDAGOBERT_BINDDNandDAGOBERT_BINDPW- An SSH key and
known_hostsentry forbank.bitlair.nlin the home directory of thedagobertuser, for payments
Settings are in /etc/dagobert.ini. Upgrades keep local changes to it.