The dctrl-fobtap repo is designed to run on a raspberry pi which is connected to a rfid fob reader (ie: 125khz USB Contactless Proximity Card ID Reader RFID EM4100 EM4102 TK4100).
In Arch Linux use the alarm@alarmpi gpio]$ echo "17" | sudo tee /sys/class/gpio/export
command for exporting the GPIO pin you are using. We use 17.
module.exports = { resourceId: 'f3e0a850-9f31-11e7-b78b-75fa56fec78b', brainLocation:'192.168.0.110:8003/', charged:0, rethink: { db: 'dctrl', host: '192.168.0.110' }, reaction: 'door', fobReader: "/dev/input/by-id/usb-Sycreader_USB_Reader_08FF20150112-event-kbd" }
Example Configuration File on pi: configuration.js
- You can find your fobReader id using
ls /dev/input/by-id
Overview of what each file is doing:
Contains the code that remembers how many dispenses are owed and ensures that they are spaced out to give time for the users to use the vending machine.
Example systemd file that manages the automatic startup.
Main file sends fob details from tap.js stream to dctrl-admin
Node package configuration.
You are here.
Logic that works with the rfid reader and exposes a kefir stream of the fob values.
This file listens on the db event creation creates a dispense event.
Always update Arch's dedicated package manager 'pacman' with
pacman -Syu