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-ResRobot - Public transport information for Sweden

    Scheduled Pinned Locked Moved Transport
    138 Posts 27 Posters 175.1k Views 28 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.
    • AlvingerA Offline
      Alvinger @SvenT
      last edited by Alvinger

      @SvenT I have experimented with a number of algorithms for minimizing updates but ended up with the one implemented. The current algorithm is:

      • If initial request, get updates from Trafiklab

      • If the first item in departure list (per routeId) is “old”, i.e. before cutoff time (now + skipMinutes), clear list (for routeId) and get updates from Trafiklab

      What the above means is that updates only occur ON ACTUAL DEPARTURES, e.g. if a bus departs every 15 minutes the module will get updates from Trafiklab every 15 minutes (per routeId). In rush hour this often means that the module get updates every minute but at night it might only update once per 60 minutes or longer (per routeId). This behavior has the benefit of automatically adjusting to rush hour and slow hours without user intervention or tweaking.

      If only one routeId is configured, the number of Trafiklab updates is usually way below the Trafiklab suggestions.

      /j

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        SvenT @Alvinger
        last edited by

        @Alvinger I see.
        My local bus station has departures every 3 minutes almost all day. :-(
        I’ll tinker with the change profile module to see if I can pause the Reslust module.

        Cheers
        /Sven

        AlvingerA 1 Reply Last reply Reply Quote 0
        • AlvingerA Offline
          Alvinger @SvenT
          last edited by

          @SvenT I think that if you just hide the module it will stop updating (but I’m not sure). Try it.

          1 Reply Last reply Reply Quote 0
          • N Offline
            noorm91
            last edited by

            Has anyone gotten ResRobot v2.1 to work?
            If so how does your config look like?

            I’m trying {from: “740000260”, to: “740000120”}, the rest is default except apiKey of course.

            AlvingerA 1 Reply Last reply Reply Quote 0
            • AlvingerA Offline
              Alvinger @noorm91
              last edited by

              @noorm91 Please post your entire config for ResRobot (with the secrets masked).

              N 1 Reply Last reply Reply Quote 0
              • P Offline
                Populus
                last edited by

                I quickly looked but couldn’t find if “Kalmar län” is included?

                AlvingerA N 2 Replies Last reply Reply Quote 0
                • AlvingerA Offline
                  Alvinger @Populus
                  last edited by

                  @Populus ResRobot covers all of Sweden as far as I know.

                  P 1 Reply Last reply Reply Quote 0
                  • N Offline
                    noorm91 @Alvinger
                    last edited by

                    @Alvinger It’s all good, thank you!
                    It seems that you have to restart the rpi for every change you do.

                    Is there a way to see how many changes you have to do?
                    For example 1. Bus departure station > 2. Transit station > 3. Final destination.
                    Would also be nice to see how many minutes it takes from A-B.

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      noorm91 @Populus
                      last edited by

                      @Populus which stations are you looking for in Kalmar?

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        Populus @Alvinger
                        last edited by

                        @Alvinger said in MMM-ResRobot - Public transport information for Sweden:

                        @Populus ResRobot covers all of Sweden as far as I know.

                        It doesn’t appear to have my local stations. Our network is “Kalmar Länstrafik”.

                        @noorm91 said in MMM-ResRobot - Public transport information for Sweden:

                        @Populus which stations are you looking for in Kalmar?

                        AlvingerA 1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 10
                        • 11
                        • 12
                        • 13
                        • 14
                        • 14 / 14
                        • 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