Giter Site home page Giter Site logo

nwootton / mmm-uknationalrail Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 14.0 268 KB

Magic Mirror Module for UK rail information. Returns departure info about a SPECIFIED UK rail station.

License: MIT License

JavaScript 93.60% CSS 6.40%
magicmirror station transport-api uk-rail-info

mmm-uknationalrail's People

Contributors

mattdy avatar nwootton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mmm-uknationalrail's Issues

Config for multiple stations

Hi. Your screenshot has multiple stations displayed, but the README does not indicate what config you use for setting that up. Can you clarify?

No Longer Working

Seems as of the start of the month i can no longer get this extension to work.

All i have stuck on my display is "Loading trains"

Request module deprecated?

I suspect that this module relies on a deprecated module. After upgrading my magic mirror core code, I get the following error:

[01.10.2021 18:49.04.563] [ERROR] App threw an error during load
[01.10.2021 18:49.04.568] [ERROR] Error: Cannot find module 'request'
Require stack:

  • /home/pi/MagicMirror/modules/MMM-UKNationalRail/node_helper.js
  • /home/pi/MagicMirror/js/app.js
  • /home/pi/MagicMirror/js/electron.js
  • /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js

Not appearing for some reason

To your troubleshoot questions

  1. YES
  2. YES
  3. YES (RDH)
  4. Sorry I'm a bit of a noob not sure what this is asking
  5. Same as previous
  6. So the code is RDH (redhill) trying to set this up for my girlfriends commute.

This app looks fantastic. I've had the magic mirror running for a while with a news feed, tube status (for our old address), local weather etc. I'm really not expert at this so I could be missing something obvious. Basically it just doesn't show up on the display. I've set position to 'middle_centre' put in crs and got the api id and key data input and double checked them. Any ideas? Thanks for your time!

Stuck on loading trains message

Module is loading but never gets past Loading Trains message. Details have been put in through the transport API site and return the 200 response expected. Have stripped back to the mandatory config fields only but no change.
config entry:
{
module: "MMM-UKNationalRail",
position: "bottom_left",
config: {
stationCode: "HUD",
app_id: "myAppId",
app_key: "myAppKey"
}
}

Header being replaced by station name

Once the module has loaded, the header (e.g 'Arrivals') is replaced by the station name, so setting a header is essentially useless.
However, what would be great is if the set header could be combined with the station name instead.
So, for example, if my header is Arrivals from , it would become Arrivals from London Victoria.

I have added the module twice in my config - once showing the departures from my nearest station and once showing the arrivals and it's hard to distinguish between the 2 at the moment

Trains showing as CANCELLED

I don't believe this is an issue with this module, but thought I should log it for reference.

My mirror is showing all trains as CANCELLED. Playing with the live docs on the TransportAPI's dev portal it is also returning status: CANCELLED. These trains are in fact running, as shown on National Rail, Trainline, etc.

I am a paid TransportAPI customer and have emailed support to report.

train times do not update

hello mate

I have got this up and running and have noticed that occasionally the train times wont update for some reason until I restart mm i.e. pm2 restart mm

Can you please look into this? As it has happened 3 times now on different days.

Thanks.

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.