2025-03-04 00:52:13 +01:00
2022-03-16 05:59:18 +01:00
2025-03-04 00:52:13 +01:00
2021-09-19 20:39:06 +02:00
2022-05-24 08:46:48 +00:00
2022-03-12 10:46:38 +01:00
2022-03-16 05:59:18 +01:00
2022-03-16 05:59:18 +01:00
2022-05-22 03:42:38 +02:00
2022-03-16 05:59:18 +01:00

FabFire Adapter

The FabFire adapter translates MQTT messages from the FabReader hardware to API calls to bffhd.

Installation

With python3-venv

Easy, native installation without overhead is possible with python3 virtual environment:

cd /opt/fabinfra/adapters/
git clone https://gitlab.com/fabinfra/fabaccess/fabfire_adapter.git --recursive
cd fabfire_adapter/
python3 -m venv env
. env/bin/activate
pip3 install -r requirements.txt

With the Dockerfile and Podman

You can also install the fabfire adapter using Docker or Podman:

podman build -f Dockerfile -t fabinfra/fabfire_adapter

#cleanup if required:
podman system prune

Configuration

Edit the config file example provided in config/config.toml

  1. Set hostname and port for your MQTT Broker and bffhd instance

  2. Add your desired readers to the [readers] section. Every reader needs a unique subsection name:

    [readers]
     [readers.REPLACEME]
     id = "111"
     machine = "urn:fabaccess:resource:Testmachine"
    
     [readers.REPLACEMETOO]
     id = "222"
     machine = "urn:fabaccess:resource:Another"
    

Running

  1. Run the adapter:

  2. python3 main.py
    

or with Podman:

podman run localhost/fabinfra/fabfire_adapter:latest
  1. The adapter has to remain running for the readers to work

Provisioning

See the provisioning tool repo.

S
Description
The FabFire Adapter translates MQTT messages from the FabReader hardware to API calls to bffhd.
Readme 70 KiB
Languages
Python 97.6%
Dockerfile 2.4%