-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f4e3e1
commit a544c38
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
.. highlight:: rst | ||
|
||
.. _wiregrid_tiltsensor: | ||
|
||
========================== | ||
Wiregrid Tilt Sensor Agent | ||
========================== | ||
|
||
# Enter a brief description here. | ||
|
||
.. argparse:: | ||
:filename: ../socs/agents/wiregrid_tiltsensor/agent.py | ||
:func: make_parser | ||
:prog: python3 agent.py | ||
|
||
Dependencies | ||
------------ | ||
|
||
# List if any, else remove section. | ||
|
||
Configuration File Examples | ||
--------------------------- | ||
|
||
Below are configuration examples for the ocs config file and for running the | ||
Agent in a docker container. | ||
|
||
OCS Site Config | ||
```````````````` | ||
|
||
An example site-config-file block:: | ||
|
||
{'agent-class': 'WiregridTiltSensorAgent', | ||
'instance-id': 'wg-tilt-sensor', | ||
'arguments': ['--ip-address', '10.10.10.73']}, | ||
|
||
Docker Compose | ||
`````````````` | ||
|
||
An example docker-compose configuration:: | ||
|
||
ocs-wg-tilt-sensor: | ||
image: simonsobs/socs:latest | ||
hostname: ocs-docker | ||
network_mode: "host" | ||
environment: | ||
- INSTANCE_ID=wg-tilt-sensor | ||
volumes: | ||
- ${OCS_CONFIG_DIR}:/config:ro | ||
|
||
- Since the agent within the container needs to communicate with hardware on the | ||
host network you must use ``network_mode: "host"`` in your compose file. | ||
|
||
Description | ||
----------- | ||
|
||
# Longer description here if needed. | ||
|
||
Agent API | ||
--------- | ||
|
||
.. autoclass:: socs.agents.wiregrid_tiltsensor.agent.WiregridTiltsensorAgent | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters