I’m new to HA. I would like to implement a scraper. I’ve had a look at teh uk_transport sensor, and that’s structured very much for the next arrival of a bus/train/tube. It also has a throttle or you have to pay money.
Transport for London however has a rather nice REST interface documented here.
My idea is to convert a python scraper of mine to use the API to get information like this.
This scrapes fast so once a minute is possible.
The configuration I have is simple. In the UK there is a national unique identifier for stops, both for tube rail and buses.
I have a time to walk to the stop. If it takes two minutes then you can filter out buses due in the next two minutes.
I have a max count and a max time filter as well.
You can select from a list of lines [bus numbers or tube likes], and you can specify a direction.
So can anyone give me some pointers?
It’s not a single value output, in effect some JSON with a template to generate HTML
No interest in keeping historical values.
Can someone give me some pointers on where to look in the documentation?