Skip to content

v1.7.0

Choose a tag to compare

@github-actions github-actions released this 07 Oct 19:27

Upgrade notes

  • Error responses are now JSON {"error": "..."} (was a bare string such as "relay not found"). A 500 carries only internal server error; the cause is in the log.
  • Unknown config keys are an error. Remove jwtSecret and jwtID from webserver: – JWT is no longer supported, authentication is API key only.
  • Config validation: each relay needs a GPIO between 2 and 27, and no GPIO may be used twice.
  • env: prod no longer falls back to the embedded development certificate; certFile must exist.
  • Environment variables are only expanded in the form ${VAR}; a bare $ stays as it is.
  • New startState per relay (off default, on, last). For last, create /opt/relayhat/data owned by the service user.
  • SIGHUP keeps the state of relays that stay configured and refuses a broken config instead of exiting. For systemctl reload, add ExecReload=/bin/kill -HUP $MAINPID to the unit.

Changelog

Features

  • bd8209b feat() configurable relay start state, JSON errors, switch audit log
  • f79a4c6 feat() keep relay state across reload, harden lifecycle and config

Bug fixes

  • cce5eb7 fix() change module name to github.com/womat/relayhat
  • f28d926 fix() change module name to github.com/womat/relayhat
  • 72af9ee fix() docu, clean shutdown, create builtin certificates

Documentation

  • dd41d85 docu() MIT license, CLAUDE.md, README update, regenerate Swagger
  • 2312f2a docu() install from release, single license section

Maintenance

  • ee30efa chore() adopt s0meter build, CI and release tooling
  • f529995 chore() test that a web server error restarts the app

Which file do I need?

Archive Raspberry Pi model
linux_arm64 Pi 3 / 4 / 5 / Zero 2 W with a 64-bit OS
linux_armv7 Pi 2 / 3 / 4 / 5 / Zero 2 W with a 32-bit OS
linux_armv6 Pi 1 and Zero (1st gen)