|Connecting hardware resources
The AO can connect over a wired LAN or wifi to control the GPIO pins on a raspberry pi. This allows hardware peripherals to be connected to the AO, controlled by members, and restricted with a fee or to active members.
To use a hardware resource with the AO, it must be connected, and a custom control panel GUI must be written for it to display in the Resources panel.
To set up the RFID fob:
Plug in your RFID reader device
Find the name of the hardware by finding where your OS has its hardware devices, and save this info for the init process (type it exactly)
Do gpio-export (there are two different numbering systems for the pins)
8 . Set it up to autostart with systemctl
To connect a hardware resource to the AO via a Raspberry Pi:
Install an OS on your Raspberry Pi (we suggest Debian).
Create a user on your AO for the hardware resource to use (or use an existing user)
npm run init
The AO connect script on the pi will log into the AO as the user and use that access to trigger resource-used events on the server.
GPIO has two modes: BCM and 'board'. For 'board', the order is the physical order of the pins themselves. BCM stands for Board Control Module, and the order is the logical order of the pins.