https://github.com/arpihomesecurity/pywiegand
Python wiegand reader on raspberry
https://github.com/arpihomesecurity/pywiegand
cplusplus cpp python raspberry-pi wiegand
Last synced: 3 months ago
JSON representation
Python wiegand reader on raspberry
- Host: GitHub
- URL: https://github.com/arpihomesecurity/pywiegand
- Owner: ArPIHomeSecurity
- License: mit
- Created: 2021-11-28T17:31:04.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-19T18:40:09.000Z (over 1 year ago)
- Last Synced: 2025-02-01T12:44:14.007Z (12 months ago)
- Topics: cplusplus, cpp, python, raspberry-pi, wiegand
- Language: C++
- Homepage: https://pypi.org/project/pywiegand/
- Size: 42 KB
- Stars: 14
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Wiegand reader on Raspberry PI
Using GPIO you can read the key presses and card codes from a keypad with the Wiegand protocol.
[](https://pepy.tech/project/pywiegand)
# Requirements
* Raspberry PI OS
* WiringPI
# Wiring

# Install
```
pip install pywiegand
```
# Usage
```python
>>> from pywiegand import WiegandReader
>>> wr = WiegandReader(6, 5)
# reading card
>>> wr.read()
'560019750914'
# reading keys
>>> wr.read()
['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '#']
```
# Building
Do the following steps on the target device to build the package.
1. Install WiringPI https://github.com/wiringPi/WiringPi/
2. Install Python3 and poetry https://python-poetry.org/
3. Clone the repository
4. Run `poetry build`
5. Install the package with `pip install dist/pywiegand-.tar.gz`