diff --git a/.github/workflows/build_docker.yml b/.github/workflows/build_docker.yml index 8a88275..88283f1 100644 --- a/.github/workflows/build_docker.yml +++ b/.github/workflows/build_docker.yml @@ -1,11 +1,6 @@ name: ProjectHUD CI -on: - push: - branches: - - "*" - tags: - - "*" +on: push env: REGISTRY: ghcr.io diff --git a/.gitignore b/.gitignore index 5c334ab..09789e0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .db __pycache__ .env +node_modules/ diff --git a/README.md b/README.md index 772cca9..80a673e 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,8 @@ services: GITHUB_TOKEN: YOUR_TOKEN GITHUB_REPOS: YOUR,REPOS USERNAME_MAP: username:realname, + REFRESH_DURATION: 25 # Optional + API_REFRESH_DURATION: 200 # Optional ``` ## Example setup with openbox autostart diff --git a/app/routes/index.py b/app/routes/index.py index 6f60b33..6b2121b 100644 --- a/app/routes/index.py +++ b/app/routes/index.py @@ -1,3 +1,4 @@ +import os from flask import Blueprint, render_template index_bp = Blueprint("main", __name__) @@ -5,4 +6,6 @@ @index_bp.route("/") def index(): - return render_template("index.html") + return render_template( + "index.html", refresh_duration=int(os.getenv("REFRESH_DURATION", 25)) + ) diff --git a/app/routes/screens.py b/app/routes/screens.py index 3893d3a..fa0b994 100644 --- a/app/routes/screens.py +++ b/app/routes/screens.py @@ -35,7 +35,7 @@ def test_screen():
-