Site: log tariffs
This commit is contained in:
parent
8eccba6942
commit
7d533fbf0e
1 changed files with 12 additions and 0 deletions
12
core/site.go
12
core/site.go
|
|
@ -381,6 +381,18 @@ func (site *Site) DumpConfig() {
|
|||
}
|
||||
}
|
||||
|
||||
site.log.INFO.Println(" tariffs:")
|
||||
trf := func(u api.TariffUsage) string {
|
||||
if t := site.GetTariff(u); t != nil {
|
||||
return t.Type().String()
|
||||
}
|
||||
return presence[false]
|
||||
}
|
||||
site.log.INFO.Printf(" grid: %s", trf(api.TariffUsageGrid))
|
||||
site.log.INFO.Printf(" feed-in: %s", trf(api.TariffUsageFeedIn))
|
||||
site.log.INFO.Printf(" co2: %s", trf(api.TariffUsageCo2))
|
||||
site.log.INFO.Printf(" solar: %s", trf(api.TariffUsageSolar))
|
||||
|
||||
for i, lp := range site.loadpoints {
|
||||
lp.log.INFO.Printf("loadpoint %d:", i+1)
|
||||
lp.log.INFO.Printf(" mode: %s", lp.GetMode())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue