Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tskisner committed Apr 25, 2024
1 parent f51b931 commit fcca81b
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docs/agents/camera_rtsp.rst → docs/agents/rtsp_camera.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. highlight:: rst

.. _camera_rtsp:
.. _rtsp_camera:

====================
RTSP Camera Agent
Expand All @@ -10,7 +10,7 @@ This OCS Agent which grabs screenshots and records video from IP cameras
supporting the RTSP streaming protocol.

.. argparse::
:filename: ../socs/agents/camera_rtsp/agent.py
:filename: ../socs/agents/rtsp_camera/agent.py
:func: add_agent_args
:prog: python3 agent.py

Expand All @@ -23,19 +23,21 @@ Agent in a docker container.
OCS Site Config
```````````````

To configure the RTSP Camera Agent we need to add a CameraRTSPAgent block to our
To configure the RTSP Camera Agent we need to add a RTSPCameraAgent block to our
ocs configuration file. Here is an example configuration block using all of the
common arguments. Many options do not normally need to be changed::

{'agent-class': 'CameraRTSPAgent',
{'agent-class': 'RTSPCameraAgent',
'instance-id': 'camera-c3',
'arguments': [['--mode', 'acq'],
['--directory', '/camera']
['--address', 'camera-c3.simonsobs.org'],
['--user', 'ocs'],
['--password', '<password>'],
['--seconds', '10'],
['--record_duration', '60']]},
['--motion_start', '19:00:00-04:00'],
['--motion_stop', '07:00:00-04:00'],
['--snapshot_seconds', '10'],
['--record_duration', '120']]},

Docker Compose
``````````````
Expand Down Expand Up @@ -83,5 +85,5 @@ were acquired.
Agent API
---------

.. autoclass:: socs.agents.camera_rtsp.agent.CameraRTSPAgent
.. autoclass:: socs.agents.rtsp_camera.agent.RTSPCameraAgent
:members:

0 comments on commit fcca81b

Please sign in to comment.