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.
    • sweupS Offline
      sweup @Alvinger
      last edited by

      @Alvinger - thx for you work in this module!
      Sidenote, after updated my Rpi (3B) my wifi reception is far worst, never had problem with it before but now it’s loosing connection after a couple of minutes - but I was fast and manage to update to latest ResRobot :) working nicely

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

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

                        {
        			module: "MMM-ResRobot",
                                position: "top_right",
                                header: "Departures",
                                config: {
                                        routes: [ // stations from: 
                                                {from: "740015972", to: ""}, 
                                        ],
                                        apiKey: "API-KEY-HERE"
                                },
                        },
        

        @Zapman You can’t have a comment in the middle of the config. Remove the " // stations from: " and it should work.

        This is what it looks like for me:
        a0a58f9d-1271-4144-bca1-34d3746a4ed6-image.png

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

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

          @Zapman You can’t have a comment in the middle of the config. Remove the " // stations from: " and it should work.

          sure you can, they are ignored, there are comments all over the place

          Sam

          How to add modules

          learning how to use browser developers window for css changes

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

            @sdetweil Yes, they should be. However, when I pasted @Zapman’s config into my test site, it didn’t work. When I removed the comment it worked. Go figure!

            Z S 2 Replies Last reply Reply Quote 0
            • Z Offline
              Zapman @Alvinger
              last edited by

              @Alvinger Everything is working great now! Thank you for the fast response to my issue! I’ll use this module a lot from now on :smiling_face_with_open_mouth:

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

                @Alvinger i added that config to another module with the comment and got what was expected. 1 route structure in an array

                Sam

                How to add modules

                learning how to use browser developers window for css changes

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

                  @sdetweil Really strange. You got the expected behavior but @Zapman and I got it to work when we removed the comment. I should state that I use a fork of MM as my screens are iPad 4 running IOS9.3.5 which might have an impact. But I don’t know which MM @Zapman uses.

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

                    @Zapman You’re welcome. Do let me know if you see anything you want to add/change.

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

                      @Alvinger Thank You for a brilliant module that works like a charm.
                      Do You have a simple fix for limiting updates?
                      I want frequent updates for my bus stop when present, and none when I’m not present…
                      I have a PIR sensor hooked up. Possible to use that? Suspend module?
                      OR a simple schedule as proposed by Trafiklab:
                      https://www.trafiklab.se/docs/using-trafiklab-data/best-practices/limiting-requests/

                      Not a high prio request…

                      Cheers
                      /Sven

                      S AlvingerA 2 Replies Last reply Reply Quote 0
                      • S Offline
                        sdetweil @SvenT
                        last edited by

                        @SvenT I would post an issue to the module GitHub issues page to engage the author

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 13
                        • 14
                        • 2 / 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