Automatically decode Wiegand data from Raspberry Pi GPIO pins.
Project description
pywiegandpi
Read Wiegand data from Raspberry Pi GPIO pins with a simple callback structure and automatic decoding.
Getting Started
Install pigpio if it's not already installed:
sudo apt install pigpio
Enable the pigpio daemon:
sudo systemctl enable pigpiod
Install the required python packages by running the following command:
pip3 install -r requirements.txt
Use it like so:
from pywiegandpi import WiegandDecoder
data_0_pin = 6
data_1_pin = 5
def callback(value):
print("Got Wiegand data: {}".format(value))
wiegand_reader = WiegandDecoder(data_0_pin, data_1_pin, callback)
while True:
# do something else
pass
Acknowledgements
This library is based on the original example from joan2937.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywiegandpi-1.0.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for pywiegandpi-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc81d54d3383ea144a866564b1b0b76dd571224db84ac2de035db0496b304f10 |
|
MD5 | ec9e20467407c5dae437e31b5435a360 |
|
BLAKE2b-256 | 49370885cd3d03d558f623b5b5ed53c77296f0e488c787862e9c8c32598f9a33 |