MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. nwootton
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    Offline
    • Profile
    • Following 0
    • Followers 1
    • Topics 2
    • Posts 52
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: London Bus status

      @soqueen mmm weird, didn’t do that for me in testing. I’ll have a look later when I get home.

      posted in Requests
      nwoottonN
      nwootton
    • RE: London Bus status

      @soqueen I’ve just pushed a new version that hopefully allows you to have multiple instances of the module running. It’s been working happily this afternoon running three different bus stops around the area with no complaints.

      You’ll need to do a git pull to update, then run the

      cd MMM-UKLiveBusStopInfo
      npm install 
      

      to install the new dependencies.

      Give it a try and let me know. If it goes pear-shaped I can always roll the old version back and look again later.

      posted in Requests
      nwoottonN
      nwootton
    • RE: London Bus status

      @strawberry-3.141 If I get the chance I’ll look at passing an identity to the helper so it knows where to route the response back to.

      posted in Requests
      nwoottonN
      nwootton
    • RE: London Bus status

      @soqueen I have to say I’ve never considered it. Both this and the rail version were something I built more as an experiment than anything else. I’m not even sure I’d know how to handle multiple instances of a module.

      I’ll have to have a think/read and see how it could be done. Perhaps other more experienced devs may be able to chip in here?

      I will say that running three of these could get expensive in terms of api calls per day… if you use the next bus capability that would be 30 points per call or a max of 33 calls per day (~ every 45 minutes), which might not be enough to make the module really useful. You could get three distinct API keys I guess, but I’m not sure how TransportAPI would view that!

      I did consider some form of time range, but again it wasn’t something I needed for the experiment. Perhaps I need to find some time to reconsider that as an option!

      posted in Requests
      nwoottonN
      nwootton
    • RE: London Bus status

      @strawberry-3.141 good catch!

      posted in Requests
      nwoottonN
      nwootton
    • RE: London Bus status

      @soqueen I’d normally copy and paste the code into either my config or into jsonlint.com to check it’s validity. But, as you’ve posted a picture not a snippet, I can’t do that, so if I type it, it will not be the same as yours!

      However, first glance you’ve got a ‘//’ on your header row (far left), nothing else stands out as being wrong.

      Try pasting the entire config.js into jsonlint.com. That will tell you if the file is properly formed and highlight any errors.

      If that comes back ok, try removing everything except the bus stop module and see if it still fails. If it does paste the reduced config and we’ll see what we can do next.

      posted in Requests
      nwoottonN
      nwootton
    • RE: MMM-UKNationalRail - Rail departure info for specific UK Railway stations

      @Mar Thanks, I’m glad you like it.

      posted in Transport
      nwoottonN
      nwootton
    • RE: MMM-UKNationalRail - Rail departure info for specific UK Railway stations

      Now includes the platform and a slightly better layout.

      posted in Transport
      nwoottonN
      nwootton
    • RE: Train status tracker

      Added platform as an option to the module.

      Defaults to showing the platform, but can be turned off via config if not needed. If no platform specified, it will just display a -

      posted in Requests
      nwoottonN
      nwootton
    • RE: Train status tracker

      @jamielola Nice. As our station only has an In and an out platform I never considered it!

      If you want I can try to add you code to the repo and make it an option to display the platform via the config.

      Something like:

      {
      showPlatform: true
      }
      

      If you want real time delay calculations have a look at my Bus Stop module here. That does deltas between time tabled and actual times.

      N

      posted in Requests
      nwoottonN
      nwootton
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 4 / 6