Skip to content

Commit 18f0128

Browse files
committed
Removed basic auth from metrics and edited README
1 parent 7fd47f1 commit 18f0128

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,14 @@ agent_calendar_update_time{agent="test_agent"} 1.707571943100096e+09
133133
# TYPE camera_position gauge
134134
camera_position{camera="http://camera-2-panasonic.example.com"} 10.0
135135
```
136+
137+
## Endpoints for switchting and checking the camera control status
138+
139+
The camera control status of a specific camera can be changed as follows:
140+
- Accessing the endpoint '/control/automatic/<camera_url>' sets the control status of the given camera to 'automatic'.
141+
- Accessing the endpoint '/control/manual/<camera_url>' sets the control status of the given camera to 'manual'.
142+
The default control status is 'automatic'.
143+
144+
The current control status of a specific camera can be requested by calling the endpoint '/control_status/<camera_url>'.
145+
146+
At 03:00 am, all cameras will be reset to automatic control. You may adjust the reset time in your configuration file.

occameracontrol/camera_control_server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ def view_current_camera_control_status(req_camera_url):
8989

9090
# expose camera control metrics
9191
@app.route('/metrics')
92-
@basic_auth.required
9392
def metrics():
9493
""" Endpoint for exposing the camera control metrics.
9594
"""

0 commit comments

Comments
 (0)