Adds token parameter to Camera.Push (#6130)

* Adds token parameter to Camera.Push

* update require
This commit is contained in:
Diogo Gomes 2018-09-11 10:30:09 +01:00 committed by Paulus Schoutsen
parent c80fafcdc0
commit 54063a6641

View File

@ -25,11 +25,9 @@ The `push` camera can as an example be used with [motionEye](https://github.com/
In motionEye, under **File Storage -> Run A Command** type in:
```bash
curl -X POST -F "image=@%f" http://my.hass.server.com:8123/api/camera_push/camera.push_camera
curl -X POST -F "image=@%f" http://my.hass.server.com:8123/api/camera_push/camera.push_camera?token=12345678
```
Please take note that you might need to add `-H "x-ha-access: YOUR_PASSWORD"` if you have API authentication enabled.
Optionally configure motionEye to save only motion triggered images by going into **Still Images -> Capture Mode** and setting **Motion Triggered**. Tune your preferences under **Motion Detection**.
In this setup, you can configure the push camera to continuously replay the last motion triggered event using a configuration such as:
@ -40,6 +38,7 @@ camera:
name: MotionEye Outdoor
buffer: 3
timeout: 5
token: 12345678
```
## {% linkable_title Configuration %}
@ -51,6 +50,7 @@ To enable this camera in your installation, add the following to your `configura
camera:
- platform: push
name: My Push Camera
token: 12345678
```
{% configuration %}
@ -69,6 +69,10 @@ timeout:
required: false
default: 5 seconds
type: time
token:
description: User provided token acting as access control, should be a large string (more then 8 chars). Required if you can't use HA new auth system (0.77).
required: false
type: string
field:
description: HTTP POST field containing the image file
required: false