Repository navigation
feat: HTML patrol reports, retention and the report server - #8
Merged
Merged
Conversation
…ng, retention, report server
5 of 8 tasks
agus-darmawan
added a commit
that referenced
this pull request
Nov 1, 2026
feat: HTML patrol reports, retention and the report server
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
Substation operators need the result of a round as a report they can open, print and compare with the last round — not JSON files on the robot. New package
hotdog_reports(report_node):<day>/patrol_<HHMMSS>.html), rendered whenpatrol/statusreports the patrol ended: summary tiles (worst, points, findings per severity, duration, returned to the dock), the points, and per point every finding with value, reference, Δ and the last round of the same finding (site, point, target, check, region / discharge type) with its change — a clamp stillnormalbut 6 °C hotter than yesterday is visible before it crosses a limit. Thermal + visible images, sound map + PRPD, linked from the point folders. Prints on A4 (one point per page), scrolls on a phone.day.jsonfigures), every day newest first.http://<robot>:8088/(GET/HEAD only, no cache,..never leaves the folder;server.host: 127.0.0.1for SSH-tunnel only).retention.days(365), then the oldest days while less thanretention.min_free_gb(5 GB) is free; today never.reports/rebuildre-renders everything.reports, envREPORTS, default on).fix(patrol):tf2_rosdependency for the pose of the way back (feat: patrol watchdog and the way back to the dock #7).How it was tested
pre-commit runon every changed and new filehotdog_reports12,hotdog31,hotdog_patrol24 — patrols and points (old summaries withoutinspectionstoo), last round, pages, HTML escaping of names and messages, builder (once, missing, everything, a broken summary), retention, the server (files only,.., 404, POST 501)test/ros(pages at start, a page when a patrol ends, the day refreshed by an inspection, rebuild) — needsDHARMA_TOKENhttp://<robot>:8088/after a patrolChecklist
config/reports.yaml, README)<reports_dir>/<YYYYMMDD>/folders, never today)Generated by Claude Code