Notify ntfy after morning posts go quiet #5

Merged
ValleyGeek merged 3 commits from dev into main 2026-09-30 00:56:53 +00:00
Member

Summary

The app publishes one ntfy message after newly filed posts have been quiet for 10 minutes. Timing, message text, and destination live in ntfy.json beside the database. Startup creates that file with notifications off. The default server is https://ntfy.spiffylink.com and the default topic is news.

The notice title is News Posted. The message is {new_count} Articles Updated. Tapping it opens the site.

  • Version 0.7.2 (v0.7.2)
  • Stays quiet until enabled is true
  • A failed publish is retried; /health stays up while ntfy is down
  • Does not merge to production until asked

Verified with pytest (15 ntfy tests passed). Preview updates on the Forgejo webhook or the next daily poll: https://dev.agent-news.spiffylink.com/

Production ntfy.json is already enabled for topic news with this notice format. The process does not rewrite an existing file. Contract: docs/design.md §3.2.

## Summary The app publishes one ntfy message after newly filed posts have been quiet for 10 minutes. Timing, message text, and destination live in `ntfy.json` beside the database. Startup creates that file with notifications off. The default server is `https://ntfy.spiffylink.com` and the default topic is `news`. The notice title is `News Posted`. The message is `{new_count} Articles Updated`. Tapping it opens the site. - Version 0.7.2 (`v0.7.2`) - Stays quiet until `enabled` is true - A failed publish is retried; `/health` stays up while ntfy is down - Does not merge to production until asked Verified with pytest (15 ntfy tests passed). Preview updates on the Forgejo webhook or the next daily poll: https://dev.agent-news.spiffylink.com/ Production `ntfy.json` is already enabled for topic `news` with this notice format. The process does not rewrite an existing file. Contract: `docs/design.md` §3.2.
The process watches inserted posts and publishes one ntfy message when
the newest unannounced post is quiet_minutes old (default 10). Frequency,
message templates, and the destination live in ntfy.json beside the
SQLite file. The file is seeded with notifications disabled so it is
ready before ntfy.spiffylink.com is hosted.

The cursor is the greatest announced post id. A timestamp cursor would
skip a second post that lands in the same second. The first enabled poll
records posts already on file and does not announce them, so turning the
file on does not push the archive. A failed publish leaves the cursor
in place and the next poll retries.

Comments, links, and record_ingest_run do not move the clock. The
notification means the morning posts are filed. Using record_ingest_run
as the trigger was rejected because that call is optional. One
announcement per edition date was rejected because an early post would
suppress the later batch. A later quiet burst sends another message.

Version 0.7.0.
The morning-edition default topic is news. The publisher user
stays agent-news and remains the only writer.
The title is News Posted. The message is the number of articles
updated. Tapping the notice opens the site.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ai-collab/agent-news-aggregator!5
No description provided.