Add new configuration variables (#2802)

This commit is contained in:
Fabian Affolter 2017-06-12 09:53:32 +02:00 committed by GitHub
parent 4eef332db2
commit 35199dd92b

View File

@ -41,8 +41,10 @@ Configuration variables:
- **y_position** (*Optional*): Y coordinate of the upper left corner of the area to crop. Defaults to `0`. - **y_position** (*Optional*): Y coordinate of the upper left corner of the area to crop. Defaults to `0`.
- **height** (*Optional*): Height of the area to crop. Defaults to `0`. - **height** (*Optional*): Height of the area to crop. Defaults to `0`.
- **width** (*Optional*): Width of the area to crop. Defaults to `0`. - **width** (*Optional*): Width of the area to crop. Defaults to `0`.
- **rotate** (*Optional*): Rotation of the image. Defaults to `0`.
- **threshold** (*Optional*): Threshold for the difference between the digits and the background. Defaults to `0`. - **threshold** (*Optional*): Threshold for the difference between the digits and the background. Defaults to `0`.
- **digits** (*Optional*): Number of digits in the display. Defaults to `-1`. - **digits** (*Optional*): Number of digits in the display. Defaults to `-1`.
- **extra_arguments** (*Optional*): Other arguments to use. Like `-D`, `dilation`, `erosion`, `greyscale`, `make_mono`, etc.
- **source** array (*Required*): List of image sources. - **source** array (*Required*): List of image sources.
- **entity_id** (*Required*): A camera entity id to get picture from. - **entity_id** (*Required*): A camera entity id to get picture from.
- **name** (*Optional*): This parameter allows you to override the name of your `image_processing` entity. - **name** (*Optional*): This parameter allows you to override the name of your `image_processing` entity.
@ -53,7 +55,7 @@ Configuration variables:
It's suggested that the first attempt to determine the needed parameters is using `ssocr` directly. This may require a couple of iterations to get the result It's suggested that the first attempt to determine the needed parameters is using `ssocr` directly. This may require a couple of iterations to get the result
```bash ```bash
$ ssocr -D erosion crop 390 250 490 280 -t 20 -d 4 ss-test.jpg $ ssocr -D erosion crop 390 250 490 280 -t 20 -d 4 seven-seg.png
``` ```
This would lead to the following entry for the `configuration.yaml` file: This would lead to the following entry for the `configuration.yaml` file:
@ -61,7 +63,7 @@ This would lead to the following entry for the `configuration.yaml` file:
```yaml ```yaml
camera: camera:
- platform: local_file - platform: local_file
file_path: /home/fab/.homeassistant/seven-seg.png file_path: /home/homeassistant/.homeassistant/seven-seg.png
name: seven_segments name: seven_segments
image_processing: image_processing:
- platform: seven_segments - platform: seven_segments