Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a simple http listener with endpoints
/pause
and/resume
GET endpoints, listening on port8555
. Calling these endpoints will pause and resume garage door operations respectively./pause
can be called with the optional query string argumentduration
, where the duration is the number of seconds the operations should be paused for. Omitting this or setting the value to0
will pause indefinitely, until the app is restarted or the/resume
endpoint is called./resume
can also be called to resume a timed pause operation early.Only garage door operations are paused with this endpoint. Tracking operations will continue during a pause.
Examples:
curl http://geogdo-ip:8555/pause?duration=10
- pauses garage door operations for 10 secondscurl http://geogdo-ip:8555/pause
- pauses indefinitelycurl http://geogdo-ip:8555/resume
- resumes garage door operations