# x1208-exporter — Geekworm X1208 UPS HAT exporter # # Deployment lives in the rpi.mial.net repo. There are no deploy recipes here. default: @just --list # Compile everything build: go build ./... # Run the test suite (all pure packages; the hardware packages need a Pi) test: go test ./... test-verbose: go test -v ./... # Static checks lint: go vet ./... gofmt -l . fmt: gofmt -w . # Build the Nix package exactly as the Pi will nix-build: nix build .#x1208-exporter # Run the daemon against a scripted sensor. Touches no hardware and powers # nothing off — the shutdown command is replaced with an echo. run-fake out="/tmp/x1208.prom": go run . -fake -interval 1s -out {{ out }} \ -shutdown -shutdown-settle-ticks 2 -shutdown-samples 3 \ -shutdown-cmd "/usr/bin/env echo POWEROFF-WOULD-RUN" # Print the metrics the fake run produced show out="/tmp/x1208.prom": @cat {{ out }}