(lp loadpoint.API)
| 27 | } |
| 28 | |
| 29 | func getLoadpointDynamicConfig(lp loadpoint.API) loadpoint.DynamicConfig { |
| 30 | planTime, planEnergy := lp.GetPlanEnergy() |
| 31 | return loadpoint.DynamicConfig{ |
| 32 | Title: lp.GetTitle(), |
| 33 | DefaultMode: string(lp.GetDefaultMode()), |
| 34 | Priority: lp.GetPriority(), |
| 35 | PhasesConfigured: lp.GetPhasesConfigured(), |
| 36 | MinCurrent: lp.GetMinCurrent(), |
| 37 | MaxCurrent: lp.GetMaxCurrent(), |
| 38 | SmartCostLimit: lp.GetSmartCostLimit(), |
| 39 | SmartFeedInPriorityLimit: lp.GetSmartFeedInPriorityLimit(), |
| 40 | Thresholds: lp.GetThresholds(), |
| 41 | Soc: lp.GetSocConfig(), |
| 42 | UI: lp.GetUI(), |
| 43 | PlanEnergy: planEnergy, |
| 44 | PlanTime: planTime, |
| 45 | PlanStrategy: lp.GetPlanStrategy(), |
| 46 | BatteryBoostLimit: lp.GetBatteryBoostLimit(), |
| 47 | LimitEnergy: lp.GetLimitEnergy(), |
| 48 | LimitSoc: lp.GetLimitSoc(), |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | type loadpointFullConfig struct { |
| 53 | ID int `json:"id,omitempty"` // db row id |
no test coverage detected