MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Can't make MMM-Paris-RATP-PG work

    Troubleshooting
    5
    13
    4262
    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
      AFCM last edited by

      Hello,

      Let me first say I’m not an programmer or a developper so my question might be easy to answer
      I started to build my magic mirror, modules work fine but I have some trouble to make MMM-Paris-RATP-PG work properly.
      I don’t know what I should put in the config part {
      config: {
      }
      I tested this and that from what I can find in the readme but nothing seems to work, I can’t even have something displayed on my monitor.
      I also tested MMM-LocalTransport but it doesn’t fit my needs, want to make it work so my son can use it before he goes to school, stuff like that
      I don’t need a very complex config, just to be able to see, like in the screenshot (https://github.com/da4throux/MMM-Paris-RATP-PG) one line with the bus number, next passage etc and then I will fill the module myself

      Thank you very much,

      da4throux 1 Reply Last reply Reply Quote 0
      • da4throux
        da4throux @AFCM last edited by da4throux

        Hi @AFCM , so did you try something from the suggestions of the github readme file,
        like just with one bus for example:
        config:{
        busStations: {api: ‘v3’, type: ‘bus’, line: 38, stations: ‘observatoire+++port+royal’, destination: ‘A’}
        }

        Would it be working on your setup ?

        A 1 Reply Last reply Reply Quote 0
        • A
          AFCM @da4throux last edited by

          @da4throux Thank you, so I tried your config, I can only see the header nothing else. And the header shows “Connections, update request x S ago”
          This is what I have in my config.js :
          {
          module: ‘MMM-Paris-RATP-PG’,
          position: ‘top_center’,
          header: ‘Connections’,
          config: {api: ‘v3’, type: ‘bus’, line: 38, stations: ‘observatoire+++port+royal’, destination: ‘A’
          }
          },

          I can use the module as a standalone right ? I don’t need anything else ?

          da4throux 1 Reply Last reply Reply Quote 0
          • da4throux
            da4throux @AFCM last edited by

            @AFCM
            It sounds like a connectivity issue.
            1st step: Do the standard modules work: not setting the RATP, but for example the weather module ?
            2nd step: if it worked, then add the RATP module, also add ‘debug:true’ in the config also, and share the browser console, this will probably give some more hint.

            1 Reply Last reply Reply Quote 0
            • J
              Jab last edited by

              Hi,

              I do have issue with the module, as it shows always “Loading Connection”

              here is my config:

              {
              module: “MMM-Paris-RATP-PG”,
              position: “top_left”,
              header: “RATP”,
              config: {
              busStations: [
              {type: “traffic”, line: [“rers”,“A”]},
              {type: “traffic”, line: [“metros”,“3”]},
              {type: “traffic”, line: [“metros”,“9”]}
              ]
              }
              },

              I’ve tested URL and they work fine. Any idea ?

              Regards,
              Jab

              J 1 Reply Last reply Reply Quote 0
              • J
                Jab @Jab last edited by

                @Jab

                Reply to myself. Finally it works fine this morning, but I get this:

                A N/A
                3 N/A
                9 N/A

                I’ll continue to investigate…

                Chris da4throux 2 Replies Last reply Reply Quote 0
                • Chris
                  Chris @Jab last edited by

                  @Jab

                  Hello,

                  If this can help you do your tests, I leave you the code of my config that works well on my mirror.

                  //		{
                  			module: "MMM-Ratp",
                  			position: "top_left",
                  			header: "Bus 147 (vers Eglise De Pantin)", // le titre qui sera affiché en haut sur la configuration du widget 
                  			config: {
                  				apiURL: "https://api-ratp.pierre-grimaud.fr/v3/schedules/bus/147/mairie+de+livry+++gargan/R",
                  			}
                  		},
                  

                  Regards,

                  da4throux 1 Reply Last reply Reply Quote 0
                  • da4throux
                    da4throux @Jab last edited by da4throux

                    @Jab
                    Hi, thanks for giving the module a try.
                    the busStations element in your config seems to only as for traffic information, for those 3 lines.
                    N/A is typically what I get when there is no traffic in the night for example.
                    I checked with a similar config

                        {
                            module: 'MMM-Paris-RATP-PG',
                            position: 'bottom_right',
                            header: 'Test Config',
                            config: {
                              busStations: [
                    		        {type: 'traffic', line: ['rers','A']},
                                            {type: 'traffic', line: ['metros','3']},
                                            {type: 'traffic', line: ['metros','9']}
                              ],
                              pluiePlaces: [{id: '751140', name: 'Home'}],
                              pluieUpdateInterval: 1 * 5 * 60 * 1000, //default is 10 minutes, make it 5 (minimum update time)
                            }
                    

                    and get: three Traffic OK.
                    So that might have been the time you worked on it maybe ?
                    Out of curiosity how did you resolve your first issue of “Loading Connection” ?

                    1 Reply Last reply Reply Quote 0
                    • da4throux
                      da4throux @Chris last edited by da4throux

                      @Chris
                      Hi,
                      just as a note, this is a config for a different module. To do a similar check with this module you would do:

                      {
                        module: 'MMM-Paris-RATP-PG',
                        position: 'top_left',
                        header: 'Chris',
                        config: {
                          busStations: [
                            {type: 'bus', line: 147, stations: 'mairie+de+livry+++gargan', destination: 'R'}
                          ]
                        }
                      },
                      
                      Chris 1 Reply Last reply Reply Quote 0
                      • Chris
                        Chris @da4throux last edited by

                        @da4throux

                        Hello,

                        Indeed, sorry, I spoke too fast and I was wrong module.

                        I will try this configuration to see the result.

                        Regards,

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy