parent
8d350a7a65
commit
e1accfeb9d
23 changed files with 135 additions and 142 deletions
|
|
@ -26,10 +26,6 @@ type PlanPreviewResponse struct {
|
|||
Duration int64 `json:"duration"`
|
||||
Plan api.Rates `json:"plan"`
|
||||
Power float64 `json:"power"`
|
||||
|
||||
// TODO remove
|
||||
Continuous bool `json:"continuous"`
|
||||
Precondition int64 `json:"precondition"`
|
||||
}
|
||||
|
||||
// planHandler returns the current plan
|
||||
|
|
@ -100,10 +96,6 @@ func staticPlanPreviewHandler(lp loadpoint.API) http.HandlerFunc {
|
|||
Duration: int64(requiredDuration.Seconds()),
|
||||
Plan: plan,
|
||||
Power: maxPower,
|
||||
|
||||
// TODO remove
|
||||
Continuous: strategy.Continuous,
|
||||
Precondition: int64(strategy.Precondition.Seconds()),
|
||||
}
|
||||
|
||||
jsonWrite(w, res)
|
||||
|
|
@ -206,7 +198,7 @@ func planStrategyHandler(lp loadpoint.API) http.HandlerFunc {
|
|||
return
|
||||
}
|
||||
|
||||
res := planStrategyPayloadFromApi(lp.GetPlanStrategy())
|
||||
res := lp.GetPlanStrategy()
|
||||
|
||||
jsonWrite(w, res)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue