Code Monkey home page Code Monkey logo

pywiegand's Introduction

Python Wiegand reader on Raspberry PI

Using GPIO you can read the key presses and card codes from a keypad with the Wiegand protocol.

Downloads

Requirements

  • Raspberry PI OS
  • WiringPI

Wiring

Wiring

Install

pip install pywiegand

Usage

>>> 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', '#']

pywiegand's People

Contributors

gkovacs81 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

chuckb

pywiegand's Issues

Orange Pi One

Hi, will the module work on Orange Pi? How can I change it?

Is it possible to use multiple readers?

Hello,
first of all: thanks for your work! It works really well with one reader. I'm wondering if it would work with a second reader on different GPIOs? Will it create problems if two card readings happen at the same time? Can I prevent those problems somehow?

Question - Library not working

Hey!
This Library would be perfect for a small Raspberry Pi Project i'm working on but i'm not able to make it work.

I got this Error Message:
"File "/home/XXXXXXXXX/wiegandtest.py", line 1, in
from pywiegand import WiegandReader
File "/home/XXXXXXXXXXX/.venv/lib/python3.9/site-packages/pywiegand/init.py", line 1, in
import pywiegand.extension.pywiegand_adapter as wa
ModuleNotFoundError: No module named 'pywiegand.extension.pywiegand_adapter'"

I am not a programmer but it seems that in the "init.py" file the "pywiegand_adapter.cpp" (?) doesnt get imported properly...
Is it because of the Python/Raspberry Version i'm using? Can i change anything to make it work?

I use Python 3.9.2 64-Bit on an Raspberry Pi 4 B 2GB and VS Code as an Development Environment (but i also installed the library directly on the raspberry pi and tried to run a test python programm with the terminal, there i got the same error message). I Imported the Library with pip and it also automatically installed wiringPi.

I hope someone can help me with that, i couldnt find any comparable alternatives to this library online.

Compile

Hello,

Can you explain how to compile it to be able to use the same example in the README ?

Thanks for the share

Regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.