You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/camera.generic.markdown
+15-4Lines changed: 15 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,9 @@ ha_release: pre 0.7
13
13
---
14
14
15
15
16
-
The `generic` camera platform allows you to integrate any IP camera into Home Assistant. It supports fetching images from a url with optional HTTP authentication.
16
+
The `generic` camera platform allows you to integrate any IP camera or other url into Home Assistant. Templates can be used to generate the urls on the fly.
17
17
18
-
Home Assistant will serve the images via its server, making it possible to view your IP camera's while outside of your network. The endpoint is `/api/camera_proxy/camera.[name]?time=[timestamp]`.
18
+
Home Assistant will serve the images via its server, making it possible to view your IP camera's while outside of your network. The endpoint is `/api/camera_proxy/camera.[name]`.
19
19
20
20
To enable this camera in your installation, add the following to your `configuration.yaml` file:
21
21
@@ -28,12 +28,23 @@ camera:
28
28
username: USERNAME
29
29
password: PASSWORD
30
30
authentication: basic
31
+
limit_refetch_to_url_change: true
31
32
```
32
33
33
34
Configuration variables:
34
35
35
-
- **still_image_url** (*Required*): The URL your camera serves the image on, eg. http://192.168.1.21:2112/
36
+
- **still_image_url** (*Required*): The URL your camera serves the image on, eg. http://192.168.1.21:2112/. Can be a [template].
36
37
- **name** (*Optional*): This parameter allows you to override the name of your camera.
37
38
- **username** (*Optional*): The username for accessing your camera.
38
39
- **password** (*Optional*): The password for accessing your camera.
39
-
- **authentication** (*Optional*): `basic` (default) or `digest` auth for requests.
40
+
- **authentication** (*Optional*): `basic` (default) or `digest` auth for requests.
41
+
- **limit_refetch_to_url_change** (*Optional*): true/false value (default: false). Limits refetching of the remote image to when the url changes. Only relevant if using a template to fetch the remote image.
42
+
43
+
<p class='img'>
44
+
<a href='/cookbook/google_maps_card/'>
45
+
<img src='/images/components/camera/generic-google-maps.png' alt='Screenshot showing Google Maps integration in Home Assistant front end.'>
46
+
Example showing the Generic camera platform pointing at a dynamic Google Map image.
Copy file name to clipboardExpand all lines: source/_cookbook/custom_panel_using_react.markdown
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ sidebar: true
7
7
comments: false
8
8
sharing: true
9
9
footer: true
10
-
ha_category: Custom Panel Examples
10
+
ha_category: User Interface
11
11
---
12
12
13
13
This is a [React](https://facebook.github.io/react/) implementation of [TodoMVC](http://todomvc.com/) but instead of checking off to do items, you are turning lights and switches on/off.
description: "Example how to show a Google Map as a Google card."
5
+
date: 2016-08-20 19:05
6
+
sidebar: true
7
+
comments: false
8
+
sharing: true
9
+
footer: true
10
+
ha_category: User Interface
11
+
---
12
+
13
+
Using the [generic camera platform] you can present any image on the internet as a camera. Starting release 0.27 these urls can also be based on a template. This example uses this functionality to point a generic camera at the Google Maps static image API and pass in the location of a device.
14
+
15
+
It also leverages the `limit_refetch_to_url_change` option to ensure that we do not make a lot of requests to the Google Maps API.
0 commit comments