Card reading as a service (CRAAS). craas
presents a TCP server that publishes Wiegand card read events from a serial device to TCP subscribers. Want to know when an IQ employee badges into the Foosball table or the front door? Use craas
.
- client debugging.
craas -testing
sets up a REPL so that you can publish arbitrary card events from the command line. Useful for testing your subscriber implementation without having a card reader. - TODO: read card events from a serial device.
Download the relevant binary for your system, or build from source. Requires go 1.9.x to build from source.
$ ./crass -h # print help
$ ./craas -serial /dev/ttyUSB0 -port :8080 # read from /dev/ttyUSB0, and publish to localhost port 8080
$ ./craas -testing -port 127.0.0.1:9999 # read from the testing REPL, and publish to 127.0.0.1:9999