2025-06-18 15:35:33 +02:00
2025-05-20 16:28:26 +02:00
2025-04-16 16:10:42 +02:00
2025-06-05 15:52:41 +02:00
2025-06-18 15:35:33 +02:00
2025-06-09 16:49:57 +02:00
2025-06-05 15:52:41 +02:00
2025-05-05 12:42:51 +02:00
2025-06-02 15:12:59 +02:00
2025-06-02 15:12:59 +02:00
2025-06-05 16:10:07 +02:00
2025-06-05 15:52:41 +02:00

fw-anwesenheit

Setup

In order to use the LED we need to enable the SPI interface on the Rpi. You can enable it by running sudo raspi-config, or by manually adding dtparam=spi=on to /boot/firmware/config.txt. Enable PWM -> add dtoverlay=pwm to /boot/config.txt I²C fpr RTC sudo raspi-config -> interface -> enable I²C

Config

Flags:

--error or -e: Enters error state. The LED turns red and the hotspot is activated. This state gets called from systemd if the service is in a failure state.

Environment variables:

  • PM3_BIN: Path to the pm3 binary. Seach in path if not set. Can also be set to the pm3_mock.sh for testing.
  • LOG_LEVEL: Can be set to either "debug","warn","error","trace" or "info". Defaults to "warn" in production.
  • HTTP_PORT: What port to listen on. Defaults to 80.
  • HOTSPOT_IDS: A semicolon seperated list of ids to activate the hotspot with e.g. 578B5DF2;c1532b57.
  • HOTSPOT_SSID: Set the hotspot ssid. Defaults to "fwa".
  • HOTSPOT_PW: Set the hotspot password. Default to "a9LG2kUVrsRRVUo1". Recommended to change.

Systemd:

The service is run as a systemd service. There are two service fwa.service and fwa-fail.service. They read their config from a env file located at /etc/fwa.env. See example env file.

Building

Run make package to create .deb file. Cross is used for building the rust code.

Description
Track attendance with RFID tags on dedicated hardware.
Readme 3.1 MiB
Languages
Rust 52.3%
Shell 28.9%
Svelte 12.4%
Makefile 2.6%
TypeScript 1.7%
Other 2.1%