GEGHA documents for Hiringa
This folder holds the source of the documents Sundial sends Hiringa for GEGHA, the Stage 2 solar and battery site at Wathagar, and the render script that turns them into PDFs.
Files
| File | What it is |
|---|---|
| gegha-cloud-api-spec.md | Source of the GEGHA cloud API specification. Edit this. |
| gegha-optimiser-parameters.md | Source of the GEGHA optimisation model and configurable parameters document. Edit this. |
| render_report.py | Renders a Markdown source to HTML in the Sundial report style. |
| logo-brand.svg | The Sundial logo the masthead uses. |
| fonts/ | Local copies of Archivo, Source Serif 4, and Source Code Pro, plus fonts.css. fetch_fonts.py refreshes them. |
| *-print.html | Rendered print HTML. Build output. |
| GEGHA-*.pdf | Rendered PDFs of the current revision. Build output. |
| sent/ | Every revision as sent to Hiringa, with the Markdown source where it survives. Never edit. |
Revisions
| Revision | Date | Sent to | What changed |
|---|---|---|---|
| 1 | 10 Sep 2026 | Graham Connell, Paul Goodsell copied | First draft of both documents. Source lost. PDF in sent/. |
| 2 | 10 Sep 2026 | Graham Connell, Paul Goodsell copied | Named load series for hydrogen and gin. Feasibility response. |
| 3 | 24 Sep 2026 | Not yet sent | Shortfall cost per load makes the demand a soft constraint. Plan assessment reports every shortfall with a reason. Gin leaves the API and stays on the Stage 1 dashboard control. Agreed on the 10 Sep 2026 call. |
How to build
Run these from this folder. The revision text on the masthead is the last argument.
python3 render_report.py gegha-cloud-api-spec.md gegha-cloud-api-spec-print.html "GEGHA cloud API specification" "GEGHA" "Hiringa Sundown (GEGHA) Project|Wathagar, NSW|Revision 3, 24 September 2026" --print
/home/beef/.cache/ms-playwright/chromium_headless_shell-1234/chrome-headless-shell-linux64/chrome-headless-shell --headless --disable-gpu --no-sandbox --no-pdf-header-footer --timeout=20000 --print-to-pdf=GEGHA-cloud-API-specification-rev3.pdf file://$PWD/gegha-cloud-api-spec-print.html
The parameters document builds the same way with its own file names. Any Chromium works in place of the Playwright one. The Playwright build of full Chromium hung on this machine on 24 Sep 2026. The headless shell build worked.
Before a document goes to Hiringa, lint the source:
python3 /home/beef/bin/style_lint.py --formal gegha-cloud-api-spec.md
When a revision is sent, copy the PDF and the Markdown source into sent/ with the revision number in the file name, and add a row to the table above.