Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
lib
.eslintrc
README.md
index.js
package-lock.json
package.json

README.md

RFID Bridge

Summary: Connects to an RFID reader

Listens for a connected MFC522 card reader and publishes found cards across the WebSocket bridge using the presented event.

{
  "topic": "rfid/event/presented",
  payload: {
    card: {
      uid: "abc"
    }
  }
}

Wiring

Make sure the card reader can use SPI, then wire it up as follows:

Installation

npm install --production

Running

npm start

Running on a non-Raspberry Pi

This relies on the SPI interface so will only run on the Pi. Use the DEBUG=true flag on a non-Pi to send a fake card message e.g. DEBUG=true npm start.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.