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.

    Problem with MMM-ResRobot, it wont start(?)

    Scheduled Pinned Locked Moved Troubleshooting
    31 Posts 7 Posters 21.2k Views 7 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.
    • N Offline
      Nybbe67
      last edited by

      Re: MMM-ResRobot - Public transport information for Sweden
      Are there any problems now with MMM-ResRobot, I cant it to work at all?
      I have reinstalled it 2 times and configure it but the module don’t start at all, no errors, nothing on the screen.

      BR
      Niklas

      1 Reply Last reply Reply Quote 0
      • A Offline
        atd08001
        last edited by

        It works fine for me.

        //Andreas

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          Nybbe67 @atd08001
          last edited by

          @atd08001
          Can you post your ResRobot config, without your API key so I can test with yours?

          1 Reply Last reply Reply Quote 0
          • A Offline
            atd08001
            last edited by

            here is my ResRobot config.
            :::
            module: “MMM-ResRobot”,
            position: “left”,
            header: “Avgångar”,
            config: {
            from: “740021699”,
            to: “740020749”,
            maximumEntries: 3,
            truncateAfter: 5,
            apiKey: “xxx-xx-xx-xx-xxxx”
            :::

            //Andreas

            N 2 Replies Last reply Reply Quote 0
            • N Offline
              Nybbe67 @atd08001
              last edited by

              @atd08001
              Thanks Andreas for fast respons. I will try it with your config.

              Niklas

              1 Reply Last reply Reply Quote 0
              • N Offline
                Nybbe67 @atd08001
                last edited by

                @atd08001 Thanks alot. Found the problem, I have written MMM_Resrobot, not MMM-Resrobot.

                Its working!!

                1 Reply Last reply Reply Quote 0
                • E Offline
                  Eburkis
                  last edited by

                  does it work for you now ?

                  N 1 Reply Last reply Reply Quote 0
                  • N Offline
                    Nybbe67 @Eburkis
                    last edited by Nybbe67

                    @Eburkis
                    Yes, its working, thanks

                    Best regards
                    Niklas

                    1 Reply Last reply Reply Quote 0
                    • E Offline
                      Eburkis
                      last edited by

                      i cant get mine to work :/

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

                        @Eburkis copy @atd08001’s config (above here) and replace your own, but use your own API key. Then it should work. My mistake was a typo, MMM_ResRobot, not MMM-ResRobot.

                        E 1 Reply Last reply Reply Quote 0
                        • E Offline
                          Eburkis @Nybbe67
                          last edited by

                          hmm i have not make the same typo as you did but something i still not working for me.

                          	{
                          		module: "MMM-ResRobot",
                          		position: "left",
                          		header: "Avgångar",
                          		config: {
                          			from: "2023",		// ResRobot Station ID (or a comma-separated string of IDs)
                          			to: "1138",			// ResRobot Station ID of destination (or a comma-separated string of IDs)
                          			skipMinutes: 0,		// Skip departures that happens within the next  minutes.
                          			maximumEntries: 6,	// Number of departures to show on screen
                          			truncateAfter: 2,	// A value > 0 will truncate direction name at first space after  characters. 0 = no truncation
                          			apikey: "KEY HERE "		// Your ResRobot apiKey
                                  },
                          
                          
                          A 1 Reply Last reply Reply Quote 0
                          • A Offline
                            atd08001 @Eburkis
                            last edited by

                            @Eburkis Hi,

                            It looks like the Station ID is wrong. My “From station ID” for “Gubbängen” is 740021699.

                            You can create a API for “ResRobot - Reseplanerare” and then type in this URL in the browser: https://api.resrobot.se/v2/location.name?key=**YOURE API KEY**&input=SEARCH WORD

                            Replace the bold parts, whit API-key and search word for exampel T-centralen
                            You will get a XML response with all the possible results and the differnet ID (Stations ID)

                            And then make sure you use the service “ResRobot - Stolptidtabeller 2” in the config.

                            Good luck
                            Andreas

                            1 Reply Last reply Reply Quote 0
                            • E Offline
                              Eburkis
                              last edited by

                              if i use the api for “platsuppslag” then i get the answer that 2023 is Rudboda torg and when i look for gubbängen Tbana is 7956 so I wonder where you get your number from.

                              and i get access denied with your link so that dont work for me sry

                              A 1 Reply Last reply Reply Quote 0
                              • A Offline
                                atd08001 @Eburkis
                                last edited by

                                @Eburkis
                                You should use “ResRobot - Reseplanerare" and create a API for that service instead of “platsuppslag”.
                                i get ID: 740024784 and name “Lidingö Rudboda torg” when i search for Rudboda torg

                                BR
                                Andreas

                                1 Reply Last reply Reply Quote 0
                                • E Offline
                                  Eburkis
                                  last edited by

                                  i will try. tnx for the help, have a nice evening

                                  1 Reply Last reply Reply Quote 0
                                  • E Offline
                                    Eburkis
                                    last edited by Eburkis

                                    @atd08001
                                    now i want to completly give up… now with the new site id its still does not work. now it’s just black with no info at all.
                                    what should i do ?

                                    {
                                    		module: "MMM-ResRobot",
                                    		position: "left",
                                    		header: "Departures",
                                    		config: {
                                    			from: "740024784",		// ResRobot Station ID (or a comma-separated string of IDs)
                                    			to: "740046172",			// ResRobot Station ID of destination (or a comma-separated string of IDs)
                                    			skipMinutes: 0,		// Skip departures that happens within the next  minutes.
                                    			maximumEntries: 6,	// Number of departures to show on screen
                                    			truncateAfter: 5,	// A value > 0 will truncate direction name at first space after  characters. 0 = no truncation
                                    			apiKey: "key here"		// Your ResRobot apiKey
                                    			}
                                    		},
                                    
                                    N 1 Reply Last reply Reply Quote 0
                                    • N Offline
                                      Nybbe67 @Eburkis
                                      last edited by

                                      @Eburkis I sent you my config via PM. If you use that with your AKIKey it should work. Otherwise there must be a error with your key.

                                      Hm…could it be something with your router, could it block sites? I had a similar problems once and I had a familly filter active on my router.

                                      1 Reply Last reply Reply Quote 0
                                      • E Offline
                                        Eburkis
                                        last edited by

                                        @Eburkis said in Problem with MMM-ResRobot, it wont start(?):

                                        yeey somthing works now
                                        now when the MM boots it says Fetching data for almost 3 sec then it goes black and now its just “departures” and under that its empty. so its almost that it is no departures at all

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

                                          @Eburkis et al
                                          I’ve just pushed a long-overdue update to MMM-ResRobot to github.

                                          This new version has a completely reworked updating logic which should result in less “frozen” updates and also less API calls to Trafiklab/ResRobot over time.

                                          Note that there is a breaking change to the configuration as I’ve changed the way routes are defined.
                                          Previous configuration:

                                          from: "from1,from2,from3",
                                          to: "to1,,to3"
                                          

                                          New configuration:

                                          routes: [
                                            {from: "from1", to: "to1"},
                                            {from: "from2", to: ""},
                                            {from: "from3", to: "to3"},
                                          ]
                                          

                                          Sorry for not pushing the update sooner but my mirror project has been delayed due to other things. Will try to update more frequently in the future. Please drop me a note if you encounter issues!

                                          A 1 Reply Last reply Reply Quote 0
                                          • A Offline
                                            ajomannen @Alvinger
                                            last edited by

                                            @Alvinger

                                            Hi there,

                                            I fail to get the new config format to work.

                                            I use the following block:

                                            {
                                            	module: "MMM-ResRobot",
                                            	position: "top_left",
                                            	header: "Departures",
                                            	
                                            	config: {
                                            		routes: [
                                            			from: "740015972", to: "740061189",
                                            		]
                                            		skipMinutes: 0,
                                            		maximumEntries: 6,
                                            		truncateAfter: 5,
                                            		apiKey: "xxxxx"
                                            	}
                                            },
                                            

                                            but MagicMirror2 fails to start with following message:

                                            WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.

                                            (If I use the old config syntax for routes, the system starts up as before, but I get departures from some default location that seems like Stockholm C.)

                                            What could I have done wrong?

                                            A 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • 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