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

Scheduled Pinned Locked Moved Transport
138 Posts 27 Posters 111.3k Views
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.
  • A
    Alvinger
    last edited by Alvinger May 4, 2020, 8:00 AM May 4, 2020, 7:59 AM

    Yes, I think I know what the issue is. Currently, only one section is supported due to the fact that the node helper only supports one set of data. As the daily request limits for ResRobot bronze are a bit low I try to cache data and reduce the number of calls as much as possible. And one of the design decisions I made was to only do one section. (You can have multiple routes in the same section which is my use case)

    However, I do realize the need for multiple sections and it is on my todo list. Unfortunately I’been bitten by the home automation bug and haven’t spent so much time on MagicMirror lately So there is no ETA for it.

    1 Reply Last reply Reply Quote 0
    • L
      leanro
      last edited by leanro May 4, 2020, 8:16 AM May 4, 2020, 8:16 AM

      @Alvinger Thanks for the quick answer! Now I know at least what the problem was/is.
      Good luck for other projects!

      1 Reply Last reply Reply Quote 0
      • J
        jocke.almgren
        last edited by Jun 10, 2020, 4:53 PM

        Hi

        I hope this forum still is active ;)

        I just started my Magic Mirror project, and of course i need bus departures to be on the mirror.
        But i can’t figure out why it never shows on the screen… it’s not the whole screen that is black, the ResRobot module just doesn’t show.
        this is my config.js

        			{
        			module: "MMM-ResRobot",
        			position: "top_center",
        			header: "Departures",
        			config: {
        				routes: [
        					{from: "740054292", to: "740040961"},
        					{from: "740053855", to: "740010956"}
        				],
        				skipMinutes: 0,
        				maximumEntries: 6,
        				truncateAfter: 5,
        				apiKey: "XXXXXX"
        			}
        

        Any help so much appreciated

        A 1 Reply Last reply Jun 10, 2020, 5:27 PM Reply Quote 0
        • A
          Alvinger @jocke.almgren
          last edited by Jun 10, 2020, 5:27 PM

          @jocke-almgren just to make sure: you have registered for an API key at Trafiklab?

          J 1 Reply Last reply Jun 11, 2020, 10:50 AM Reply Quote 0
          • J
            jocke.almgren @Alvinger
            last edited by Jun 11, 2020, 10:50 AM

            @Alvinger Hi - thanks for your reply. Turns out i was a total idiot and placed the module in the “modules/default” directory instead of the modules root :man_facepalming: Moved the folder and all is good.
            Thanks for the support anyways

            1 Reply Last reply Reply Quote 0
            • S
              sweup
              last edited by Sep 21, 2020, 2:40 PM

              Hi, how do i update?, i tried
              cd ~/MagicMirror/modules/MMM-ResRobot
              git pull
              npm install

              But frontend still says a newer update is found…

              S A 2 Replies Last reply Sep 21, 2020, 2:47 PM Reply Quote 0
              • S
                sdetweil @sweup
                last edited by Sep 21, 2020, 2:47 PM

                @sweup what was the output of git pull?

                Sam

                How to add modules

                learning how to use css

                S 1 Reply Last reply Sep 21, 2020, 3:29 PM Reply Quote 0
                • A
                  Alvinger @sweup
                  last edited by Sep 21, 2020, 3:20 PM

                  @sweup did you restart the MagicMirror service after you updated?

                  1 Reply Last reply Reply Quote 0
                  • S
                    sweup @sdetweil
                    last edited by sweup Sep 21, 2020, 3:29 PM Sep 21, 2020, 3:29 PM

                    @sdetweil - I only got this

                    pi@raspberrypi:~ $ cd ~/MagicMirror/modules/MMM-ResRobot
                    pi@raspberrypi:~/MagicMirror/modules/MMM-ResRobot $ git pull
                    Updating 1618fcc..695f70d
                    error: Your local changes to the following files would be overwritten by merge:
                    	package.json
                    Please commit your changes or stash them before you merge.
                    Aborting
                    pi@raspberrypi:~/MagicMirror/modules/MMM-ResRobot $ npm install
                    npm WARN npm npm does not support Node.js v10.21.0
                    npm WARN npm You should probably upgrade to a newer version of node as we
                    npm WARN npm can't make any promises that npm will work with this version.
                    npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
                    npm WARN npm You can find the latest version at https://nodejs.org/
                    up to date in 1.083s
                    pi@raspberrypi:~/MagicMirror/modules/MMM-ResRobot $ 
                    
                    

                    @Alvinger - I did a sudo reboot

                    A 1 Reply Last reply Sep 21, 2020, 3:30 PM Reply Quote 0
                    • A
                      Alvinger @sweup
                      last edited by Sep 21, 2020, 3:30 PM

                      @sweup it seems you have changed the file package.json

                      Stash it away with “git stash” and try the update again.

                      S 1 Reply Last reply Sep 21, 2020, 3:34 PM Reply Quote 0
                      • 1
                      • 2
                      • 8
                      • 9
                      • 10
                      • 11
                      • 12
                      • 13
                      • 14
                      • 10 / 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