⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

membermatters/pywiegandpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Read Wiegand data from Raspberry Pi GPIO pins.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages