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.1.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file pywiegandpi-1.0.1.tar.gz
.
File metadata
- Download URL: pywiegandpi-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 605a1870794ad6abf888c4723dbe767c2c1d0fe534b1b31579fc0cdf3e801f46 |
|
MD5 | 5c58d63526fc8ca77965c696307781bd |
|
BLAKE2b-256 | 8d9b7783664e6e7c077b438632be9d22eda0e7ab0e6ac6e7793a0152c0ab9101 |
File details
Details for the file pywiegandpi-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pywiegandpi-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14588686f258fbe6ac07388454011be3ee8fb4c78ab322769feadd3c5d2b0880 |
|
MD5 | b2c05838575747316b2d6f1c570ee2bd |
|
BLAKE2b-256 | 99ae89b6d93fdfbd9f9b0cd1d88842aea2713fb927a49e81835556a20dfe099b |