From 6493f8ed068c96bd9ae514211b4243a68f52aa0a Mon Sep 17 00:00:00 2001 From: Norbert Jovari Date: Sun, 30 Mar 2025 20:05:56 +0200 Subject: [PATCH] added requirements.txt, fix typo --- README.md | 8 ++++---- main.py | 4 ++-- requirements.txt | Bin 0 -> 302 bytes 3 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 requirements.txt diff --git a/README.md b/README.md index 15aa9c1..5fbd7c4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# OE HTML viewer +# SportSoftware OE HTML viewer Simple Python script to serve the exported HTML results file from the SportSoftware OE application on the local network. @@ -14,8 +14,8 @@ Simple Python script to serve the exported HTML results file from the SportSoftw 1. Clone the repository: ```sh - git clone - cd + git clone https://gitea.carburator.dev/carburator/oe-html-viewer.git + cd oe-html-viewer ``` 2. Create a virtual environment: @@ -53,7 +53,7 @@ Simple Python script to serve the exported HTML results file from the SportSoftw 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. -- `host`: Host address for the Flask application. Leave at `0.0.0.0` for avability at all network interfaces (localhost / LAN) +- `host`: Host address for the Flask application. Leave at `0.0.0.0` for availability at all network addresses (localhost / LAN) - `port`: Port number for the Flask application. - `is_oe11`: Boolean flag for encoding (True for OE11, False for OE12). - `scroll_pixels`: Number of pixels to scroll each interval. diff --git a/main.py b/main.py index fa2e652..2edc1b0 100644 --- a/main.py +++ b/main.py @@ -4,8 +4,8 @@ from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler # -------------- VARIABLES -------------- -html_file_path = r'C:\' -host = '0.0.0.0' # http://localhost OR http:// +html_file_path = r'PATH' +host = '0.0.0.0' port = 80 is_oe11 = True # if using OE11 set it to True, for OE12 set it to False (encoding) scroll_pixels = 100 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..ebb874e9e1832629962476668db7ae9db6dec19f GIT binary patch literal 302 zcmXw!O$)*>5JcxJ_*bO1QtH902f>pE&$WKlY9qBp@W-ofla#O|?3RjXB_ zlRB+9bIr7*5=}Kx<#`1+R?s(IMCPE5xl#|x6bW=ek|PwjZ0@iGrn**2-)