Documentation
¶
Overview ¶
Package pdf renders a report as an A4 PDF (spec 12): a summary page with key figures, energy charts and where the energy came from and went, the sections the site has (battery, PV sources, loadpoints, load profile), patterns, comparison and data quality, a compact table and a last page on how the report is calculated. German or English. Charts are vectors in a print palette independent of the UI theme and readable in greyscale. Pure Go (works in the scratch image); fonts are embedded (Inter, SIL Open Font License, see fonts/OFL.txt).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Meta ¶
type Meta struct {
// Site is the site name; Version the app version.
Site, Version string
// Generated is the creation time in the server time zone.
Generated time.Time
// Lang is "de" or "en" (anything else is English).
Lang string
}
Meta is the information that does not come from the report.