Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95327

Put info from a API (Citymapper)

$
0
0

@bonilla wrote:

Hello,

I try to put an information of my travel time from France (public transport)
I found Citymapper, which can give some information in the website : https://citymapper.com/paris

I would like to catch the traffic information, and my travel time from point A to B.

For the second point, I found an API but I can’t succeed to put it on a template

  - platform: rest
    resource: https://developer.citymapper.com/api/1/traveltime/?startcoord=4x.xxxx+2.xx&endcoord=4x.xxxx+2.xxxx&time=2014-11-06T19%3A00%3A02-0500&time_type=arrival&key=xxxxxxxxxx494b
    name: Paris_travel
    value_template: '{{ value_json.travel_time_minutes }}'

For the first point, I don’t know where to catch it (could be RATP traffic, Transilien traffic…)
Any idea?
Thanks in advance

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>