Pages: [1]   Go Down
Author Topic: Anyone in London,UK that uses buses??  (Read 3479 times)
0 Members and 1 Guest are viewing this topic.
'round the world...
Offline Offline
Faraday Member
**
Karma: 42
Posts: 3257
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

I've written a library to get info from TfL's countdown website about the next buses arriving at a given bus stop and so far it works in my bus stops... however, with one bus stopping there, it isn't much of a challenge.

Would anyone be willing or interested in giving this a try and find some bugs or stuff to improve? smiley
Logged

Eu não sou o teu criado. Se respondo no fórum é para ajudar todos mediante a minha disponibilidade e disposição. Responder por mensagem pessoal iria contra o propósito do fórum e por isso evito-o.
Se realmente pretendes que eu te ajude por mensagem pessoal, então podemos chegar a um acordo e contrato onde me pagas pela ajuda que eu fornecer e poderás então definir os termos de confidencialidade do meu serviço. De forma contrária toda e qualquer ajuda que eu der tem de ser visível a todos os participantes do fórum (será boa ideia, veres o significado da palavra fórum).
Nota também que eu não me responsabilizo por parvoíces escritas neste espaço pelo que se vais seguir algo dito por mim, entende que o farás por tua conta e risco.

Dito isto, mensagens pessoais só se forem pessoais, ou seja, se já interagimos de alguma forma no passado ou se me pretendes convidar para uma churrascada com cerveja (paga por ti, obviamente).

London
Offline Offline
Edison Member
*
Karma: 47
Posts: 1436
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Surely it can't be that much of a trek to a bus stop that serves multiple routes. I presume you also need a WiFi connection at the stop to download the info. Find a stop near a McDonalds. They have free Wifi in their restaurants for customers. You will have to purchase a drink for them to tell you the access code. Hopefully, their WiFi will operate (for a short distance) outside their premises so that you can also see the bus stop.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26293
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I presume you also need a WiFi connection at the stop to download the info. Find a stop near a McDonalds.
Or avoid the golden arches entirely (my personal favourite approach), and enable "Portable WiFi hotspot" on your Android phone.
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

London
Offline Offline
Edison Member
*
Karma: 47
Posts: 1436
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I presume you also need a WiFi connection at the stop to download the info. Find a stop near a McDonalds.
Or avoid the golden arches entirely (my personal favourite approach),

Mine too, but 'needs must where the devil drives'  and you only have to purchase a drink, not consume it!

Quote
and enable "Portable WiFi hotspot" on your Android phone.

That's if you have an Android phone.
Logged

'round the world...
Offline Offline
Faraday Member
**
Karma: 42
Posts: 3257
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

Sorry for disappearing, but actual work and school took me away from this.

The purpose is not to know when the bus will arrive when I'm at the stop, but to know that before I leave home. Obviously I can download an app for Android or iOS that does that or just go online to TfLs countdown website, but having an LCD displaying that for me is a lot better than using a high end device. Also, I don't have a UK phone number, so data roaming is a big no-no for me.

Also, because I am taking the data from TfL directly there's nothing I can actually do if the data is wrong and I miss the bus. So testing at the bus stop is unnecessary. However, it would be nice to get someone to have a look at it and point out the problems with it.
So far, it doesn't behave nicely if the telegram is broken, but I haven't gotten to look into it, and for the next month that will be impossible (ship ride in the South China seas and no wired Internet at my South Korean apartment).

So if anyone interested can have a look at it, it is here:

https://code.google.com/p/tfl-buses/

Please, test and comment on better ways of implementing it and/or any bugs you may have noticed.

To find the bus stop you want to monitor go to http://countdown.tfl.gov.uk/#/, enter the bus stop name and the bus stop code will be presented there.
The results are updated every 30 seconds (according to TfL), so polling faster than that will only do worse.

Thank you for the interest.

Logged

Eu não sou o teu criado. Se respondo no fórum é para ajudar todos mediante a minha disponibilidade e disposição. Responder por mensagem pessoal iria contra o propósito do fórum e por isso evito-o.
Se realmente pretendes que eu te ajude por mensagem pessoal, então podemos chegar a um acordo e contrato onde me pagas pela ajuda que eu fornecer e poderás então definir os termos de confidencialidade do meu serviço. De forma contrária toda e qualquer ajuda que eu der tem de ser visível a todos os participantes do fórum (será boa ideia, veres o significado da palavra fórum).
Nota também que eu não me responsabilizo por parvoíces escritas neste espaço pelo que se vais seguir algo dito por mim, entende que o farás por tua conta e risco.

Dito isto, mensagens pessoais só se forem pessoais, ou seja, se já interagimos de alguma forma no passado ou se me pretendes convidar para uma churrascada com cerveja (paga por ti, obviamente).

Pages: [1]   Go Up
Jump to: