Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loadpoint: add enable/disable delay apis #16396

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

andig
Copy link
Member

@andig andig commented Sep 28, 2024

Auf Anfrage. Falls wir das umsetzen wollen fehlt natürlich die Persistenz fürs Config UI.

@andig andig added the enhancement New feature or request label Sep 28, 2024
@andig andig requested a review from naltatis September 28, 2024 13:36
"disableThreshold": {"POST", "/disable/threshold/{value:-?[0-9.]+}", floatHandler(pass(lp.SetDisableThreshold), lp.GetDisableThreshold)},
"disableDelay": {"POST", "/disable/delay/{value:[0-9smh]+}", durationHandler(pass(lp.SetDisableDelay), lp.GetDisableDelay)},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lass uns hier nicht das proprietäre Go-Durationformat nutzen und lieber auf Sekunden gehen. Die sollten in ganzzahlig vollkommen ausreichend sein und machen die API einfacher.

@naltatis
Copy link
Member

Mich überrascht, dass wir diese API noch gar nicht hatte.

@naltatis
Copy link
Member

naltatis commented Sep 28, 2024

enable|disableDelay wird auch noch nicht gepublisht. Sollten wir in dem Zuge aus Symmetriegründen gleich mitmachen. Auch hier konvertieren wir bei den anderen Durations mWn. jetzt schon zu Sekunden.

@naltatis
Copy link
Member

Config UI: Im Loadpoint Branch sind sowohl Threshold als auch Delay bereits enthalten. Also kein Extra Todo hier.
Bildschirmfoto 2024-09-28 um 18 06 04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants