Skip to content

Commit

Permalink
stream ip handdown fixed to local ip address as default. Stream optio…
Browse files Browse the repository at this point in the history
…ns added to README.
  • Loading branch information
larsrollik committed Nov 3, 2022
1 parent 530eb3c commit 29f757a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,40 @@ Configuration parameters are centrally defined in an easy-to-read file format an
Multiple entrypoints for use in python scripts as well as in a single line on the commandline
Additionally, all levels are directly accessible: central Conductor, remote control handlers, and on the RPi the acquisition control (see below for details).

#### *NEW:* Network video stream
Add an additional output via network video stream directly from the main `config` or via commandline arguments when calling `rcc_acquisition`.

- `config` example to use with `rcc_conductor` as usual:
```shell
# ...

[controllers]
[[camera_red_60]]
description = "back view"
address = "192.168.0.22"

# Network stream setup:
stream_video = True
stream_address = "192.168.0.22"
stream_port = 8001

# ...
```

- Command-line entrypoint example:
- Options:
````shell
-s, --stream-video
-sip STREAM_IP, --stream-ip STREAM_IP
IP address for video stream. (default: 192.168.100.31)
-sport STREAM_PORT, --stream-port STREAM_PORT
Stream port (default: 8001)
````

- Example call:
```shell
rcc_acquisition --auto-start --stream-video --stream-ip 192.168.100.31 --stream-port 9898
```


## Installation
Expand Down
2 changes: 1 addition & 1 deletion rpi_camera_colony/acquisition/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def parse_args_for_piacquisitioncontrol():
parser_acq_ctrl.add_argument(
"-sip",
"--stream-ip",
default="192.168.100.31",
default=get_local_ip_address(),
type=str,
help="IP address for video stream.",
)
Expand Down

0 comments on commit 29f757a

Please sign in to comment.