2.6 KiB
SportSoftware OE HTML viewer
Simple Python script to serve the exported HTML results file from the SportSoftware OE application on the local network. Use it to display the results on a TV or to serve results for the competitors.
Features
- ✅ Customizable auto-scroll (see Variables section)
- ✅ Smooth scrolling
- ✅ Auto-reload at bottom
- ✅ Auto-reload at file change when no need for scrolling
- ✅ Supports OE11 and OE12 exported HTML
- ✅ File serving on localhost and LAN
Variables
The following variables can be found at the top of the main.py script:
html_file_path: Path to the HTML file to be served. Example:C:\Users\<username>\Documents\example-event\results.htmlhost: Host address for the Flask application. Leave at0.0.0.0for availability at all network addresses (localhost / LAN)port: Port number for the Flask applicationis_oe11: Boolean flag for encoding (Truefor OE11,Falsefor OE12)scroll_pixels: Number of pixels to scroll each intervalscroll_interval: Time interval (in seconds) between each scrollbottom_wait_time: Time to wait (in seconds) at the bottom of the page before reloadingtop_wait_time: Time to wait (in seconds) at the top of the page before starting to scroll
Getting Started
Prerequisites
- Python 3.x
- pip
- virtualenv
Installation
Run these commands in CMD or PowerShell.
-
Clone the repository:
git clone https://gitea.carburator.dev/carburator/oe-html-viewer.git cd oe-html-viewer -
Create a virtual environment:
python -m venv .venv -
Activate the virtual environment:
.venv\Scripts\activate -
Install the required packages:
pip install -r requirements.txt
Running the Application
-
If you downloaded earlier and want to use the program again, first activate the venv. Check: Installation - 3.
-
Start the Flask application:
python main.py -
Open your web browser and navigate to
http://localhost:80. From other devices on LAN:http://<host machine IP address>
License
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ and ☕ on 603 NYÍRSÉG IC