Versions in this module Expand all Collapse all v0 v0.3.3 Jun 23, 2023 v0.3.2 May 2, 2023 Changes in this version + type Administrator struct + PasswordHash string + Username string + type Config struct + Administrator Administrator + Dashboard Dashboard + HomeAssistant HomeAssistant + Sensors Sensors + func LoadConfig() (config *Config, isFirstRun bool, err error) + func (config *Config) AdminEndpoint(c *fiber.Ctx) error + func (config *Config) Equals(c *Config) bool + func (config *Config) IsAuthorized(c *fiber.Ctx) bool + func (config *Config) RenderAdminPanel(c *fiber.Ctx, warning ...Warning) error + func (config *Config) RenderIndex(c *fiber.Ctx) error + func (config *Config) TemplateDefaultsMap() fiber.Map + func (config *Config) UpdateHistory() + type Dashboard struct + FooterLinks []Link + HeaderLinks []Link + Name string + Theme string + type DayData struct + DayNumber int + DayTime time.Time + High float32 + Low float32 + Measurements int + Value float32 + type History []HistoryEntry + type HistoryEntry struct + Date int64 + GreenEnergyPercentage float32 + PolledSmartEnergySummation float32 + type HistoryResult []struct + type HomeAssistant struct + APIKey string + BaseURL string + InstallationDate time.Time + type Link struct + Destination string + Label string + NewTab bool + Primary bool + type Sensors struct + FossilPercentage string + PolledSmartEnergySummation string + type Warning struct + Body string + BodyHTML template.HTML + Header string + IsSuccess bool