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.
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
Project details
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.8.tar.gz
(29.1 kB
view details)
Built Distribution
File details
Details for the file sportident-1.2.8.tar.gz
.
File metadata
- Download URL: sportident-1.2.8.tar.gz
- Upload date:
- Size: 29.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.18 Linux/6.5.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be1afe931a6986e9acd847274ba72e805e114e3cf0014738b5c342fc0a52938b |
|
MD5 | e23fdda2470b63621fdf2be756e63f23 |
|
BLAKE2b-256 | 3e6eb1ccd9a2362c741be3b342a8fc93d41c5680c13c1f1f6921e578b9134c2d |
File details
Details for the file sportident-1.2.8-py3-none-any.whl
.
File metadata
- Download URL: sportident-1.2.8-py3-none-any.whl
- Upload date:
- Size: 28.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.18 Linux/6.5.0-1021-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad66dd66d67aa0bbabea0069868e70e0c426c14db5187f7015aa120b82a9761d |
|
MD5 | e0ffe335b26b5ff4614b0ee2b3199bcc |
|
BLAKE2b-256 | 35030047ad3e340284e47e8dead3ed4c456cf69d998c4ac83e0a949cb721171b |