phairplay
(Phairplay)
August 7, 2018, 8:06pm
1
hi guys,
ive succesfully added google as a device tracker and now wanting to add the map card
i went to the dev console added all the required api’s went to credentials created a server key, then added the below to my config
- platform: generic
still_image_url: https://maps.googleapis.com/maps/api/staticmap?center={{ states.device_tracker.davidphonelan.attributes.latitude }},{{ states.device_tracker.davidphonelan.attributes.longitude }}&zoom=13&size=500x500&maptype=roadmap&markers=color:blue%7Clabel:P%7C{{ states.device_tracker.davidphonelan.attributes.latitude }},{{ states.device_tracker.davidphonelan.attributes.longitude }}&key=my key
limit_refetch_to_url_change: true
yet when i load the front end the camera card is blank.
what am i doing wrong
silvrr
August 7, 2018, 8:39pm
2
If you go to the states tab in the developer tools does your device tracker supply lat. and log. attributes?
You do have camera above platfrom, correct?
camera:
- platform: generic
Anything in the error log?
https://github.com/SilvrrGIT/HomeAssistant/blob/master/camera.yaml#L14
That is how I use the generic camera to provide a map of my location. Slightly different.
1 Like
phairplay
(Phairplay)
August 7, 2018, 8:49pm
3
Nothing in the error log
Yes I see the google device being tracked
Yes I have the camera (I have a few cctv)
Do I need a service account key from the cred settings.
silvrr
August 7, 2018, 8:51pm
4
I don’t use it and I get a map with my location. See the config I linked to.
1 Like
phairplay
(Phairplay)
August 7, 2018, 9:09pm
5
Sorry misunderstood
That worked perfectly thank your for the help