Use openstreetmap instead googlemap (no free price) (#5641)

* Use openstreetmap instead googlemap (no free price)

* Templates must be escaped and fix names
This commit is contained in:
Bruno Adele 2018-07-01 11:54:08 +02:00 committed by Fabian Affolter
parent 6f7ef34904
commit ef37588b48

View File

@ -42,11 +42,13 @@ If you set `show_on_map` `True` then the location attributes are named `latitude
The [generic camera platform](/components/camera.mjpeg/) offers the possibility to show the location of the ISS on Google Maps.
{% raw %}
```yaml
# Example configuration.yaml entry
camera:
- platform: generic
name: ISS
still_image_url: {% raw %}https://maps.googleapis.com/maps/api/staticmap?center={{ states.binary_sensor.iss.attributes.lat }},{{ states.binary_sensor.iss.attributes.long }}&zoom=5&size=500x500&maptype=roadmap&markers=color:blue%7Clabel:P%7C{{ states.binary_sensor.iss.attributes.lat }},{{ states.binary_sensor.iss.attributes.long }}{% endraw %}
limit_refetch_to_url_change: true
still_image_url: http://staticmap.openstreetmap.de/staticmap.php?center={{ states.binary_sensor.iss.attributes.lat }},{{ states.binary_sensor.iss.attributes.long }}&zoom=4&size=865x512&maptype=mapnik&markers={{ states.binary_sensor.iss.attributes.lat }},{{ states.binary_sensor.iss.attributes.long }},lightblue
limit_refetch_to_url_change: true
```
{% endraw %}