mirror of
https://gitlab.com/fabinfra/fabaccess/fabfire_adapter.git
synced 2025-03-12 06:41:47 +01:00
FabFire Adapter
The FabFire adapter translates mqtt messages from the reader hardware to api calls to bffhd.
Usage
Configuration in config.toml
- Set
hostname
andport
for your MQTT Broker and bffhd instance - Add your 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
- Install the requirements with
pip install -r requirements.txt
- Run the adapter with at least python 3.7
python3 main.py
- The adapter has to remain running for the readers to work
Provisioning
See the provisioning tool repo.
Description
The FabFire Adapter translates MQTT messages from the FabReader hardware to API calls to bffhd.
Languages
Python
97.6%
Dockerfile
2.4%