@howartp
The Raspberry Pi sends the tag number to an Indigo variable. A Python script triggered by the change in tag number then decides if the tag is valid or invalid and acts accordingly, then sets the variable to "-" ready for the next tag.
@Asconasny
Here’s a guide:
Prerequisites:
A Raspberry Pi or Pi Zero (I used a Pi Zero W), running Raspbian Jessie Light or similar, connected to your LAN
A 12v DC power supply for the reader.
I bought this Wiegand reader from eBay:
http://www.ebay.co.uk/itm/125KHz-Waterp ... 2749.l2649And these tags:
http://www.ebay.co.uk/itm/10pcs-125khz- ... 2749.l2649Here’s how to connect the reader to the Pi. You need a voltage divider because the Wiegand output voltage is too high for the Pi GPIO inputs. Bear in mind that the cable colours are different, and you don’t need the LED:
https://github.com/leosac/leosac/wiki/R ... ep-by-stepIt’s only an approximate guide - the author hasn’t finished it - but it should be enough. If you have any problems give me a shout.
Then install the PIGPIO library onto the Pi:
http://abyz.co.uk/rpi/pigpio/index.htmlHere’s the Pi Python script to read the tag:
https://www.dropbox.com/s/78kady4th1b8j ... y.zip?dl=1(You’ll need to modify a couple of things towards the bottom of the script; see comments.)
Put the following lines into Pi /etc/rc.local just before 'exit 0' to keep things running after a reboot:
sudo pigpiod
sudo python /root/wiegand.py &
When you’ve done all this you should be able to tap a tag against the reader and have its number show up on Indigo.
Good luck!