• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-RNV

Scheduled Pinned Locked Moved Transport
9 Posts 2 Posters 4.7k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    yawns Moderator
    last edited by yawns Jan 17, 2017, 9:32 AM Nov 9, 2016, 8:44 PM

    Description:

    It monitors a given station in the RNV traffic network and shows the 10 upcoming departures with destination, type and delay. It also shows additional information if provided by the vendor.

    Screenshots:

    0_1478724161007_mmm-rnv.PNG

    Download:

    [card:yawnsde/MMM-RNV]


    Version 1.0.0

    • initial release

    Version 1.1.0

    • some more error handling
    • added some tweaks in case the start time is after midnight, then the parsing failed
    • added the alert ticker if some alert is present
    • updated the readme
    • removed odd default value for stationID from the module
    1 Reply Last reply Reply Quote 3
    • Y Offline
      yawns Moderator
      last edited by Nov 24, 2016, 2:31 PM

      I just updated the module, after I noticed the layout is slightly broken when added to an area on the right side of the screen.

      1 Reply Last reply Reply Quote 0
      • M Offline
        mcg
        last edited by Dec 1, 2016, 9:13 PM

        Hey @yawns, looks great!

        Even the differentiation between tram and bus, cool!
        I was surprised by the delay times as well, when I thought about building such a module (and thus starting to learn JS) I just had a rough look at the VRN API which doesn’t offer any real time data.

        I have two feature requests:

        • configurable number of shown connections
        • configurable direction (or destination)

        Cheers!

        Y 1 Reply Last reply Dec 1, 2016, 9:34 PM Reply Quote 1
        • Y Offline
          yawns Moderator @mcg
          last edited by Dec 1, 2016, 9:34 PM

          @mcg
          Hi, glad you like it.
          What do you mean with configurable direction?

          1 Reply Last reply Reply Quote 0
          • M Offline
            mcg
            last edited by Dec 2, 2016, 5:21 PM

            I mean that I dont want to see all connections leaving from that particular stop but just in one direction.
            E.g. if I lived near a final destination I would just want to see the city-bound connections.

            1 Reply Last reply Reply Quote 0
            • M Offline
              mcg
              last edited by mcg May 5, 2018, 10:24 AM May 3, 2018, 11:01 PM

              Hey @yawns!
              I finally had a deeper look into the API and your code and felt free to adapt it a little according to my needs.

              I did the following things:

              • added the so called poles to be defined in the personal config
                this enables one to choose certain tracks/platforms at a particular stop (this was what i spoke about when I replied to your post the first time)
              • added a time offset, which it would take one to reach the acutal stop (by foot).
              • correction of the current time format from 12h to 24h, which led to an error when I tested the offset. (from hh --> HH)
              • edited the readme

              Because I’m completely new to Github I hope I did the most of it right till now. Guess the next step would be to create a pull request if you like, right?

              Cheers!

              1 Reply Last reply Reply Quote 3
              • Y Offline
                yawns Moderator
                last edited by May 4, 2018, 7:54 AM

                Looks good, I like your changes. Yes please, submit a pull request and I will add it to the main repository so other users can benefit from your changes

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mcg
                  last edited by May 5, 2018, 10:21 AM

                  Alright,
                  i found a bug which led to still showing connections after the offset.

                  Newest release has

                  • offset bug fixed
                  • new option to choose how many departures shall be shown (between 1 and 10)

                  I’m gonna test this release a few days and then send a pull request :)

                  1 Reply Last reply Reply Quote 1
                  • M Offline
                    mcg
                    last edited by May 11, 2018, 3:50 PM

                    Alright, I sent you a pull request.


                    Additionally, I’m currently testing another new feature where

                    • delay is shown for all connections which have already started even if there is no delay.
                      0_1526053734526_8e0837d9-f492-4990-b3d1-26ee12c4f749-grafik.png
                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy