Comments (7)
Though I think there's a fork that does do buses only, so I might adapt what they did.
from ha-londontfl.
I have indeed kept building on top of this a lot earlier than expected. I think I solved it.
I will create a beta release with the changes. Hopefully it all works ok.
from ha-londontfl.
I've made some changes to this one to add buses as a method of transport, but it seems it doesn't work out of the box.
You can select your chosen method (bus, dlr, tube, etc), then the lines and stations populate nicely. However, for buses, it seems there are no results and it does need a slightly different API call.
I will likely keep building on top of this as I find time and hopefully have a version that works nicely.
from ha-londontfl.
Glad it is helpful!
No current plans to expand what's available, but assuming the TfL API does the same things for buses as it does for trains, then someone could tweak the available lines and see if it works.
I might try when I have some free time, but that might not be until April :( .
from ha-londontfl.
Thanks for the reply. I'll keep an eye open in case you add it, and thanks in advance if you do :)
from ha-londontfl.
Though I think there's a fork that does do buses only, so I might adapt what they did.
I've tried out that fork. Looking at the code, to my (rather python deficient) eye it seems a trivial change.
Seems only a couple of sting constant values changed.
The compoents seems to work pretty well, with a small quirks around identifying the correct stop.
- I can install the component via HACS by adding as custom repo - hacs.json has changed name from yours.
- I can add the integration in same way
- I can select the bus route from list (of a great many - who knew so many bus routes in London!)
- The bus stop are then listed but seem to use mostly IDs not human readable names.
- I created a sensor for my local bus line (65) and added random stop. You need to get the ID from TFL website - e.g. https://tfl.gov.uk/bus/stop/490000208A, where 490000208A is the ID for one direction. If you need the other direction it would be (e.g.) 490000208B
from ha-londontfl.
Seems fine on my end 5 days in, so I've released it publicly. Do open new issues if you find any!
from ha-londontfl.
Related Issues (20)
- Status empty after install HOT 7
- Error when filtering by platform HOT 2
- Time zone issue HOT 5
- No data pulled for the Northern Line HOT 2
- Add the ability to replace certain words HOT 1
- Thameslink? HOT 7
- Integration stopped working suddenly HOT 5
- Time zone issues HOT 2
- No data for Greater Anglia HOT 1
- Updating Sensors WARNING HOT 1
- HASL Departure card compatability broken? HOT 2
- No data for Southeastern line HOT 6
- Use tram icon HOT 2
- Time of trains only shows as GMT? HOT 2
- Cannot reach TfL (National Rail) HOT 3
- Branch not shown for trains HOT 6
- Buses are broken with recent update HOT 11
- Filter by platform doesn't work for buses HOT 3
- Is National Rail integration not working? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-londontfl.