Skip to content
forked from gaudenz/sireader

Python module to communicate with SportIdent main stations

License

Notifications You must be signed in to change notification settings

sportorg/sireader

 
 

Repository files navigation

SportIdent Reader

PyPI PyPI - Python Version GitHub last commit GitHub stars

sportIdent.py is a python module to communicate with a SportIdent main station to read out SportIdent cards. SportIdent is an electronic punching system mainly used for orienteering events.

Installation

pip install sportident

Usage

from time import sleep
from sportident import SIReaderReadout

# connect to base station, the station is automatically detected,
# if this does not work, give the path to the port as an argument
# see the pyserial documentation for further information.
si = SIReaderReadout()

# wait for a card to be inserted into the reader
while not si.poll_sicard():
    sleep(1)

# some properties are now set
card_number = si.sicard
card_type = si.cardtype

# read out card data
card_data = si.read_sicard()

# beep
si.ack_sicard()

License

Contribution

Contribution guidelines for this project

About

Python module to communicate with SportIdent main stations

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 97.5%
  • Makefile 2.5%