diff --git a/README.md b/README.md index 83d30f3..63e8402 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Immich Alt Text Helper +# Station Announcer -A small Flask app that fetches recent Immich photos and helps generate high-quality Mastodon alt text via the OpenAI API. +Station Announcer is a small Flask app that keeps your Immich library and Mastodon account in sync. It helps you compose rich Mastodon posts (with GPT-polished copy and cached alt text) and doubles as an Immich alt-text helper. ## Getting started @@ -21,11 +21,11 @@ A small Flask app that fetches recent Immich photos and helps generate high-qual flask --app app run --debug ``` -3. Visit to browse recent Immich photos, view cached alt text, request new alt text guided by optional notes, or compose Mastodon posts. +3. Visit to start composing Mastodon posts from your recent Immich uploads, or hop into the alt-text helper view. ## Mastodon workflow -* Use **Compose Mastodon post** to select up to four photos from the last few days (200 entries are shown for convenience). +* The home page launches the composer. Use **Select photos** there to pick up to four recent Immich photos (200 entries are shown for convenience). * The draft view auto-fills cached alt text (or generates it if missing), lets you edit each description, enter post text, and provide optional ChatGPT instructions. It also shows your most recent Mastodon post so you can tick a box to continue a thread. * Hit **Improve text with ChatGPT** as many times as you like; the model polishes grammar, tone, and UK English spellings while respecting your extra notes. * When ready, choose **Post to Mastodon** to upload the selected media (with their alt text) and publish the refined caption (optionally as a reply) via the configured access token. diff --git a/gen_photo_alt_text/routes.py b/gen_photo_alt_text/routes.py index 6f46a86..fd3eb07 100644 --- a/gen_photo_alt_text/routes.py +++ b/gen_photo_alt_text/routes.py @@ -107,6 +107,11 @@ MAX_MEDIA_ATTACHMENTS = 4 @bp.route("/") def index(): + return redirect(url_for("main.compose_select")) + + +@bp.route("/alt-text-helper") +def alt_helper(): immich_client = current_app.immich_client alt_cache = current_app.alt_text_cache days = current_app.config.get("RECENT_DAYS", 3) diff --git a/templates/base.html b/templates/base.html index 0708980..5236170 100644 --- a/templates/base.html +++ b/templates/base.html @@ -2,7 +2,7 @@ - Immich Alt Text Helper + Station Announcer @@ -10,10 +10,10 @@