GithubHelp home page GithubHelp logo

Comments (11)

nwootton avatar nwootton commented on July 21, 2024

Please see 'Troubleshooting' in the README file.

There are no references to 'Arrivals' and 'Passes' in the documentation either - are you referring to 'calling_at' or 'called_at'? Both of which do work.

https://transportapi.com/v3/uk/train/station/SUR/live.json?app_id=xxxxxxxx&app_key=xxxxxxxxxxxxxxxxxxxxxxx&calling_at=BRS
https://transportapi.com/v3/uk/train/station/SUR/live.json?app_id=xxxxxxxx&app_key=xxxxxxxxxxxxxxxxxxxxxxx&called_at=THD

What you can't do - and this is shown in the TransportAPI is use both 'called_at' & 'calling_at' in the same request.

https://transportapi.com/v3/uk/train/station/SUR/live.json?app_id=xxxxxxxx&app_key=xxxxxxxxxxxxxxxxxxxxxxx&called_at=THD&calling_at=BRS

from mmm-uknationalrail.

michaeldun123 avatar michaeldun123 commented on July 21, 2024

I was looking at the "Type" part in the readme.md. And I did that in the MMM-UKNationalRail.js, I did arrival on its own, shown none same with pass.

from mmm-uknationalrail.

nwootton avatar nwootton commented on July 21, 2024

Looks like Transport API have changed their response format to specifically respond to the type format supplied. I'll have to try and fix it at some point.

from mmm-uknationalrail.

michaeldun123 avatar michaeldun123 commented on July 21, 2024

Okay, thanks nwootton.

from mmm-uknationalrail.

nwootton avatar nwootton commented on July 21, 2024

Quick branch hack

git clone -b Issue4 https://github.com/nwootton/MMM-UKNationalRail.git

Replace your current Rail module with this branch - see if that works for you.
BTW, I have NOT used the Type feature, so I have no idea what the data returned actually represents.

from mmm-uknationalrail.

michaeldun123 avatar michaeldun123 commented on July 21, 2024

Okay, I shall let you know.

from mmm-uknationalrail.

michaeldun123 avatar michaeldun123 commented on July 21, 2024

Arrivals now work. Not sure about pass

from mmm-uknationalrail.

michaeldun123 avatar michaeldun123 commented on July 21, 2024

Pass shows nothing.

from mmm-uknationalrail.

nwootton avatar nwootton commented on July 21, 2024

'pass' works here - could be that nothing 'passes' that station without stopping?

screen shot 2018-08-29 at 14 50 02
screen shot 2018-08-29 at 14 50 08

from mmm-uknationalrail.

michaeldun123 avatar michaeldun123 commented on July 21, 2024

I'm doing Lincoln Central. CRS:LCN. Normally goods pass the station, but it showed nothing. Not even goods.

from mmm-uknationalrail.

nwootton avatar nwootton commented on July 21, 2024

Running the URL for LCN directly in a browser reports an empty array. So it is working for 'pass'.

https://transportapi.com/v3/uk/train/station/LCN/live.json?app_id=xxxxxx&app_key=xxxxxxxxxxxxxx&type=pass

from mmm-uknationalrail.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.