Timing and result application for track cycling events
Project description
metarace-trackmeet
Timing and result application for UCI Part 3 Track Races.
Usage
Choose meet folder and open:
$ trackmeet
Open an existing track meet:
$ trackmeet PATH
Create empty meet folder and open it:
$ trackmeet --create
Edit default configuration:
$ trackmeet --edit-default
Support
Requirements
- Python >= 3.11
- PyGObject
- Gtk >= 3.22
- metarace >= 2.1.9
- tex-gyre fonts (optional, recommended)
- evince (optional, recommended)
- rsync (optional)
- mosquitto (optional)
Automated Installation
For semi-automated installation on common unix-like desktop systems, download the metarace install script and run with sh:
$ wget https://github.com/ndf-zz/metarace/raw/refs/heads/main/metarace-install.sh
$ sh metarace-install.sh
For installation on Windows systems, a powershell script is provided to install metarace applications under a WSL Debian container:
wget https://github.com/ndf-zz/metarace/raw/refs/heads/main/wsl-install.ps1
Post-Installation Notes
Optionally configure defaults for new meets and library options:
$ ~/Documents/metarace/venv/bin/trackmeet --edit-default
Gnome Desktop
By default, Gnome uses a system font which does not have fixed-width digits. As a result, rolling times displayed in trackmeet will jiggle left and right as the digits change, and right-aligned time columns will not align correctly at the decimal point.
To correct this, install gnome-tweaks and change the system font to one with fixed-width digits eg: Noto Sans Regular.
Debugging messages can be viewed using journactl:
$ journalctl -f
XFCE
The XFCE default window manager uses function keys to switch workspaces, rendering them inaccessible to trackmeet. To use these function keys in trackmeet (eg for reports, arming and reset), first clear the relevant window manager shortcuts.
Under Settings, Window Manager, Keyboard, locate the "Workspace N" entries and clear the shortcut for each one by selecting the "Clear" button.
Roadmeet can be configured to open meet folders in Thunar by creating a custom action with appearance conditions set to include "Directories". The action can then be added to the toolbar or triggered from a context menu.
Following an automated install, you may need to log out and back in for the menu entries to be properly updated.
Debugging messages are appended to ~/.xsession-errors, view with tail:
$ tail -f ~/.xsession-errors
Manual Installation
Install system requirements for your OS (See System-Specific Preparation below) then prepare a metarace runtime directory and virtual env as follows:
$ mkdir -p ~/Documents/metarace
$ python3 -m venv --system-site-packages ~/Documents/metarace/venv
Install trackmeet to the virtual env, or run from source using one of the following methods:
Install From PyPI With Pip
Use pip in your virtual env to download and install trackmeet along with any required python packages from the Python Package Index:
$ ~/Documents/metarace/venv/bin/pip3 install metarace-trackmeet
Create a new empty trackmeet:
$ ~/Documents/metarace/venv/bin/trackmeet --create
Install From Wheel
Download the trackmeet wheel from github and verify signature:
$ wget https://github.com/ndf-zz/metarace-trackmeet/releases/download/v1.13.2/metarace_trackmeet-1.13.2-py3-none-any.whl
$ wget https://github.com/ndf-zz/metarace-trackmeet/releases/download/v1.13.2/metarace_trackmeet-1.13.2-py3-none-any.whl.asc
$ gpg --verify metarace_trackmeet-1.13.2-py3-none-any.whl.asc
Use pip in your virtual env to install the trackmeet wheel:
$ ~/Documents/metarace/venv/bin/pip3 install ./metarace_trackmeet-1.13.2-py3-none-any.whl
Create a new empty trackmeet:
$ ~/Documents/metarace/venv/bin/trackmeet --create
Run From Source Tree
Activate the virtual env, optionally install any required libraries, clone the repository and run trackmeet directly:
$ source ~/Documents/metarace/venv/bin/activate
(venv) $ pip3 install metarace
(venv) $ git clone https://github.com/ndf-zz/metarace-trackmeet.git
(venv) $ cd metarace-trackmeet/src
(venv) $ python3 -m trackmeet
System-Specific Preparation Notes
Debian 11+, Ubuntu, Mint, MX (apt)
Install system requirements for trackmeet and metarace with apt:
$ sudo apt install python3-venv python3-pip
$ sudo apt install python3-cairo python3-gi python3-gi-cairo
$ sudo apt install gir1.2-gtk-3.0 gir1.2-rsvg-2.0 gir1.2-pango-1.0
$ sudo apt install python3-serial python3-paho-mqtt python3-dateutil python3-xlwt
Optionally add fonts, PDF viewer, rsync and MQTT broker:
$ sudo apt install fonts-texgyre fonts-noto evince rsync mosquitto
Add your user to the group dialout in order to access serial ports:
$ sudo gpasswd -a "$USER" dialout
Arch, Manjaro, EndeavourOS (pacman)
Install system requirements with pacman:
$ sudo pacman -S --needed python python-pip gtk3
$ sudo pacman -S --needed python-pyserial python-dateutil python-xlwt python-paho-mqtt python-gobject python-cairo
Optionally install pdf viewer, fonts, rsync and mqtt broker:
$ sudo pacman -S --needed noto-fonts tex-gyre-fonts evince rsync mosquitto
$ sudo systemctl enable mosquitto.service
Add your user to the group uucp in order to access serial ports:
$ sudo gpasswd -a "$USER" uucp
Gentoo Linux
Install required system libraries, or select a suitable meta-package (eg XFCE):
# emerge --ask -n xfce-base/xfce4-meta x11-themes/gnome-themes-standard
Install required python packages:
# emerge --ask -n dev-libs/gobject-introspection dev-python/pygobject dev-python/python-dateutil dev-python/xlwt dev-python/pyserial dev-python/paho-mqtt
Install optional fonts, pdf viewer and MQTT broker:
# emerge --ask -n media-fonts/tex-gyre media-fonts/noto app-text/evince app-misc/mosquitto net-misc/rsync
Add your user to the group dialout in order to access serial ports:
# gpasswd -a "username" dialout
Alpine Linux (apk)
Setup a desktop environment, then add python requirements with apk:
# apk add py3-pip py3-pyserial py3-dateutil py3-paho-mqtt py3-gobject3 py3-cairo
Install optional fonts, pdf viewer, rsync and MQTT broker:
# apk add font-noto evince rsync mosquitto
Install Tex Gyre fonts from Gust:
$ wget https://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg2_501otf.zip
$ mkdir -p ~/.local/share/fonts
$ unzip -j -d ~/.local/share/fonts tg2_501otf.zip
$ fc-cache -f
Add your user to the group dialout in order to access serial ports:
$ sudo gpasswd -a "$USER" dialout
Fedora Linux (dnf)
Install system requirements:
$ sudo dnf install gtk3 gobject-introspection cairo-gobject
$ sudo dnf install python3-pip python3-cairo
$ sudo dnf install python3-pyserial python3-paho-mqtt python3-dateutil python-xlwt
Optionally add fonts, PDF viewer, rsync and MQTT broker:
$ sudo dnf install google-noto-sans-fonts google-noto-mono-fonts google-noto-emoji-fonts texlive-tex-gyre evince rsync mosquitto
$ sudo systemctl enable mosquitto.service
Add your user to the group dialout in order to access serial ports:
$ sudo gpasswd -a "$USER" dialout
Slackware
Install a desktop environment (eg XFCE), python packages will be installed as required by pip.
Note: Slackware does not ship evince with the XFCE desktop, but sets it as the Gtk print preview application. To enable print preview, install evince from slackbuilds, or add an entry in ~/.config/gtk-3.0/settings.ini to point to another application:
[Settings]
gtk-print-preview-command=xpdf %f
Install Tex Gyre fonts from Gust:
$ wget https://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg2_501otf.zip
$ mkdir -p ~/.local/share/fonts
$ unzip -j -d ~/.local/share/fonts tg2_501otf.zip
$ fc-cache -f
Add your user to the group dialout in order to access serial ports:
$ sudo gpasswd -a "$USER" dialout
FreeBSD
Install a desktop environment (eg XFCE), then install optional components with pkg:
# pkg install evince rsync mosquitto
Add user to group dialer in order to access serial ports:
# pw group mod -n dialer -m op
Install Tex Gyre fonts from Gust:
$ wget https://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg2_501otf.zip
$ mkdir -p ~/.local/share/fonts
$ unzip -j -d ~/.local/share/fonts tg2_501otf.zip
$ fc-cache -f
Note: Use callout serial devices for decoder access. For example, a race result active decoder on the first USB serial port:
rru:/dev/cuaU0
MacOS / Brew
[TBC]
Windows / WSL
Install VirtualMachinePlatform and Windows Subsystem for Linux with Powershell:
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -All -NoRestart
wsl --install --no-distribution
Reboot computer, then prepare a Debian container:
wsl --install -d Debian
In the Debian shell, install wget, cups and thunar:
$ sudo apt-get install wget cups thunar
Add your user to the lpadmin group:
$ sudo gpasswd -a "$USER" "lpadmin
Download the installer and run with sh:
$ wget https://github.com/ndf-zz/metarace/raw/refs/heads/main/metarace-install.sh
$ sh metarace-install.sh
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metarace_trackmeet-1.13.6.tar.gz.
File metadata
- Download URL: metarace_trackmeet-1.13.6.tar.gz
- Upload date:
- Size: 186.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26577d7e1751d9e2d728b5d9a34ba58f069d927f5d331b33f8b0c7794b43d754
|
|
| MD5 |
6167b28aad7419366c50896f5e6e5812
|
|
| BLAKE2b-256 |
b5d64fae744b33bb0d0cd94b0fe456f3b4211423b36d4ad92da3c3f1623a8fc2
|
File details
Details for the file metarace_trackmeet-1.13.6-py3-none-any.whl.
File metadata
- Download URL: metarace_trackmeet-1.13.6-py3-none-any.whl
- Upload date:
- Size: 202.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6d86afe3dd55a4e224ad5a9bc1be771094c45d09c96236fe14048be0677de8f
|
|
| MD5 |
2ec74fc290c30ed65a8eb69890e692d8
|
|
| BLAKE2b-256 |
12d88b6148d573d7f270d9fb6557b770c83efe1e2216604c718ed2f417f1c6ce
|