mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 21:36:52 +00:00
from token to webhook (#7451)
This commit is contained in:
parent
40b18de5a1
commit
2eac482312
@ -25,7 +25,7 @@ The `push` camera can as an example be used with [motionEye](https://github.com/
|
|||||||
|
|
||||||
In motionEye, under **File Storage -> Run A Command** type in:
|
In motionEye, under **File Storage -> Run A Command** type in:
|
||||||
```bash
|
```bash
|
||||||
curl -X POST -F "image=@%f" http://my.hass.server.com:8123/api/camera_push/camera.push_camera?token=12345678
|
curl -X POST -F "image=@%f" http://my.hass.server.com:8123/api/webhook/my_custom_webhook_id
|
||||||
```
|
```
|
||||||
|
|
||||||
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**.
|
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**.
|
||||||
@ -38,7 +38,7 @@ camera:
|
|||||||
name: MotionEye Outdoor
|
name: MotionEye Outdoor
|
||||||
buffer: 3
|
buffer: 3
|
||||||
timeout: 5
|
timeout: 5
|
||||||
token: 12345678
|
webhook_id: my_custom_webhook_id
|
||||||
```
|
```
|
||||||
|
|
||||||
## {% linkable_title Configuration %}
|
## {% linkable_title Configuration %}
|
||||||
@ -50,7 +50,7 @@ To enable this camera in your installation, add the following to your `configura
|
|||||||
camera:
|
camera:
|
||||||
- platform: push
|
- platform: push
|
||||||
name: My Push Camera
|
name: My Push Camera
|
||||||
token: 12345678
|
webhook_id: my_custom_webhook_id
|
||||||
```
|
```
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
@ -69,9 +69,9 @@ timeout:
|
|||||||
required: false
|
required: false
|
||||||
type: time
|
type: time
|
||||||
default: 5 seconds
|
default: 5 seconds
|
||||||
token:
|
webhook_id:
|
||||||
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).
|
description: User provided string acting as camera identifier and access control, should be a large string (more then 8 chars).
|
||||||
required: false
|
required: true
|
||||||
type: string
|
type: string
|
||||||
field:
|
field:
|
||||||
description: HTTP POST field containing the image file
|
description: HTTP POST field containing the image file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user