Python module to communicate with SportIdent main stations
Project description
SportIdent Reader
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.
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()
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
sportident-1.2.6.tar.gz
(29.0 kB
view hashes)
Built Distribution
Close
Hashes for sportident-1.2.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8d35e277d4e99da9a30b5b4a146c6b311c3cd632d8e4a8fe702466dcf76a16d |
|
MD5 | 1c629b9e2927ec9b960ad87d0dc250da |
|
BLAKE2b-256 | 7b11845af448d2e03c77a1162fe855b1ead8218ee67f0e75d5fb0c4d3ea32811 |