Repository navigation
feat: Telegram and webhook alerts, spooled offline - #9
Merged
Merged
Conversation
…bhook, spooled offline
agus-darmawan
added a commit
that referenced
this pull request
Nov 1, 2026
feat: Telegram and webhook alerts, spooled offline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
A critical finding at 02:00 is worthless in a report read at 08:00. New package
hotdog_alerts(alert_node) tells the crew as it happens:findings.min_severity(warning)patrol_done)sendPhotowith the evidence when it fits a caption, elsesendMessage, HTML escaped) and a JSON webhook (Authorization: BearerfromHOTDOG_WEBHOOK_TOKEN) for a control room / ticket system. Tokens only from the env file, never parameters; nothing logs the token URL.~/.hotdog/alerts): every alert is written first, sent everyretry_sec, oldest first, each channel once; a failing channel is retried next pass without blocking the others; dropped aftermax_age_hours/ beyondmax_queued(logged). Survives an uplink outage and restarts.repeat_hours(12 h) unless worse; a patrol that ended before the node started is never re-announced.language: en | id(Bahasa Indonesia for the crew),robot_name,report_url(links to the feat: HTML patrol reports, retention and the report server #8 patrol pages).alerts/testfor commissioning.alerts, envALERTS);TELEGRAM_BOT_TOKEN=andHOTDOG_WEBHOOK_TOKEN=in the env template.How it was tested
pre-commit runon every changed and new filehotdog_alerts9,hotdog31 — findings and the preferred image, repeats and "worse", Bahasa Indonesia, patrol and health alerts, links, spool (age, size, broken files), Telegram photo / text and the webhook against a local stand-in API, 502 then retried and delivered, HTML escapingtest/ros(alert_node against a stand-in webhook) — needsDHARMA_TOKENros2 service call /alerts/test std_srvs/srv/Triggerarrives in the groupChecklist
config/alerts.yaml, README)/etc/hotdog/hotdog.env, mode 640)Generated by Claude Code